diff options
author | Marek Olšák <[email protected]> | 2020-03-05 22:21:11 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-20 00:00:22 +0000 |
commit | 4dcdf974f8df23bc0a5e284759a9379ec95192a9 (patch) | |
tree | bcf84cbd61451f6ca2a88e2a179bbdc3438a296b /src/mesa/main | |
parent | ff0881c686cc250d492d38fd14063e4b18c951c1 (diff) |
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>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/glthread.h | 5 |
1 files changed, 5 insertions, 0 deletions
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]; }; |