diff options
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index d09377b24ef..69bcdeeff59 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -1534,11 +1534,12 @@ nir_visitor::visit(ir_call *ir) nir_builder_instr_insert(&b, &instr->instr); break; } + case nir_intrinsic_vote_ieq: + instr->num_components = 1; + /* fall-through */ case nir_intrinsic_vote_any: - case nir_intrinsic_vote_all: - case nir_intrinsic_vote_ieq: { + case nir_intrinsic_vote_all: { nir_ssa_dest_init(&instr->instr, &instr->dest, 1, 1, NULL); - instr->num_components = 1; ir_rvalue *value = (ir_rvalue *) ir->actual_parameters.get_head(); instr->src[0] = nir_src_for_ssa(evaluate_rvalue(value)); |