Module: Mesa
Branch: main
Commit: 6bfa8850ab30036dc993faf59472d49f385749a7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6bfa8850ab30036dc993faf59472d49f385749a7

Author: Lionel Landwerlin <[email protected]>
Date:   Mon Oct  9 13:37:18 2023 +0300

anv: implement INTEL_DEBUG=reemit

Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25618>

---

 src/intel/vulkan/genX_gfx_state.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/intel/vulkan/genX_gfx_state.c 
b/src/intel/vulkan/genX_gfx_state.c
index 8041bd48eb6..9367be0671a 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.
     */

Reply via email to