summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-18 10:44:06 -0800
committerJason Ekstrand <[email protected]>2016-02-18 10:44:08 -0800
commit8c23392c26916711b7b02337fd342ee9765b6fd4 (patch)
treeb87b565bbb0cf5dfbd76e0f60ed130428aeb2b01
parent9851c8285f7bf70a6cb4bede2ee94110c14acc19 (diff)
anv/formats: Don't use a compound literal to initialize a const array
Doing so makes older versions of GCC rather grumpy. Newere GCC fixes this, but using a compound literal isn't really gaining us anything anyway.
-rw-r--r--src/intel/vulkan/anv_formats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c
index 7798a7bbde3..b4b52aa6053 100644
--- a/src/intel/vulkan/anv_formats.c
+++ b/src/intel/vulkan/anv_formats.c
@@ -24,8 +24,8 @@
#include "anv_private.h"
#include "brw_surface_formats.h"
-#define RGBA ((struct anv_format_swizzle) { 0, 1, 2, 3 })
-#define BGRA ((struct anv_format_swizzle) { 2, 1, 0, 3 })
+#define RGBA { 0, 1, 2, 3 }
+#define BGRA { 2, 1, 0, 3 }
#define swiz_fmt(__vk_fmt, __hw_fmt, __swizzle, ...) \
[__vk_fmt] = { \