aboutsummaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_formats.c
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-11-12 12:00:15 -0800
committerChad Versace <[email protected]>2015-11-12 12:21:46 -0800
commitcbc31f453d08bca5a38d7cc3d849b4279f9b9665 (patch)
tree9c6049250b527d2ead159cd0a4a7a8b2f99397fe /src/vulkan/anv_formats.c
parent1bea1669c599f28a6648991e17353af9edc95011 (diff)
anv/formats: Re-indent the fmt() macro
Use one line per struct member.
Diffstat (limited to 'src/vulkan/anv_formats.c')
-rw-r--r--src/vulkan/anv_formats.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c
index cc3df577201..3e7a6f6e5a8 100644
--- a/src/vulkan/anv_formats.c
+++ b/src/vulkan/anv_formats.c
@@ -25,7 +25,13 @@
#include "brw_surface_formats.h"
#define fmt(__vk_fmt, __hw_fmt, ...) \
- [__vk_fmt] = { .vk_format = __vk_fmt, .name = #__vk_fmt, .surface_format = __hw_fmt, .bw = 1, .bh = 1, .bd = 1, __VA_ARGS__ }
+ [__vk_fmt] = { \
+ .vk_format = __vk_fmt, \
+ .name = #__vk_fmt, \
+ .surface_format = __hw_fmt, \
+ .bw = 1, .bh = 1, .bd = 1, \
+ __VA_ARGS__ \
+ }
static const struct anv_format anv_formats[] = {
fmt(VK_FORMAT_UNDEFINED, ISL_FORMAT_RAW, .bs = 1, .num_channels = 1),