summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11/xm_api.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-26 10:45:42 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-26 10:45:42 -0600
commite4f6f0ec02133e9297c3f2db787dee14bf0ae6e1 (patch)
treea5706d83a96964b2cf63cd66ca25ed63641b4a56 /src/mesa/drivers/x11/xm_api.c
parentf7be1b419aab80c4e011183611964eb4d7c023c2 (diff)
surface_alloc() is now a winsys function.
This allows surfaces to be allocated without a rendering context. A few loose ends to resolve, but in working condition.
Diffstat (limited to 'src/mesa/drivers/x11/xm_api.c')
-rw-r--r--src/mesa/drivers/x11/xm_api.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
index 187663e66c..1d2b93d100 100644
--- a/src/mesa/drivers/x11/xm_api.c
+++ b/src/mesa/drivers/x11/xm_api.c
@@ -1610,8 +1610,15 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
st_create_context( mesaCtx,
xmesa_create_softpipe( c ) );
+ /* override these functions, as if the xlib driver were derived from
+ * the softpipe driver.
+ */
+#if 0
mesaCtx->st->pipe->surface_alloc = xmesa_surface_alloc;
+#endif
mesaCtx->st->pipe->supported_formats = xmesa_supported_formats;
+ mesaCtx->st->pipe->get_tile_rgba = xmesa_get_tile_rgba;
+ mesaCtx->st->pipe->put_tile_rgba = xmesa_put_tile_rgba;
mesaCtx->st->haveFramebufferRegions = GL_FALSE;