diff options
author | Chia-I Wu <[email protected]> | 2010-09-13 13:35:12 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-09-14 15:49:47 +0800 |
commit | 10ff2646a443ca3c54d66443b346eb7063973b5e (patch) | |
tree | f2836e3ab2e033c6c07e4d5903a3d2f75cba61e1 /src/mesa/main/syncobj.h | |
parent | db6273e0ddc5dbfcff27b8f75982bbf348810d31 (diff) |
mesa: Less FEATURE_ARB_sync tests.
Add dummy static inline definitions to syncobj.h when FEATURE_ARB_sync
is 0, and remove most FEATURE_ARB_sync tests.
Diffstat (limited to 'src/mesa/main/syncobj.h')
-rw-r--r-- | src/mesa/main/syncobj.h | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/src/mesa/main/syncobj.h b/src/mesa/main/syncobj.h index c53511995b1..82e141d408b 100644 --- a/src/mesa/main/syncobj.h +++ b/src/mesa/main/syncobj.h @@ -31,15 +31,19 @@ #ifndef SYNCOBJ_H #define SYNCOBJ_H -#include "glheader.h" -#include "mtypes.h" +#include "main/mtypes.h" struct dd_function_table; +#if FEATURE_ARB_sync + extern void _mesa_init_sync_object_functions(struct dd_function_table *driver); extern void +_mesa_init_sync_dispatch(struct _glapi_table *disp); + +extern void _mesa_init_sync(GLcontext *); extern void @@ -70,4 +74,42 @@ extern void GLAPIENTRY _mesa_GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); +#else /* FEATURE_ARB_sync */ + +#include "main/compiler.h" + +static INLINE void +_mesa_init_sync_object_functions(struct dd_function_table *driver) +{ +} + +static INLINE void +_mesa_init_sync_dispatch(struct _glapi_table *disp) +{ +} + +static INLINE void +_mesa_init_sync(GLcontext *ctx) +{ +} + +static INLINE void +_mesa_free_sync_data(GLcontext *ctx) +{ +} + +static INLINE void +_mesa_ref_sync_object(GLcontext *ctx, struct gl_sync_object *syncObj) +{ + ASSERT_NO_FEATURE(); +} + +static INLINE void +_mesa_unref_sync_object(GLcontext *ctx, struct gl_sync_object *syncObj) +{ + ASSERT_NO_FEATURE(); +} + +#endif /* FEATURE_ARB_sync */ + #endif /* SYNCOBJ_H */ |