glthread: align the batch buffer to 8 bytes for pointers and doubles again
authorMarek Olšák <marek.olsak@amd.com>
Fri, 6 Mar 2020 03:21:11 +0000 (22:21 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 20 Mar 2020 00:00:22 +0000 (00:00 +0000)
This was changed when I switched to types from size_t to int.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251>

src/mesa/main/glthread.h

index d4a680ab0388e2853ca3cefa4e769e604456f1e9..34af466d68513045fd4e9095890ee207f873fb2f 100644 (file)
@@ -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];
 };