nir/builder: don't set intr->num_components
authorRob Clark <robdclark@chromium.org>
Mon, 8 Jun 2020 18:52:14 +0000 (11:52 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Jun 2020 02:48:18 +0000 (02:48 +0000)
The "load-sysval" intrinsics are not vectorized.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5371>

src/compiler/nir/nir_builder_opcodes_h.py

index f0d8cf1db68c6f5a556e6b71958f2665dba5bbdc..ec212f4e30957dc1f3cef45a790324b1b3d632d7 100644 (file)
@@ -56,7 +56,6 @@ nir_load_system_value(nir_builder *build, nir_intrinsic_op op, int index,
                       unsigned bit_size)
 {
    nir_intrinsic_instr *load = nir_intrinsic_instr_create(build->shader, op);
-   load->num_components = nir_intrinsic_infos[op].dest_components;
    load->const_index[0] = index;
    nir_ssa_dest_init(&load->instr, &load->dest,
                      nir_intrinsic_infos[op].dest_components, bit_size, NULL);