r600g: adjust vs/ps gprs on r600/r700 cards when needed.
authorDave Airlie <airlied@redhat.com>
Wed, 8 Jun 2011 04:35:00 +0000 (14:35 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 9 Jun 2011 01:25:02 +0000 (11:25 +1000)
commit04554c7d3a3b28e8103e50ed54f1ac57c6c11017
tree83165b67573bfd9cb778db08fdbb2f1622097322
parentd56fe67c6255b1ace84c025c83439ab8cb3f91fe
r600g: adjust vs/ps gprs on r600/r700 cards when needed.

Ideally we'd have a compiler and register spilling and all that
but this is good enough for now to avoid the gpu hang in piglit,

glsl-vs-vec4-indexing-temp-dst-in-nested-loop-combined

on r600/r700 cards.

based on r600c patch
Andre Maasikas <amaasikas@gmail.com>
r600c: bump sq gpr resources if a shader needs more than default

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_state_common.c
src/gallium/winsys/r600/drm/r600_hw_context.c
src/gallium/winsys/r600/drm/r600_priv.h