diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-02-19 10:52:08 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-02-19 10:59:13 +0000 |
commit | d32ae764e930abb70ca2cc79ad18fdb32141ca0d (patch) | |
tree | 8292099dad415b6e28939e65f9397fc85b5f9751 /src/gallium/state_trackers/wgl/shared/stw_device.h | |
parent | d98bc1e32470c7b78e8246f1cbcfb96d0fa6338c (diff) |
wgl: Share more code between icd and standalone driver.
Diffstat (limited to 'src/gallium/state_trackers/wgl/shared/stw_device.h')
-rw-r--r-- | src/gallium/state_trackers/wgl/shared/stw_device.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/wgl/shared/stw_device.h b/src/gallium/state_trackers/wgl/shared/stw_device.h index c1e041212b..80da14b84f 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_device.h +++ b/src/gallium/state_trackers/wgl/shared/stw_device.h @@ -25,8 +25,15 @@ * **************************************************************************/ -#ifndef ST_DEVICE_H_ -#define ST_DEVICE_H_ +#ifndef STW_DEVICE_H_ +#define STW_DEVICE_H_ + + +#include "pipe/p_compiler.h" +#include "pipe/p_thread.h" + + +#define STW_CONTEXT_MAX 32 struct pipe_screen; @@ -36,13 +43,21 @@ struct stw_device const struct stw_winsys *stw_winsys; struct pipe_screen *screen; + pipe_mutex mutex; + + struct { + struct stw_context *ctx; + } ctx_array[STW_CONTEXT_MAX]; + #ifdef DEBUG unsigned long memdbg_no; #endif }; +struct stw_context * +stw_lookup_context( UINT_PTR hglrc ); extern struct stw_device *stw_dev; -#endif /* ST_DEVICE_H_ */ +#endif /* STW_DEVICE_H_ */ |