From: Rob Clark Date: Wed, 17 Jun 2020 00:46:43 +0000 (-0700) Subject: glsl_to_nir: fix vote_any/vote_all X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34499de5b3793b6ad5302c4e2913803b9c48cc9f;p=mesa.git glsl_to_nir: fix vote_any/vote_all Signed-off-by: Rob Clark Reviewed-by: Jason Ekstrand Part-of: --- 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));