anv: name non dynamic state fields correctly
Those fields have confusing names. They hold non dynamic state, specified at pipeline creation that we copy into the dynamic state of the command buffer whenever we bind a pipeline. This non dynamic state might get picked up in the dynamically emitted instructions of the 3D pipeline because our HW packets are not exactly splitted like the Vulkan API. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17601>
This commit is contained in:

committed by
Marge Bot

parent
5b6e6a672c
commit
25de752234
@@ -619,11 +619,11 @@ void anv_CmdBindPipeline(
|
||||
&gfx_pipeline->shaders[stage]->bind_map);
|
||||
}
|
||||
|
||||
/* Apply the dynamic state from the pipeline */
|
||||
/* Apply the non dynamic state from the pipeline */
|
||||
cmd_buffer->state.gfx.dirty |=
|
||||
anv_dynamic_state_copy(&cmd_buffer->state.gfx.dynamic,
|
||||
&gfx_pipeline->dynamic_state,
|
||||
gfx_pipeline->dynamic_state_mask);
|
||||
&gfx_pipeline->non_dynamic_state,
|
||||
gfx_pipeline->non_dynamic_state_mask);
|
||||
|
||||
state = &cmd_buffer->state.gfx.base;
|
||||
stages = gfx_pipeline->active_stages;
|
||||
|
Reference in New Issue
Block a user