summaryrefslogtreecommitdiffstats
path: root/src/vulkan/formats.c
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2015-05-20 14:36:11 -0700
committerKristian Høgsberg <[email protected]>2015-05-20 20:34:52 -0700
commit387a1bb58f650526746a959850c4b10a7e650106 (patch)
treeeee4fa352dd7c7a23ba0ff775f6597b037036338 /src/vulkan/formats.c
parenta1bd426393fb24a53d2cb180b21db4473ed71330 (diff)
vk: Mark VK_FORMAT_UNDEFINED as 1 cpp, 1 channel
Diffstat (limited to 'src/vulkan/formats.c')
-rw-r--r--src/vulkan/formats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/formats.c b/src/vulkan/formats.c
index dfcbe9ab906..c1cdc977ac4 100644
--- a/src/vulkan/formats.c
+++ b/src/vulkan/formats.c
@@ -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 },