From b6bb7f899849145e759eb175421d378b9709c57c Mon Sep 17 00:00:00 2001 From: Sviatoslav Peleshko Date: Thu, 23 Jun 2022 14:20:24 +0300 Subject: [PATCH] anv: Dirty all dynamic state bits when creating command buffer state This makes sure that we'll handle situations when the new state has the same value as the default one, so we won't dirty some bits, and consequently will not emit necessary commands (e.g. 3DSTATE_DEPTH_BOUNDS). Signed-off-by: Sviatoslav Peleshko Fixes: 48229d11 ("anv: don't emit 3DSTATE_DEPTH_BOUNDS in pipeline batch") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6722 Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_cmd_buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_buffer.c index c181c03..7b8a9b9 100644 --- a/src/intel/vulkan/anv_cmd_buffer.c +++ b/src/intel/vulkan/anv_cmd_buffer.c @@ -260,6 +260,7 @@ anv_cmd_state_init(struct anv_cmd_buffer *cmd_buffer) state->current_pipeline = UINT32_MAX; state->restart_index = UINT32_MAX; anv_dynamic_state_init(&state->gfx.dynamic); + state->gfx.dirty = ANV_CMD_DIRTY_DYNAMIC_ALL; } static void -- 2.7.4