From: Nanley Chery Date: Tue, 29 Sep 2015 22:47:39 +0000 (-0700) Subject: anv/formats: Define ETC2 formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c2b37a9c3cb9586365ae7e7eb532b85eae98f3a;p=mesa.git anv/formats: Define ETC2 formats Reviewed-by: Chad Versace --- diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c index b588465e00e..56f4ebda59a 100644 --- a/src/vulkan/anv_formats.c +++ b/src/vulkan/anv_formats.c @@ -144,16 +144,16 @@ static const struct anv_format anv_formats[] = { fmt(VK_FORMAT_BC6H_SFLOAT, UNSUPPORTED), fmt(VK_FORMAT_BC7_UNORM, UNSUPPORTED), fmt(VK_FORMAT_BC7_SRGB, UNSUPPORTED), - fmt(VK_FORMAT_ETC2_R8G8B8_UNORM, UNSUPPORTED), - fmt(VK_FORMAT_ETC2_R8G8B8_SRGB, UNSUPPORTED), - fmt(VK_FORMAT_ETC2_R8G8B8A1_UNORM, UNSUPPORTED), - fmt(VK_FORMAT_ETC2_R8G8B8A1_SRGB, UNSUPPORTED), - fmt(VK_FORMAT_ETC2_R8G8B8A8_UNORM, UNSUPPORTED), - fmt(VK_FORMAT_ETC2_R8G8B8A8_SRGB, UNSUPPORTED), - fmt(VK_FORMAT_EAC_R11_UNORM, UNSUPPORTED), - fmt(VK_FORMAT_EAC_R11_SNORM, UNSUPPORTED), - fmt(VK_FORMAT_EAC_R11G11_UNORM, UNSUPPORTED), - fmt(VK_FORMAT_EAC_R11G11_SNORM, UNSUPPORTED), + fmt(VK_FORMAT_ETC2_R8G8B8_UNORM, ETC2_RGB8 , .bs = 8, .bw = 4, .bh = 4), + fmt(VK_FORMAT_ETC2_R8G8B8_SRGB, ETC2_SRGB8 , .bs = 8, .bw = 4, .bh = 4), + fmt(VK_FORMAT_ETC2_R8G8B8A1_UNORM, ETC2_RGB8_PTA , .bs = 8, .bw = 4, .bh = 4), + fmt(VK_FORMAT_ETC2_R8G8B8A1_SRGB, ETC2_SRGB8_PTA , .bs = 8, .bw = 4, .bh = 4), + fmt(VK_FORMAT_ETC2_R8G8B8A8_UNORM, ETC2_EAC_RGBA8 , .bs = 16, .bw = 4, .bh = 4), + fmt(VK_FORMAT_ETC2_R8G8B8A8_SRGB, ETC2_EAC_SRGB8_A8, .bs = 16, .bw = 4, .bh = 4), + fmt(VK_FORMAT_EAC_R11_UNORM, EAC_R11 , .bs = 8, .bw = 4, .bh = 4), + fmt(VK_FORMAT_EAC_R11_SNORM, EAC_SIGNED_R11 , .bs = 8, .bw = 4, .bh = 4), + fmt(VK_FORMAT_EAC_R11G11_UNORM, EAC_RG11 , .bs = 16, .bw = 4, .bh = 4), + fmt(VK_FORMAT_EAC_R11G11_SNORM, EAC_SIGNED_RG11 , .bs = 16, .bw = 4, .bh = 4), fmt(VK_FORMAT_ASTC_4x4_UNORM, UNSUPPORTED), fmt(VK_FORMAT_ASTC_4x4_SRGB, UNSUPPORTED), fmt(VK_FORMAT_ASTC_5x4_UNORM, UNSUPPORTED),