r600g: move sampler/ubo index registers before temp reg
authorDave Airlie <airlied@redhat.com>
Thu, 9 Jul 2015 05:49:56 +0000 (15:49 +1000)
committerDave Airlie <airlied@redhat.com>
Sat, 11 Jul 2015 06:31:02 +0000 (16:31 +1000)
commite70d0515603df081916f6f31bb9e0455298b10cc
treeaf511cff695ea01e0f32e66b6b527dbb6d4dd025
parentc397bd14077b760125604426a99aba00d6193788
r600g: move sampler/ubo index registers before temp reg

temp_reg needs to be last, as we increment things
away from it, otherwise on cayman some tests were overwriting
the index regs.

Fixes 2 piglit with ARB_gpu_shader5 forced on cayman.

Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c