aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/ralloc.c
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@ntdev.microsoft.com>2020-01-27 09:41:42 -0800
committerMarge Bot <eric+marge@anholt.net>2020-04-21 21:56:21 +0000
commita842dc154d3cac5af7ff30f7d0501ae42a1d1d7b (patch)
treead2f173687408e72b55018992e886442db026880 /src/util/ralloc.c
parentb7c47c4f7cfd0513ee2b98179cc22f402e5b3817 (diff)
downloadexternal_mesa3d-a842dc154d3cac5af7ff30f7d0501ae42a1d1d7b.tar.gz
external_mesa3d-a842dc154d3cac5af7ff30f7d0501ae42a1d1d7b.tar.bz2
external_mesa3d-a842dc154d3cac5af7ff30f7d0501ae42a1d1d7b.zip
util/ralloc: fix ralloc alignment on Win64
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4648>
Diffstat (limited to 'src/util/ralloc.c')
-rw-r--r--src/util/ralloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/ralloc.c b/src/util/ralloc.c
index 0d20223d98f..f36f8bf3654 100644
--- a/src/util/ralloc.c
+++ b/src/util/ralloc.c
@@ -53,7 +53,11 @@ _CRTIMP int _vscprintf(const char *format, va_list argptr);
*/
struct
#ifdef _MSC_VER
+#if _WIN64
+__declspec(align(16))
+#else
__declspec(align(8))
+#endif
#elif defined(__LP64__)
__attribute__((aligned(16)))
#else