zink: flag all shaders for create during gfx program init
now we can avoid needing extra conditionals in the update hotpath Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11740>
This commit is contained in:
committed by
Marge Bot
parent
876ead6dad
commit
66fc13d3d5
@@ -430,6 +430,8 @@ zink_create_gfx_program(struct zink_context *ctx,
|
||||
if (stages[i] || prog->shaders[i])
|
||||
_mesa_hash_table_init(&prog->base.shader_cache[i], prog, keybox_hash, keybox_equals);
|
||||
prog->shaders[i] = stages[i];
|
||||
/* always force shader creation during init */
|
||||
ctx->dirty_shader_stages |= BITFIELD_BIT(i);
|
||||
}
|
||||
if (stages[PIPE_SHADER_TESS_EVAL] && !stages[PIPE_SHADER_TESS_CTRL]) {
|
||||
prog->shaders[PIPE_SHADER_TESS_EVAL]->generated =
|
||||
|
||||
Reference in New Issue
Block a user