i965/gen4: Fix GPU hangs since the program streaming change.
This was tricky. We were doing a use-before-initialize of
grf_reg_count, but the value usually got overwritten anyway -- when we
didn't have to do a relocation (typical), or on gen5 when we didn't
have relocations at all.
commit 804995807dfea9c bdbd676e52b95d4 2715101913
Author: Eric Anholt <email address hidden>
Date: Fri Jul 8 15:30:48 2011 -0700
i965/gen4: Fix GPU hangs since the program streaming change.
This was tricky. We were doing a use-before- initialize of
grf_reg_count, but the value usually got overwritten anyway -- when we
didn't have to do a relocation (typical), or on gen5 when we didn't
have relocations at all.
Bugzilla: https:/ /bugs.freedeskt op.org/ show_bug. cgi?id= 38771 5b59547945704c6 037a5061c7)
Reviewed-by: Kenneth Graunke <email address hidden>
(cherry picked from commit d03fdc4cdefdfdc