mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 17:20:21 +01:00
anv_cmd_buffer: Don't make the initial state dirty
Avoid excessive state emission. Relevant state for an action command will get set by the user: From Chapter 5. Command Buffers, When a command buffer begins recording, all state in that command buffer is undefined. [...] Whenever the state of a command buffer is undefined, the application must set all relevant state on the command buffer before any state dependent commands such as draws and dispatches are recorded, otherwise the behavior of executing that command buffer is undefined. Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
This commit is contained in:
parent
9fae6ee026
commit
88d1c19c9d
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ anv_cmd_state_reset(struct anv_cmd_buffer *cmd_buffer)
|
|||
/* 0 isn't a valid config. This ensures that we always configure L3$. */
|
||||
cmd_buffer->state.current_l3_config = 0;
|
||||
|
||||
state->dirty = ~0;
|
||||
state->dirty = 0;
|
||||
state->vb_dirty = 0;
|
||||
state->descriptors_dirty = 0;
|
||||
state->push_constants_dirty = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue