vk: Mark VK_FORMAT_UNDEFINED as 1 cpp, 1 channel
authorKristian Høgsberg <kristian.h.kristensen@intel.com>
Wed, 20 May 2015 21:36:11 +0000 (14:36 -0700)
committerKristian Høgsberg <kristian.h.kristensen@intel.com>
Thu, 21 May 2015 03:34:52 +0000 (20:34 -0700)
src/vulkan/formats.c

index dfcbe9ab906793f74cb94c0e5a5cd4122530809a..c1cdc977ac4fee451b8e52ea34ea53b3cffe96cb 100644 (file)
@@ -26,7 +26,7 @@
 #define UNSUPPORTED ~0U
 
 static const struct anv_format anv_formats[] = {
-   [VK_FORMAT_UNDEFINED] = { .format = RAW },
+   [VK_FORMAT_UNDEFINED] = { .format = RAW, .cpp = 1, .channels = 1 },
    [VK_FORMAT_R4G4_UNORM] = { .format = UNSUPPORTED },
    [VK_FORMAT_R4G4_USCALED] = { .format = UNSUPPORTED },
    [VK_FORMAT_R4G4B4A4_UNORM] = { .format = UNSUPPORTED },