radv: do not force VRS 1x1 when smooth lines are enabled
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 24 May 2023 12:51:46 +0000 (14:51 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 14 Jun 2023 05:54:56 +0000 (05:54 +0000)
Otherwise this will break VRS with GPL.

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

src/amd/vulkan/radv_cmd_buffer.c

index bab029a..3527d67 100644 (file)
@@ -2312,7 +2312,8 @@ radv_should_force_vrs1x1(struct radv_cmd_buffer *cmd_buffer)
    const struct radv_shader *ps = cmd_buffer->state.shaders[MESA_SHADER_FRAGMENT];
 
    return pdevice->rad_info.gfx_level >= GFX10_3 &&
-          (cmd_buffer->state.ms.sample_shading_enable || (ps && ps->info.ps.reads_sample_mask_in));
+          (cmd_buffer->state.ms.sample_shading_enable || (ps && ps->info.ps.reads_sample_mask_in &&
+                                                          !ps->info.ps.needs_poly_line_smooth));
 }
 
 static void