r600: fix resq for buffer images.
authorDave Airlie <airlied@redhat.com>
Fri, 2 Feb 2018 07:28:15 +0000 (17:28 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 4 Feb 2018 19:15:41 +0000 (05:15 +1000)
commit7801425028a3261ba091603763b515959e73815f
treee11fc1a63c1b4e4f953812af20c57a8534df1cdf
parent6c1432f0be9c7772573bb86b997c9f085d16c204
r600: fix resq for buffer images.

If this is an image buffer, we need to calculate the correct resource
id.

Fixes:
KHR-GL45.shader_image_size.*

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