OSDN Git Service

i965/gen4: Fix GPU hangs since the program streaming change.
authorEric Anholt <eric@anholt.net>
Fri, 8 Jul 2011 22:30:48 +0000 (15:30 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 9 Jul 2011 14:45:48 +0000 (07:45 -0700)
commitd03fdc4cdefdfdc5b59547945704c6037a5061c7
tree4a5d4f9cd570539746def700b99675e4c11fa5e6
parent57b57f6d1c3689a3a44222cb169bfd3e3142a68d
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.freedesktop.org/show_bug.cgi?id=38771
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vs_state.c