radv: fix image view creation for depth and stencil only
authorDave Airlie <airlied@redhat.com>
Tue, 15 Nov 2016 06:46:50 +0000 (06:46 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 20 Nov 2016 22:58:03 +0000 (08:58 +1000)
commit6d7be52d90cd5f4798b9612e8a68f6d6d9e31c33
treef505fb5f46362fdf77e5e39aa5f083f48dd063ff
parent51a44c0021398177d56f86b7fb8d63673186a380
radv: fix image view creation for depth and stencil only

This fixes the image view for sampling just the depth.

It removes some pointless swizzle code, and adds
a missing case for the x8_d24 format.

Fixes:
dEQP-VK.renderpass.formats.d32_sfloat_s8_uint.input.*
dEQP-VK.renderpass.formats.d24_unorm_s8_uint.input.*
dEQP-VK.renderpass.formats.x8_d24_unorm_pack32.input.*

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_formats.c
src/amd/vulkan/radv_image.c