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_brw.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_brw.h')
-rw-r--r-- | src/gallium/winsys/xlib/xlib_brw.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/gallium/winsys/xlib/xlib_brw.h b/src/gallium/winsys/xlib/xlib_brw.h new file mode 100644 index 0000000000..aad3f229bf --- /dev/null +++ b/src/gallium/winsys/xlib/xlib_brw.h @@ -0,0 +1,40 @@ +#ifndef XLIB_BRW_H +#define XLIB_BRW_H + +struct pipe_winsys; +struct pipe_buffer; +struct pipe_surface; +struct xmesa_buffer; + +struct pipe_winsys *xlib_create_brw_winsys( void ); + +struct pipe_screen *xlib_create_brw_screen( struct pipe_winsys * ); + +struct pipe_context *xlib_create_brw_context( struct pipe_screen *, + void *priv ); + +void xlib_brw_display_surface(struct xmesa_buffer *b, + struct pipe_surface *surf); + +/*********************************************************************** + * Internal functions + */ + +unsigned xlib_brw_get_buffer_offset( struct pipe_winsys *pws, + struct pipe_buffer *buf, + unsigned access_flags ); + +void xlib_brw_buffer_subdata_typed( struct pipe_winsys *pws, + struct pipe_buffer *buf, + unsigned long offset, + unsigned long size, + const void *data, + unsigned data_type ); + + + +void xlib_brw_commands_aub(struct pipe_winsys *winsys, + unsigned *cmds, + unsigned nr_dwords); + +#endif |