Module: Mesa
Branch: main
Commit: 61c3796a958990db1ef772ce27b00f7e4f8e5d29
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=61c3796a958990db1ef772ce27b00f7e4f8e5d29

Author: Samuel Pitoiset <[email protected]>
Date:   Tue Jul 18 13:43:14 2023 +0200

radv: remove redundant check when forcing VRS rates

If force_vrs_per_vertex is TRUE, the primitive shading rate varying is
always written.

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26248>

---

 src/amd/vulkan/radv_pipeline_graphics.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/amd/vulkan/radv_pipeline_graphics.c 
b/src/amd/vulkan/radv_pipeline_graphics.c
index 1b288ad0efc..bf27959bb4f 100644
--- a/src/amd/vulkan/radv_pipeline_graphics.c
+++ b/src/amd/vulkan/radv_pipeline_graphics.c
@@ -3608,8 +3608,7 @@ gfx103_pipeline_emit_vrs_state(const struct radv_device 
*device, struct radeon_c
        */
       mode = V_028064_SC_VRS_COMB_MODE_OVERRIDE;
       rate_x = rate_y = 1;
-   } else if (!radv_is_static_vrs_enabled(pipeline, state) && 
pipeline->force_vrs_per_vertex &&
-              get_vs_output_info(pipeline)->writes_primitive_shading_rate) {
+   } else if (!radv_is_static_vrs_enabled(pipeline, state) && 
pipeline->force_vrs_per_vertex) {
       /* Otherwise, if per-draw VRS is not enabled statically, try forcing 
per-vertex VRS if
        * requested by the user. Note that vkd3d-proton always has to declare 
VRS as dynamic because
        * in DX12 it's fully dynamic.

Reply via email to