projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aaed91
)
nir/lower_returns: Fix a bug in loop lowering
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 28 Dec 2015 21:22:09 +0000
(13:22 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 28 Dec 2015 21:22:09 +0000
(13:22 -0800)
src/glsl/nir/nir_lower_returns.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir_lower_returns.c
b/src/glsl/nir/nir_lower_returns.c
index 178e454d7374e241bd4086f99e97ceff7a8e5a0e..dcdd14e2026014eb7eac1517fc0c0a242b21ffa1 100644
(file)
--- a/
src/glsl/nir/nir_lower_returns.c
+++ b/
src/glsl/nir/nir_lower_returns.c
@@
-160,7
+160,7
@@
lower_returns_in_block(nir_block *block, struct lower_returns_state *state)
if (state->loop) {
/* We're in a loop. Make the return a break. */
- jump->type = nir_jump_
return
;
+ jump->type = nir_jump_
break
;
} else {
/* Not in a loop. Just delete the return; we'll deal with
* predicating later.