r600: fix sampler indexing with texture buffers sampling
authorRoland Scheidegger <sroland@vmware.com>
Tue, 2 Jan 2018 22:03:44 +0000 (23:03 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 10 Jan 2018 03:59:00 +0000 (04:59 +0100)
commit762ccf483aa0f5f853e75c886d49c4025cebaf00
tree805fa95b4c050f85a989eec77733dcbb8c70bf99
parent6c8d6ce982d3ce9dfde02a59db23b138df26ae55
r600: fix sampler indexing with texture buffers sampling

This fixes the new piglit test.
While here also fix up the logic for early exit of setting up driver consts.

Tested-by: Konstantin Kharlamov <hi-angel@yandex.ru>
Reviewed-by: Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state_common.c