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_int32.c
diff --git
a/src/compiler/nir/nir_lower_bool_to_int32.c
b/src/compiler/nir/nir_lower_bool_to_int32.c
index 1ea8d12cb210f26f72b2a6fc268decf8b28d40c0..706f5d6ef8d5d5b4dec349be07bdade1395de99a 100644
(file)
--- a/
src/compiler/nir/nir_lower_bool_to_int32.c
+++ b/
src/compiler/nir/nir_lower_bool_to_int32.c
@@
-59,6
+59,8
@@
lower_alu_instr(nir_alu_instr *alu)
case nir_op_iand:
case nir_op_ior:
case nir_op_ixor:
+ if (alu->dest.dest.ssa.bit_size != 1)
+ return false;
/* These we expect to have booleans but the opcode doesn't change */
break;