Mesa (main): anv: Dirty all dynamic state bits when creating command buffer state

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 27 11:45:12 UTC 2022


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

Author: Sviatoslav Peleshko <sviatoslav.peleshko at globallogic.com>
Date:   Thu Jun 23 14:20:24 2022 +0300

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 <sviatoslav.peleshko at globallogic.com>
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 <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17205>

---

 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 c181c036be4..7b8a9b9e663 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



More information about the mesa-commit mailing list