vk/formats: Fix table entry for R8G8B8_SNORM
authorChad Versace <chad.versace@intel.com>
Fri, 26 Jun 2015 01:22:59 +0000 (18:22 -0700)
committerChad Versace <chad.versace@intel.com>
Fri, 26 Jun 2015 03:10:16 +0000 (20:10 -0700)
Now that anv_formats[] is formatted like a table, buggy entries are
easier to see.

src/vulkan/formats.c

index d93802b23e1522554990f8362adcd3efdf339f62..c88c7ce1ab9e84c3367fdde2ec1c8dc47ff92166 100644 (file)
@@ -53,7 +53,7 @@ static const struct anv_format anv_formats[] = {
    fmt(VK_FORMAT_R8G8_SINT,               R8G8_SINT,              .cpp = 2,   .num_channels = 2),
    fmt(VK_FORMAT_R8G8_SRGB,               UNSUPPORTED), /* L8A8_UNORM_SRGB */
    fmt(VK_FORMAT_R8G8B8_UNORM,            R8G8B8X8_UNORM,         .cpp = 3,   .num_channels = 3),
-   fmt(VK_FORMAT_R8G8B8_SNORM,            R8G8B8_SNORM,           .cpp = 4),
+   fmt(VK_FORMAT_R8G8B8_SNORM,            R8G8B8_SNORM,           .cpp = 3,   .num_channels = 3),
    fmt(VK_FORMAT_R8G8B8_USCALED,          R8G8B8_USCALED,         .cpp = 3,   .num_channels = 3),
    fmt(VK_FORMAT_R8G8B8_SSCALED,          R8G8B8_SSCALED,         .cpp = 3,   .num_channels = 3),
    fmt(VK_FORMAT_R8G8B8_UINT,             R8G8B8_UINT,            .cpp = 3,   .num_channels = 3),