radv: don't set num_components for non-vectorized intrinsics
authorRob Clark <robdclark@chromium.org>
Mon, 8 Jun 2020 19:35:18 +0000 (12:35 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Jun 2020 02:48:18 +0000 (02:48 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5371>

src/amd/vulkan/radv_meta_blit2d.c

index 38795038006d5cc35cdae2b109dad178e26112ed..47939b2244306fc94af29ce05aacb35d2e7ca3b4 100644 (file)
@@ -517,7 +517,6 @@ build_nir_texel_fetch(struct nir_builder *b, struct radv_device *device,
        }
        if (is_multisampled) {
                sample_idx = nir_intrinsic_instr_create(b->shader, nir_intrinsic_load_sample_id);
-               sample_idx->num_components = 1;
                nir_ssa_dest_init(&sample_idx->instr, &sample_idx->dest, 1, 32, "sample_idx");
                nir_builder_instr_insert(b, &sample_idx->instr);
        }