diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2009-01-12 19:33:44 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2009-01-12 19:33:44 +0000 |
commit | 3e492acc579ba0a98d0388aa73605aba5bf9840c (patch) | |
tree | 07a50917cc3e9b156251adcc1b155d1053bfcf66 /src/gallium/state_trackers/glx/dri/dri_context.h | |
parent | 3425257e14e3f4b1f663649856f73b520726db9b (diff) |
dri: pull dri_swapbuffers.c into dri_drawable.c
Diffstat (limited to 'src/gallium/state_trackers/glx/dri/dri_context.h')
-rw-r--r-- | src/gallium/state_trackers/glx/dri/dri_context.h | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/src/gallium/state_trackers/glx/dri/dri_context.h b/src/gallium/state_trackers/glx/dri/dri_context.h index 06b86d69a8..4e6a305abb 100644 --- a/src/gallium/state_trackers/glx/dri/dri_context.h +++ b/src/gallium/state_trackers/glx/dri/dri_context.h @@ -27,12 +27,10 @@ #ifndef DRI_CONTEXT_H #define DRI_CONTEXT_H -#include <stdint.h> +#include "pipe/p_compiler.h" #include "drm.h" +#include "dri_util.h" -#include "pipe/p_debug.h" - -#include "dri_screen.h" struct pipe_context; struct pipe_fence; @@ -56,35 +54,39 @@ struct dri_context }; - -struct dri_drawable -{ - __DRIdrawablePrivate *dPriv; - unsigned stamp; - - struct pipe_fence *last_swap_fence; - struct pipe_fence *first_swap_fence; - - struct st_framebuffer *stfb; -}; - - static INLINE struct dri_context * dri_context(__DRIcontextPrivate *driContextPriv) { return (struct dri_context *) driContextPriv->driverPrivate; } -static INLINE struct dri_drawable * -dri_drawable(__DRIdrawablePrivate * driDrawPriv) -{ - return (struct dri_drawable *) driDrawPriv->driverPrivate; -} +/*********************************************************************** + * dri_context.c + */ +void +dri_destroy_context(__DRIcontextPrivate * driContextPriv); + +boolean +dri_unbind_context(__DRIcontextPrivate * driContextPriv); + +boolean +dri_make_current(__DRIcontextPrivate * driContextPriv, + __DRIdrawablePrivate * driDrawPriv, + __DRIdrawablePrivate * driReadPriv); + +boolean +dri_create_context(const __GLcontextModes * visual, + __DRIcontextPrivate * driContextPriv, + void *sharedContextPrivate); + + /*********************************************************************** * dri_lock.c */ -void dri_lock_hardware( struct dri_context *dri, struct dri_drawable *drawable ); +void dri_lock_hardware( struct dri_context *context, + struct dri_drawable *drawable ); + void dri_unlock_hardware( struct dri_context *dri ); boolean dri_is_locked( struct dri_context *dri ); |