From: Eric Anholt Date: Wed, 12 Dec 2012 20:47:50 +0000 (-0800) Subject: i965: Also consider HALTs a potential block end. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7baf9198b201666fc0f20fe407d7b46ee0ca7ef5;p=mesa.git i965: Also consider HALTs a potential block end. 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 --- diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index c294bae74d9..8a93ced760f 100644 --- 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; } }