From 31351a0281b0a0080fb2b417df570445fe71ea64 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Sat, 5 Oct 2019 12:13:29 -0400 Subject: [PATCH] turnip: add more 2d_ifmt translations Signed-off-by: Jonathan Marek Reviewed-by: Kristian H. Kristensen --- src/freedreno/vulkan/tu_formats.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/freedreno/vulkan/tu_formats.c b/src/freedreno/vulkan/tu_formats.c index 1ec8673f5b4..02dc87a7426 100644 --- a/src/freedreno/vulkan/tu_formats.c +++ b/src/freedreno/vulkan/tu_formats.c @@ -337,6 +337,11 @@ tu6_rb_fmt_to_ifmt(enum a6xx_color_fmt fmt) case RB6_R8G8B8A8_UNORM: case RB6_R8G8B8_UNORM: case RB6_R8G8B8A8_SNORM: + case RB6_R4G4B4A4_UNORM: + case RB6_R5G5B5A1_UNORM: + case RB6_R5G6B5_UNORM: + case RB6_X8Z24_UNORM: + case RB6_Z24_UNORM_S8_UINT: return R2D_UNORM8; case RB6_R32_UINT: @@ -353,6 +358,7 @@ tu6_rb_fmt_to_ifmt(enum a6xx_color_fmt fmt) case RB6_R16G16_SINT: case RB6_R16G16B16A16_UINT: case RB6_R16G16B16A16_SINT: + case RB6_R10G10B10A2_UINT: return R2D_INT16; case RB6_R8_UINT: @@ -377,17 +383,10 @@ tu6_rb_fmt_to_ifmt(enum a6xx_color_fmt fmt) case RB6_R16_FLOAT: case RB6_R16G16_FLOAT: case RB6_R16G16B16A16_FLOAT: + case RB6_R11G11B10_FLOAT: + case RB6_R10G10B10A2_UNORM: return R2D_FLOAT16; - case RB6_R4G4B4A4_UNORM: - case RB6_R5G5B5A1_UNORM: - case RB6_R5G6B5_UNORM: - case RB6_R10G10B10A2_UNORM: - case RB6_R10G10B10A2_UINT: - case RB6_R11G11B10_FLOAT: - case RB6_X8Z24_UNORM: - // ??? - return 0; default: unreachable("bad format"); return 0; -- 2.30.2