anv/formats: Define ETC2 formats
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 29 Sep 2015 22:47:39 +0000 (15:47 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 9 Nov 2015 23:41:41 +0000 (15:41 -0800)
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/vulkan/anv_formats.c

index b588465e00ee19f850af5fe4d415dadea41639d6..56f4ebda59a93a64b9c3bbc5d695bf88e7e6fae6 100644 (file)
@@ -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),