i965: Fix GS hang on Sandybridge
authorZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 14 Oct 2010 02:54:53 +0000 (10:54 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 14 Oct 2010 03:24:42 +0000 (11:24 +0800)
commite8e79c1d7eed0f5ae8820611cb86bdbd6ce595e6
treea3483b9f1ee6f525ee55fad1a1374fa0099afd4b
parenta57ef244fc55476660f9fb76982130c5c0b25163
i965: Fix GS hang on Sandybridge

Don't use r0 for FF_SYNC dest reg on Sandybridge, which would
smash FFID field in GS payload, that cause later URB write fail.
Also not use r0 in any URB write requiring allocate.
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_gs.h
src/mesa/drivers/dri/i965/brw_gs_emit.c