diff options
author | Nanley Chery <[email protected]> | 2015-09-29 14:53:28 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2015-11-09 15:41:41 -0800 |
commit | a6c7d1e016545c05b64bacf4dd87a354a6c9cd58 (patch) | |
tree | 96ec9eca2af133e86c629666831fbd298675d66f /src/vulkan/anv_formats.c | |
parent | 3ee923f1c2ef0832ebd6da445548e0a651aaae80 (diff) |
anv/formats: Add surface_format initializer
v2: Rename __brw_fmt to __hw_fmt (Chad)
Suggested-by: Jason Ekstrand <[email protected]>
Reviewed-by: Chad Versace [email protected]
Diffstat (limited to 'src/vulkan/anv_formats.c')
-rw-r--r-- | src/vulkan/anv_formats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c index 28212341448..5631bea10e3 100644 --- a/src/vulkan/anv_formats.c +++ b/src/vulkan/anv_formats.c @@ -26,8 +26,8 @@ #define UNSUPPORTED 0xffff -#define fmt(__vk_fmt, ...) \ - [__vk_fmt] = { .vk_format = __vk_fmt, .name = #__vk_fmt, __VA_ARGS__ } +#define fmt(__vk_fmt, __hw_fmt, ...) \ + [__vk_fmt] = { .vk_format = __vk_fmt, .name = #__vk_fmt, .surface_format = __hw_fmt, __VA_ARGS__ } static const struct anv_format anv_formats[] = { fmt(VK_FORMAT_UNDEFINED, RAW, .bs = 1, .num_channels = 1), |