aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-01 15:29:25 -0600
committerBrian Paul <[email protected]>2008-05-02 09:31:38 -0600
commit8a5bf456dcb84b315152b87e33c8736248ad0a46 (patch)
tree75bc7166c2c7c3980bd6006e6d8f21c1e3ebf609
parentd4074c509b5d28be0a2ec51d40329e1aed7047ef (diff)
gallium: comments, clean-ups
-rw-r--r--src/gallium/winsys/xlib/xm_winsys.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/winsys/xlib/xm_winsys.c b/src/gallium/winsys/xlib/xm_winsys.c
index 71ba076bffd..51b247ffc3b 100644
--- a/src/gallium/winsys/xlib/xm_winsys.c
+++ b/src/gallium/winsys/xlib/xm_winsys.c
@@ -58,6 +58,7 @@
/**
+ * Subclass of pipe_buffer for Xlib winsys.
* Low-level OS/window system memory buffer
*/
struct xm_buffer
@@ -80,6 +81,10 @@ struct xm_buffer
# define XSHM_ENABLED(b) 0
#endif
+
+/**
+ * Subclass of pipe_surface for Xlib winsys
+ */
struct xmesa_surface
{
struct pipe_surface surface;
@@ -89,6 +94,9 @@ struct xmesa_surface
};
+/**
+ * Subclass of pipe_winsys for Xlib winsys
+ */
struct xmesa_pipe_winsys
{
struct pipe_winsys base;
@@ -100,11 +108,11 @@ struct xmesa_pipe_winsys
static void alloc_shm_ximage(struct xm_buffer *b, struct xmesa_buffer *xmb,
unsigned width, unsigned height);
+
/** Cast wrapper */
static INLINE struct xmesa_surface *
xmesa_surface(struct pipe_surface *ps)
{
-// assert(0);
return (struct xmesa_surface *) ps;
}