Mesa (master): nir/builder: don't set intr->num_components

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 16 03:41:24 UTC 2020


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

Author: Rob Clark <robdclark at chromium.org>
Date:   Mon Jun  8 11:52:14 2020 -0700

nir/builder: don't set intr->num_components

The "load-sysval" intrinsics are not vectorized.

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

---

 src/compiler/nir/nir_builder_opcodes_h.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/compiler/nir/nir_builder_opcodes_h.py b/src/compiler/nir/nir_builder_opcodes_h.py
index f0d8cf1db68..ec212f4e309 100644
--- a/src/compiler/nir/nir_builder_opcodes_h.py
+++ b/src/compiler/nir/nir_builder_opcodes_h.py
@@ -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);



More information about the mesa-commit mailing list