diff options
author | Brian <[email protected]> | 2007-12-05 14:51:08 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-12-05 14:51:08 -0700 |
commit | 9df0a6dd9c43be0ee5c300e161a20b2f98acef2d (patch) | |
tree | ab87f53f9cd2716db23f5078351409e738c9f862 /src/mesa/pipe/xlib/xmesaP.h | |
parent | 04516cfcaf15589768c973231d8c317e851a78cb (diff) |
added B8G8R8A8 support and improved pixel format selection when doing remote display to X server of different endianness.
Diffstat (limited to 'src/mesa/pipe/xlib/xmesaP.h')
-rw-r--r-- | src/mesa/pipe/xlib/xmesaP.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/pipe/xlib/xmesaP.h b/src/mesa/pipe/xlib/xmesaP.h index ba0ccdbcecb..a067dfd3e34 100644 --- a/src/mesa/pipe/xlib/xmesaP.h +++ b/src/mesa/pipe/xlib/xmesaP.h @@ -286,6 +286,10 @@ struct xmesa_buffer { */ #define PACK_8B8G8R( R, G, B ) ( ((B) << 16) | ((G) << 8) | (R) ) +#define PACK_8B8G8R8A( R, G, B, A ) \ + ( ((B) << 24) | ((G) << 16) | ((R) << 8) | (A) ) + + /** @@ -448,7 +452,7 @@ extern const int xmesa_kernel1[16]; extern struct xmesa_renderbuffer * xmesa_create_renderbuffer(struct pipe_winsys *winsys, - GLuint name, const GLvisual *visual, + GLuint name, XMesaVisual xmvis, GLboolean backBuffer); extern void |