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@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@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17205>
This commit is contained in:
parent
f4386b81e6
commit
b6bb7f8998
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue