r600: overhaul buffer resource query.
authorDave Airlie <airlied@redhat.com>
Sun, 4 Feb 2018 22:42:52 +0000 (08:42 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Feb 2018 20:08:12 +0000 (06:08 +1000)
commit00a112641b6c9a401079fbe5e61f4befe636876e
tree80c3b4f961dfffbd276b5aaeff45dd2f4ef06015
parent736b150768bdf4a0b46fbf8684dcb645d9fa89e3
r600: overhaul buffer resource query.

This cleans up and fixes the previous fix even more.

Buffers from textures start at max const,
buffers from buffers/images come in from the 168 offset.

This fixes a bunch of:
KHR-GL45.shader_storage_buffer_object*

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c