summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/common
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-03-29 10:58:43 -0600
committerTim Rowley <[email protected]>2016-04-12 11:52:05 -0500
commit32a8653ad2cef2fba70b33ee62adc6f5d9d427d8 (patch)
treecf33cf8e625eac1ae4b58d90772918a50d4284d8 /src/gallium/drivers/swr/rasterizer/common
parente1871c4459bbd291e6356e971c6aa2becf4ecb96 (diff)
swr: [rasterizer] Ensure correct alignment of stack variables used as vectors
Acked-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/common')
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/os.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index 427ebc1b3cc..180a0560822 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -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"