Module: Mesa Branch: master Commit: 4dcdf974f8df23bc0a5e284759a9379ec95192a9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4dcdf974f8df23bc0a5e284759a9379ec95192a9
Author: Marek Olšák <[email protected]> Date: Thu Mar 5 22:21:11 2020 -0500 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251> --- 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]; }; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
