diff options
author | Rob Clark <[email protected]> | 2020-06-16 17:46:43 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-18 03:40:54 +0000 |
commit | 34499de5b3793b6ad5302c4e2913803b9c48cc9f (patch) | |
tree | cf1f76cba6b5fe2938c88cb3b693897015978e75 /src/compiler/glsl | |
parent | c9976f5e4ab6558af72e014668ee7e7ccb65a81c (diff) |
glsl_to_nir: fix vote_any/vote_all
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5505>
Diffstat (limited to 'src/compiler/glsl')
-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)); |