mesa: Use C11 alignas for cross-platform SSE support
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>
This commit is contained in:
parent
8fbad5e42f
commit
c378bbab75
|
@ -26,6 +26,7 @@
|
|||
*/
|
||||
|
||||
#include "main/sse_minmax.h"
|
||||
#include "util/macros.h"
|
||||
#include <smmintrin.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -54,8 +55,8 @@ _mesa_uint_array_min_max(const unsigned *ui_indices, unsigned *min_index,
|
|||
* find the actual tipping point.
|
||||
*/
|
||||
if (aligned_count >= 8) {
|
||||
unsigned max_arr[4] __attribute__ ((aligned (16)));
|
||||
unsigned min_arr[4] __attribute__ ((aligned (16)));
|
||||
alignas(16) unsigned max_arr[4];
|
||||
alignas(16) unsigned min_arr[4];
|
||||
unsigned vec_count;
|
||||
__m128i max_ui4 = _mm_setzero_si128();
|
||||
__m128i min_ui4 = _mm_set1_epi32(~0U);
|
||||
|
|
Loading…
Reference in New Issue