summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_intrinsics_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_intrinsics_c.py b/src/compiler/nir/nir_intrinsics_c.py
index 339214ac53e..4410bc63462 100644
--- a/src/compiler/nir/nir_intrinsics_c.py
+++ b/src/compiler/nir/nir_intrinsics_c.py
@@ -35,7 +35,7 @@ const nir_intrinsic_info nir_intrinsic_infos[nir_num_intrinsics] = {
},
% endif
.has_dest = ${"true" if opcode.has_dest else "false"},
- .dest_components = ${opcode.dest_components},
+ .dest_components = ${max(opcode.dest_components, 0)},
.num_variables = ${opcode.num_variables},
.num_indices = ${opcode.num_indices},
% if opcode.indices: