diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-01-08 14:10:56 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-01-08 14:10:56 +0000 |
commit | 002dfb12fce045d0e124301e5df805df772149d8 (patch) | |
tree | 2c34a1ab91cf546846e75960c626035ef558d39c /src/gallium/winsys/xlib/xlib_softpipe.h | |
parent | 53ce80e7cc466efae349e3a83007345bd299acd6 (diff) |
gallium: split driver-independent code out of xlib winsys
Place in new xlib state-tracker. This is a statetracker for the GLX API.
Diffstat (limited to 'src/gallium/winsys/xlib/xlib_softpipe.h')
-rw-r--r-- | src/gallium/winsys/xlib/xlib_softpipe.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/gallium/winsys/xlib/xlib_softpipe.h b/src/gallium/winsys/xlib/xlib_softpipe.h new file mode 100644 index 0000000000..0de96cc4c6 --- /dev/null +++ b/src/gallium/winsys/xlib/xlib_softpipe.h @@ -0,0 +1,50 @@ + +#ifndef XLIB_SOFTPIPE_H +#define XLIB_SOFTPIPE_H + +struct pipe_winsys; +struct pipe_screen; +struct pipe_context; +struct pipe_surface; +struct xmesa_buffer; + + +struct pipe_winsys * +xlib_create_softpipe_winsys( void ); + +struct pipe_screen * +xlib_create_softpipe_screen( struct pipe_winsys *pws ); + +struct pipe_context * +xlib_create_softpipe_context( struct pipe_screen *screen, + void *context_priv ); + +void +xlib_softpipe_display_surface( struct xmesa_buffer *, + struct pipe_surface * ); + +/*********************************************************************** + * Cell piggybacks on softpipe code still. + * + * Should be untangled sufficiently to live in a separate file, at + * least. That would mean removing #ifdef GALLIUM_CELL's from above + * and creating cell-specific versions of either those functions or + * the entire file. + */ +struct pipe_winsys * +xlib_create_cell_winsys( void ); + +struct pipe_screen * +xlib_create_cell_screen( struct pipe_winsys *pws ); + + +struct pipe_context * +xlib_create_cell_context( struct pipe_screen *screen, + void *priv ); + +void +xlib_cell_display_surface( struct xmesa_buffer *, + struct pipe_surface * ); + + +#endif |