Mesa (main): radv: remove redundant check of needs_multiview_view_index for PS

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 4 11:51:40 UTC 2021


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

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Sep 28 11:31:11 2021 +0200

radv: remove redundant check of needs_multiview_view_index for PS

layer_input is always TRUE if needs_multiview_view_index is TRUE.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13170>

---

 src/amd/vulkan/radv_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 5162f19c935..13897462f0d 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -4970,7 +4970,7 @@ radv_pipeline_generate_ps_inputs(struct radeon_cmdbuf *ctx_cs, const struct radv
       }
    }
 
-   if (ps->info.ps.layer_input || ps->info.needs_multiview_view_index) {
+   if (ps->info.ps.layer_input) {
       unsigned vs_offset = outinfo->vs_output_param_offset[VARYING_SLOT_LAYER];
       if (vs_offset != AC_EXP_PARAM_UNDEFINED)
          ps_input_cntl[ps_offset] = offset_to_ps_input(vs_offset, true, false, false);



More information about the mesa-commit mailing list