radv: re-emit fragment shading rate state when PA_CL_VRS_CNTL changes
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 10 May 2023 09:12:06 +0000 (11:12 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 12 May 2023 06:39:11 +0000 (06:39 +0000)
Found by inspection.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22942>

src/amd/vulkan/radv_cmd_buffer.c

index 7ac57e9..13bb446 100644 (file)
@@ -1908,6 +1908,10 @@ radv_emit_graphics_pipeline(struct radv_cmd_buffer *cmd_buffer)
       if (cmd_buffer->state.emitted_graphics_pipeline->db_shader_control !=
           pipeline->db_shader_control)
          cmd_buffer->state.dirty |= RADV_CMD_DIRTY_DYNAMIC_ATTACHMENT_FEEDBACK_LOOP_ENABLE;
+
+      if (cmd_buffer->state.emitted_graphics_pipeline->vrs.pa_cl_vrs_cntl !=
+          pipeline->vrs.pa_cl_vrs_cntl)
+         cmd_buffer->state.dirty |= RADV_CMD_DIRTY_DYNAMIC_FRAGMENT_SHADING_RATE;
    }
 
    radeon_emit_array(cmd_buffer->cs, pipeline->base.cs.buf, pipeline->base.cs.cdw);