[Mesa-dev] [PATCH] i965: Only set Last Render Target Select on the last FB write.

Kenneth Graunke kenneth at whitecape.org
Tue Feb 21 10:39:11 PST 2012


Fixes GPU hangs in OilRush, which does depth buffer clears with MRT.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_eu_emit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index 839f6c3..179b59a 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -2270,7 +2270,7 @@ void brw_fb_WRITE(struct brw_compile *p,
 			    msg_type,
 			    msg_length,
 			    header_present,
-			    1, /* last render target write */
+			    eot, /* last render target write */
 			    response_length,
 			    eot,
 			    0 /* send_commit_msg */);
-- 
1.7.7.6



More information about the mesa-dev mailing list