summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-10 16:35:16 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-10 16:35:16 -0600
commit051a2a3028370da66c15c44fa49fa9474b23d668 (patch)
tree738f913ac8aa0aba41f9d6a34c3aff40ccfea6c3 /src
parentc3f7f3124a04ba4e02c9c81eb7901e5715940c44 (diff)
clean-ups, comments
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/x11/xm_winsys.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mesa/drivers/x11/xm_winsys.c b/src/mesa/drivers/x11/xm_winsys.c
index ff33ad7850..f1ecbf531f 100644
--- a/src/mesa/drivers/x11/xm_winsys.c
+++ b/src/mesa/drivers/x11/xm_winsys.c
@@ -41,13 +41,21 @@
#include "pipe/softpipe/sp_winsys.h"
-struct xm_softpipe_winsys
+/**
+ * XMesa winsys, derived from softpipe winsys.
+ * NOTE: there's nothing really X-specific in this winsys layer so
+ * we could probably lift it up somewhere.
+ */
+struct xm_winsys
{
struct softpipe_winsys sws;
- XMesaContext xmctx; /* not really needed */
+ int foo; /* placeholder */
};
+/**
+ * Low-level OS/window system memory buffer
+ */
struct xm_buffer
{
int refcount;
@@ -75,10 +83,10 @@ pipe_bo( struct xm_buffer *bo )
/* Turn a softpipe winsys into an xm/softpipe winsys:
*/
-static inline struct xm_softpipe_winsys *
-xm_softpipe_winsys(struct softpipe_winsys *sws)
+static inline struct xm_winsys *
+xm_winsys(struct softpipe_winsys *sws)
{
- return (struct xm_softpipe_winsys *) sws;
+ return (struct xm_winsys *) sws;
}
@@ -246,7 +254,7 @@ xmesa_create_pipe_winsys( XMesaContext xmesa )
struct pipe_context *
xmesa_create_softpipe(XMesaContext xmesa)
{
- struct xm_softpipe_winsys *isws = CALLOC_STRUCT( xm_softpipe_winsys );
+ struct xm_winsys *isws = CALLOC_STRUCT( xm_winsys );
/* Fill in this struct with callbacks that softpipe will need to
* communicate with the window system, buffer manager, etc.