diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format.h b/src/gallium/auxiliary/gallivm/lp_bld_format.h index ad7f6f51c6e..425b2f572f5 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_format.h @@ -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; diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c index 91f0ea6e4cd..0ab79e4a361 100644 --- a/src/gallium/auxiliary/translate/translate_sse.c +++ b/src/gallium/auxiliary/translate/translate_sse.c @@ -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];