mesa: Statically allocate glthread command buffer in the batch struct.
[mesa.git] / src / mesa / main / glthread.h
index c38fef32fa01d4169bf2c55a8c3734145eaf4063..98ae11509a66061cec0e225125e2bfd4b8ab277b 100644 (file)
@@ -94,14 +94,14 @@ struct glthread_batch
    struct glthread_batch *next;
 
    /**
-    * Points to the first command in the batch.
+    * Amount of data used by batch commands, in bytes.
     */
-   uint8_t *buffer;
+   size_t used;
 
    /**
-    * Amount of data used by batch commands, in bytes.
+    * Data contained in the command buffer.
     */
-   size_t used;
+   uint8_t buffer[MARSHAL_MAX_CMD_SIZE];
 };
 
 void _mesa_glthread_init(struct gl_context *ctx);