projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9851c82
)
anv/formats: Don't use a compound literal to initialize a const array
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 18 Feb 2016 18:44:06 +0000
(10:44 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 18 Feb 2016 18:44:08 +0000
(10:44 -0800)
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.
src/intel/vulkan/anv_formats.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_formats.c
b/src/intel/vulkan/anv_formats.c
index 7798a7bbde385ae3a23b3591996d01aed58e4248..b4b52aa60534b5f81835f278e5d83888678aef50 100644
(file)
--- 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] = { \