mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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.
This commit is contained in:
parent
9851c8285f
commit
8c23392c26
1 changed files with 2 additions and 2 deletions
|
|
@ -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] = { \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue