Mesa (main): radv: remove useless check against nir_texop_samples_identical

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 11 07:16:12 UTC 2022


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

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue May 10 14:02:09 2022 +0200

radv: remove useless check against nir_texop_samples_identical

nir_texop_samples_identical is lowered to
nir_texop_fragment_mask_fetch_amd earlier.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16426>

---

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

diff --git a/src/amd/vulkan/radv_nir_apply_pipeline_layout.c b/src/amd/vulkan/radv_nir_apply_pipeline_layout.c
index abd23aec0bb..e9c1bc5ce3b 100644
--- a/src/amd/vulkan/radv_nir_apply_pipeline_layout.c
+++ b/src/amd/vulkan/radv_nir_apply_pipeline_layout.c
@@ -468,8 +468,7 @@ apply_layout_to_tex(nir_builder *b, apply_layout_state *state, nir_tex_instr *te
    } else if (tex->sampler_dim == GLSL_SAMPLER_DIM_BUF) {
       image = get_sampler_desc(b, state, texture_deref_instr, AC_DESC_BUFFER,
                                tex->texture_non_uniform, tex, false);
-   } else if (tex->op == nir_texop_fragment_mask_fetch_amd ||
-              tex->op == nir_texop_samples_identical) {
+   } else if (tex->op == nir_texop_fragment_mask_fetch_amd) {
       image = get_sampler_desc(b, state, texture_deref_instr, AC_DESC_FMASK,
                                tex->texture_non_uniform, tex, false);
    } else {



More information about the mesa-commit mailing list