i965: Fix null register use in Sandybridge implied move resolution.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 3 Apr 2011 07:57:30 +0000 (00:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 3 Apr 2011 07:57:30 +0000 (00:57 -0700)
commita019dd0d6e5bba00e8ee7818e004ee42ca507102
treee2fd02af4343721a9c7e138b499125835ce45818
parent904b8ba1bb604b2eaaa22f7f074d236011fe213f
i965: Fix null register use in Sandybridge implied move resolution.

Fixes regressions caused by commit 9a21bc6401, namely GPU hangs when
running gnome-shell or compiz (Mesa bugs #35820 and #35853).

I incorrectly refactored the case that dealt with ARF_NULL; even in that
case, the source register needs to be changed to the MRF.

NOTE: This is a candidate for the 7.10 branch (if 9a21bc6401 is
cherry-picked, take this one too).
src/mesa/drivers/dri/i965/brw_eu_emit.c