projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nir: Report progress properly in nir_lower_bool_to_*
[mesa.git]
/
src
/
compiler
/
nir
/
nir_lower_bool_to_float.c
diff --git
a/src/compiler/nir/nir_lower_bool_to_float.c
b/src/compiler/nir/nir_lower_bool_to_float.c
index 0dd69c958f9a6b6f2e6e47cff7fa5cbda23138e6..32f2ca056b2d5d1e60fb0e65258b48bb617ed574 100644
(file)
--- a/
src/compiler/nir/nir_lower_bool_to_float.c
+++ b/
src/compiler/nir/nir_lower_bool_to_float.c
@@
-58,6
+58,8
@@
lower_alu_instr(nir_builder *b, nir_alu_instr *alu)
case nir_op_vec4:
case nir_op_vec8:
case nir_op_vec16:
+ if (alu->dest.dest.ssa.bit_size != 1)
+ return false;
/* These we expect to have booleans but the opcode doesn't change */
break;