radv: enable R8G8B8, B8G8R8 and R16G16B16 vertex formats
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 2 Aug 2022 13:40:46 +0000 (14:40 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 30 Aug 2022 19:02:11 +0000 (19:02 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6956
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17894>

src/amd/vulkan/radv_formats.c

index c6f4731..7a45b9c 100644 (file)
@@ -171,7 +171,6 @@ radv_is_vertex_buffer_format_supported(VkFormat format)
    switch (desc->channel[first_non_void].size) {
    case 8:
    case 16:
-      return desc->nr_channels != 3;
    case 32:
       return true;
    default: