From: Lionel Landwerlin Date: Mon, 9 Oct 2023 10:37:18 +0000 (+0300) Subject: anv: implement INTEL_DEBUG=reemit X-Git-Tag: upstream/23.3.3~1160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bfa8850ab30036dc993faf59472d49f385749a7;p=platform%2Fupstream%2Fmesa.git anv: implement INTEL_DEBUG=reemit Signed-off-by: Lionel Landwerlin Reviewed-by: Tapani Pälli Part-of: --- diff --git a/src/intel/vulkan/genX_gfx_state.c b/src/intel/vulkan/genX_gfx_state.c index 8041bd4..9367be0 100644 --- a/src/intel/vulkan/genX_gfx_state.c +++ b/src/intel/vulkan/genX_gfx_state.c @@ -1143,6 +1143,12 @@ genX(cmd_buffer_flush_gfx_hw_state)(struct anv_cmd_buffer *cmd_buffer) &cmd_buffer->vk.dynamic_graphics_state; struct anv_gfx_dynamic_state *hw_state = &gfx->dyn_state; + if (INTEL_DEBUG(DEBUG_REEMIT)) { + BITSET_OR(cmd_buffer->state.gfx.dyn_state.dirty, + cmd_buffer->state.gfx.dyn_state.dirty, + device->gfx_dirty_state); + } + /* Since Wa_16011773973 will disable 3DSTATE_STREAMOUT, we need to reemit * it after. */