From 4dcdf974f8df23bc0a5e284759a9379ec95192a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 5 Mar 2020 22:21:11 -0500 Subject: [PATCH] glthread: align the batch buffer to 8 bytes for pointers and doubles again This was changed when I switched to types from size_t to int. Reviewed-by: Timothy Arceri Part-of: --- src/mesa/main/glthread.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/glthread.h b/src/mesa/main/glthread.h index d4a680ab038..34af466d685 100644 --- a/src/mesa/main/glthread.h +++ b/src/mesa/main/glthread.h @@ -71,6 +71,11 @@ struct glthread_batch int used; /** Data contained in the command buffer. */ +#ifdef _MSC_VER + __declspec(align(8)) +#else + __attribute__((aligned(8))) +#endif uint8_t buffer[MARSHAL_MAX_CMD_SIZE]; }; -- 2.30.2