r600c: bump sq gpr resources if a shader needs more than default
authorAndre Maasikas <amaasikas@gmail.com>
Thu, 20 Jan 2011 11:05:21 +0000 (13:05 +0200)
committerAndre Maasikas <amaasikas@gmail.com>
Thu, 20 Jan 2011 11:11:56 +0000 (13:11 +0200)
commitc20778e76f1203063977337ebbe1bd2aacef5dc0
tree54e8f4a3e66da0cd2d9c88ddd8dc1bb54d4ad46f
parente8c7d7598fb48237508f566204c71ba8f74d544f
r600c: bump sq gpr resources if a shader needs more than default

ideally this should be set once in the beginning of CS but there's
no way to change values there while in the middle of rendering.
For now reemitting SQ setup seems to work probably due to
r700WaitForIdleClean after each render

currently does not to try to decrease values once increased

fixes hangs in glsl-vs-vec4-indexing-temp-src-in-nested-loop-combined
glsl-vs-vec4-indexing-temp-dst-in-nested-loop-combined for my rv740
maybe more for other chips
src/mesa/drivers/dri/r600/r700_fragprog.c
src/mesa/drivers/dri/r600/r700_vertprog.c