radv: handle GFX9 1D textures
authorDave Airlie <airlied@redhat.com>
Wed, 16 Aug 2017 05:20:29 +0000 (06:20 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 12 Sep 2017 22:40:41 +0000 (08:40 +1000)
commit1bcb953e16600e0d9329b678a6eacee98d326547
tree19bd9c7290a8d2a69ef8efe00d6998dcad08e39b
parent2f5b4490b59062f224e73f7a2d5cc0d8bd8eaa7b
radv: handle GFX9 1D textures

As GFX9 can't handle 1D depth textures, radeonsi and
apparantly pro just update all 1D textures to 2D,
and work around it.

This ports the workarounds from radeonsi.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/vulkan/radv_image.c