mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 13:20:37 +02:00
swr: [rasterizer] Ensure correct alignment of stack variables used as vectors
Acked-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
e1871c4459
commit
32a8653ad2
2 changed files with 4 additions and 3 deletions
|
|
@ -193,9 +193,7 @@ typedef KILOBYTE MEGABYTE[1024];
|
|||
typedef MEGABYTE GIGABYTE[1024];
|
||||
|
||||
#define OSALIGNLINE(RWORD) OSALIGN(RWORD, 64)
|
||||
#if KNOB_SIMD_WIDTH == 8
|
||||
#define OSALIGNSIMD(RWORD) OSALIGN(RWORD, 32)
|
||||
#endif
|
||||
#define OSALIGNSIMD(RWORD) OSALIGN(RWORD, KNOB_SIMD_BYTES)
|
||||
|
||||
#include "common/swr_assert.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -45,14 +45,17 @@
|
|||
#define KNOB_ARCH_ISA AVX
|
||||
#define KNOB_ARCH_STR "AVX"
|
||||
#define KNOB_SIMD_WIDTH 8
|
||||
#define KNOB_SIMD_BYTES 32
|
||||
#elif (KNOB_ARCH == KNOB_ARCH_AVX2)
|
||||
#define KNOB_ARCH_ISA AVX2
|
||||
#define KNOB_ARCH_STR "AVX2"
|
||||
#define KNOB_SIMD_WIDTH 8
|
||||
#define KNOB_SIMD_BYTES 32
|
||||
#elif (KNOB_ARCH == KNOB_ARCH_AVX512)
|
||||
#define KNOB_ARCH_ISA AVX512F
|
||||
#define KNOB_ARCH_STR "AVX512"
|
||||
#define KNOB_SIMD_WIDTH 16
|
||||
#define KNOB_SIMD_BYTES 64
|
||||
#error "AVX512 not yet supported"
|
||||
#else
|
||||
#error "Unknown architecture"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue