gallium: use c11 alignas instead of PIPE_ALIGN_VAR

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>
This commit is contained in:
Erik Faye-Lund 2022-06-08 11:01:31 +02:00 committed by Marge Bot
parent 69d2d38f6e
commit 04ca04ba46
2 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ struct lp_build_context;
*/
struct lp_build_format_cache
{
PIPE_ALIGN_VAR(16) uint32_t cache_data[LP_BUILD_FORMAT_CACHE_SIZE][4][4];
alignas(16) uint32_t cache_data[LP_BUILD_FORMAT_CACHE_SIZE][4][4];
uint64_t cache_tags[LP_BUILD_FORMAT_CACHE_SIZE];
#if LP_BUILD_FORMAT_CACHE_DEBUG
uint64_t cache_access_total;

View file

@ -111,8 +111,8 @@ struct translate_sse
struct x86_function elt8_func;
struct x86_function *func;
PIPE_ALIGN_VAR(16) float consts[NUM_FLOAT_CONSTS][4];
PIPE_ALIGN_VAR(16) float uconsts[NUM_UNSIGNED_CONSTS][4];
alignas(16) float consts[NUM_FLOAT_CONSTS][4];
alignas(16) float uconsts[NUM_UNSIGNED_CONSTS][4];
int8_t reg_to_const[16];
int8_t const_to_reg[NUM_FLOAT_CONSTS + NUM_UNSIGNED_CONSTS];