From: Marek Olšák Date: Fri, 6 Mar 2020 03:21:11 +0000 (-0500) Subject: glthread: align the batch buffer to 8 bytes for pointers and doubles again X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4dcdf974f8df23bc0a5e284759a9379ec95192a9;hp=ff0881c686cc250d492d38fd14063e4b18c951c1;p=mesa.git 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: --- 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]; };