radv/gfx9: add 3d sampler image->buffer copy shader. (v3)
authorDave Airlie <airlied@redhat.com>
Tue, 19 Dec 2017 03:55:18 +0000 (13:55 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 22 Dec 2017 04:08:48 +0000 (14:08 +1000)
commita99fa7e8a2b7d36dc26cf2dbf5f38f55c674f719
tree211db0bf7efb1ff4fb012f19366cd7d2c1a484a7
parent9594667899e2e04d625901ea703a44d8c4b4737c
radv/gfx9: add 3d sampler image->buffer copy shader. (v3)

On GFX9 we must access 3D textures with 3D samplers AFAICS.

This fixes:
dEQP-VK.api.image_clearing.core.clear_color_image.3d.single_layer

on GFX9 for me.

v1.1: fix tex->sampler_dim to dim
v2: send layer in from outside
v3: don't regress on pre-gfx9

Fixes: e38685cc62e 'Revert "radv: disable support for VEGA for now."'
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Alex Smith <asmith@feralinteractive.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_bufimage.c
src/amd/vulkan/radv_private.h