From f70d6030e3c0fe3eda912994801330146168fdd4 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 8 Jun 2020 11:52:14 -0700 Subject: [PATCH] nir/builder: don't set intr->num_components The "load-sysval" intrinsics are not vectorized. Signed-off-by: Rob Clark Reviewed-by: Jason Ekstrand Part-of: --- 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); -- 2.30.2