mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
radv: use the non-emitted graphics pipeline for the needed dynamic states
This is similar but it will allow us to re-use the helper for the late scissor bug on GFX9. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27236>
This commit is contained in:
parent
bbcdd1dc09
commit
411e23e193
1 changed files with 2 additions and 2 deletions
|
|
@ -9063,8 +9063,8 @@ radv_get_needed_dynamic_states(struct radv_cmd_buffer *cmd_buffer)
|
|||
{
|
||||
uint64_t dynamic_states = RADV_DYNAMIC_ALL;
|
||||
|
||||
if (cmd_buffer->state.emitted_graphics_pipeline)
|
||||
return cmd_buffer->state.emitted_graphics_pipeline->needed_dynamic_state;
|
||||
if (cmd_buffer->state.graphics_pipeline)
|
||||
return cmd_buffer->state.graphics_pipeline->needed_dynamic_state;
|
||||
|
||||
/* Clear unnecessary dynamic states for shader objects. */
|
||||
if (!cmd_buffer->state.shaders[MESA_SHADER_TESS_CTRL])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue