projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2702202
)
i965: Also consider HALTs a potential block end.
author
Eric Anholt
<eric@anholt.net>
Wed, 12 Dec 2012 20:47:50 +0000
(12:47 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 14 Dec 2012 23:45:26 +0000
(15:45 -0800)
The final halt of the fragment shader turns off the remaining channels,
then jumps such that everything is turned back on. So, we can have our
last ENDIF of the shader point at that directly.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_eu_emit.c
b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index c294bae74d9a05cc017f629068ab7a3ae98d5545..8a93ced760ff892c57b8219d099d3fd97313903c 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/
src/mesa/drivers/dri/i965/brw_eu_emit.c
@@
-2317,6
+2317,7
@@
brw_find_next_block_end(struct brw_compile *p, int start)
case BRW_OPCODE_ENDIF:
case BRW_OPCODE_ELSE:
case BRW_OPCODE_WHILE:
+ case BRW_OPCODE_HALT:
return ip;
}
}