diff options
author | Timothy Arceri <[email protected]> | 2017-03-16 15:28:47 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-16 15:33:08 +1100 |
commit | 4a32d473fd6c10451fca813e462abfbe6c876048 (patch) | |
tree | bcb0ddf89b8ec61da3df1aef1f6f905eef31b9b3 /src/mesa/main/glthread.h | |
parent | 643b0fd7e9269280b7ae0fc5c0e75c32597aa120 (diff) |
mesa: fix glthread marshal build issues on platforms without PTHREAD
Diffstat (limited to 'src/mesa/main/glthread.h')
-rw-r--r-- | src/mesa/main/glthread.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mesa/main/glthread.h b/src/mesa/main/glthread.h index 9ba89d10917..50c1db25488 100644 --- a/src/mesa/main/glthread.h +++ b/src/mesa/main/glthread.h @@ -24,18 +24,19 @@ #ifndef _GLTHREAD_H #define _GLTHREAD_H +#include "main/mtypes.h" + +/* Command size is a number of bytes stored in a short. */ +#define MARSHAL_MAX_CMD_SIZE 65535 + #ifdef HAVE_PTHREAD #include <inttypes.h> #include <stdbool.h> #include <pthread.h> -#include "main/mtypes.h" enum marshal_dispatch_cmd_id; -/* Command size is a number of bytes stored in a short. */ -#define MARSHAL_MAX_CMD_SIZE 65535 - struct glthread_state { /** The worker thread that asynchronously processes our GL commands. */ @@ -145,5 +146,10 @@ _mesa_glthread_restore_dispatch(struct gl_context *ctx) { } +static inline void +_mesa_glthread_flush_batch(struct gl_context *ctx) +{ +} + #endif /* !HAVE_PTHREAD */ #endif /* _GLTHREAD_H*/ |