Mesa (master): i965: Also consider HALTs a potential block end.

Eric Anholt anholt at kemper.freedesktop.org
Sat Dec 15 00:04:52 UTC 2012


Module: Mesa
Branch: master
Commit: 7baf9198b201666fc0f20fe407d7b46ee0ca7ef5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7baf9198b201666fc0f20fe407d7b46ee0ca7ef5

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Dec 12 12:47:50 2012 -0800

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 <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_eu_emit.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index c294bae..8a93ced 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;
       }
    }




More information about the mesa-commit mailing list