summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/xlib/xm_api.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-01 10:52:31 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-11-01 10:52:31 -0600
commit0d6608ee6855e5605efc3bd9fec51ada59e208d9 (patch)
treed8cc8d613f86c7ec1f08a914a83d06c55bd04773 /src/mesa/pipe/xlib/xm_api.c
parentb7611770ea2988d800c7e39cf9299a98cc5d260c (diff)
Implement surface clearing w/out dependency on XMesa/Mesa stuff.
Diffstat (limited to 'src/mesa/pipe/xlib/xm_api.c')
-rw-r--r--src/mesa/pipe/xlib/xm_api.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/pipe/xlib/xm_api.c b/src/mesa/pipe/xlib/xm_api.c
index a4874d3f8f..5e04092215 100644
--- a/src/mesa/pipe/xlib/xm_api.c
+++ b/src/mesa/pipe/xlib/xm_api.c
@@ -333,6 +333,14 @@ create_xmesa_buffer(XMesaDrawable d, BufferType type,
b->frontxrb->pixmap = (XMesaPixmap) d;
_mesa_add_renderbuffer(&b->mesa_buffer, BUFFER_FRONT_LEFT,
&b->frontxrb->St.Base);
+#if 0 /* sketch... */
+ {
+ struct pipe_surface *front_surf;
+ front_surf = xmesa_create_front_surface(vis, d);
+ }
+#endif
+
+
/*
* Back renderbuffer
@@ -1495,6 +1503,8 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
mesaCtx->st->pipe->surface_alloc = xmesa_surface_alloc;
mesaCtx->st->pipe->is_format_supported = xmesa_is_format_supported;
#endif
+ mesaCtx->st->pipe->get_tile = xmesa_get_tile;
+ mesaCtx->st->pipe->put_tile = xmesa_put_tile;
mesaCtx->st->pipe->get_tile_rgba = xmesa_get_tile_rgba;
mesaCtx->st->pipe->put_tile_rgba = xmesa_put_tile_rgba;