i965: Only set Last Render Target Select on the last FB write.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 19 Feb 2012 05:29:29 +0000 (21:29 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 21 Feb 2012 20:36:20 +0000 (12:36 -0800)
commit172bb92db1a3c317867d9cfec6f15c09c37a0f6c
tree3f6725cc71219b4eedac2e51818282849da07c44
parent32f833e5a58d886065309da5414a63924e61e9d9
i965: Only set Last Render Target Select on the last FB write.

Fixes GPU hangs in OilRush, Trine, and Amnesia: The Dark Descent,
which all use MRT (multiple render targets).

NOTE: This is a candidate for release branches.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38720
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40059
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45216
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c