projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10602db
)
nir/loop_analyze: use nir_const_value.b for boolean results, not u32
author
Karol Herbst
<kherbst@redhat.com>
Tue, 2 Apr 2019 12:12:06 +0000
(14:12 +0200)
committer
Karol Herbst
<kherbst@redhat.com>
Sun, 14 Apr 2019 20:25:56 +0000
(22:25 +0200)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_loop_analyze.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_loop_analyze.c
b/src/compiler/nir/nir_loop_analyze.c
index 781dac27bb7188d9ad3e53daee077f8acd17aa30..75c15ec63d500c0dd962fe9cf5234bfb2c69228f 100644
(file)
--- a/
src/compiler/nir/nir_loop_analyze.c
+++ b/
src/compiler/nir/nir_loop_analyze.c
@@
-656,7
+656,7
@@
test_iterations(int32_t iter_int, nir_const_value *step,
/* Evaluate the loop exit condition */
nir_const_value result = nir_eval_const_opcode(cond_op, 1, bit_size, src);
- return invert_cond ?
(result.u32[0] == 0) : (result.u32[0] != 0)
;
+ return invert_cond ?
!result.b[0] : result.b[0]
;
}
static int