anv: implement INTEL_DEBUG=reemit

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25618>
This commit is contained in:
Lionel Landwerlin 2023-10-09 13:37:18 +03:00 committed by Marge Bot
parent 2a3aa6da50
commit 6bfa8850ab

View file

@ -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.
*/