summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11/xm_tri.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-09-21 11:56:45 -0700
committerKeith Whitwell <keith@tungstengraphics.com>2008-09-21 11:56:45 -0700
commit34d4ef7cc0cc4746fdb5fdc0b44a680daa85bef1 (patch)
tree3f6aad4a8dd2a397e7e6842a5574f9e1ed239fa8 /src/mesa/drivers/x11/xm_tri.c
parenta70312a1546ce3ec29681f34d35707121f8c4569 (diff)
drivers/x11: remove early gallium support
We originally piggy-backed gallium development in the X11/swrast driver, but the necessary code has since been moved to its own location in gallium/winsys/xlib. Remove the old code from here as we don't want it propogated back to master in any future merge.
Diffstat (limited to 'src/mesa/drivers/x11/xm_tri.c')
-rw-r--r--src/mesa/drivers/x11/xm_tri.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/mesa/drivers/x11/xm_tri.c b/src/mesa/drivers/x11/xm_tri.c
index 1c158e38b4..3a0cf80139 100644
--- a/src/mesa/drivers/x11/xm_tri.c
+++ b/src/mesa/drivers/x11/xm_tri.c
@@ -1443,46 +1443,6 @@ do { \
#endif
-#if 0
-GLboolean xmesa_get_cbuf_details( GLcontext *ctx,
- void **ptr,
- GLuint *cpp,
- GLint *stride,
- GLuint *format )
-{
- XMesaContext xmesa = XMESA_CONTEXT(ctx);
- struct gl_framebuffer *fb = ctx->DrawBuffer;
- struct gl_renderbuffer *crb = fb->_ColorDrawBuffers[0][0];
- struct xmesa_renderbuffer *xrb = xmesa_renderbuffer(crb->Wrapped);
-
- *ptr = crb->GetPointer(ctx, crb, 0, 0);
- *stride = ((GLubyte *)crb->GetPointer(ctx, crb, 0, 1) -
- (GLubyte *)crb->GetPointer(ctx, crb, 0, 0));
-
- if (!ptr)
- goto bad;
-
- switch (xmesa->pixelformat) {
- case PF_8A8B8G8R:
- case PF_8A8R8G8B:
- *format = 1; /* whatever */
- *cpp = 4;
- break;
- default:
- goto bad;
- }
-
- return GL_TRUE;
-
- bad:
- *ptr = NULL;
- *stride = 0;
- *format = 0;
- return GL_FALSE;
-}
-#endif
-
-
/**
* Return pointer to line drawing function, or NULL if we should use a
* swrast fallback.