anv: fix missing 3DSTATE_SBE_CLIP emission
authorIván Briano <ivan.briano@intel.com>
Sat, 9 Sep 2023 00:11:29 +0000 (17:11 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 11 Sep 2023 10:08:44 +0000 (10:08 +0000)
Fixes: 50f6903bd9 ("anv: add new low level emission & dirty state tracking")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25109>

src/intel/vulkan/genX_gfx_state.c

index adc76c9..c460a6e 100644 (file)
@@ -1236,6 +1236,9 @@ genX(cmd_buffer_flush_gfx_hw_state)(struct anv_cmd_buffer *cmd_buffer)
 
       if (BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_SBE_MESH))
          anv_batch_emit_pipeline_state(&cmd_buffer->batch, pipeline, final.sbe_mesh);
+
+      if (BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_CLIP_MESH))
+         anv_batch_emit_pipeline_state(&cmd_buffer->batch, pipeline, final.clip_mesh);
    } else {
       assert(!BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_MESH_CONTROL) &&
              !BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_MESH_SHADER) &&
@@ -1243,6 +1246,7 @@ genX(cmd_buffer_flush_gfx_hw_state)(struct anv_cmd_buffer *cmd_buffer)
              !BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_TASK_CONTROL) &&
              !BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_TASK_SHADER) &&
              !BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_TASK_REDISTRIB) &&
+             !BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_CLIP_MESH) &&
              !BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_SBE_MESH));
    }