winsys/sw: Add a software winsys layered on a pipe
[mesa/mesa-lb.git] / src / gallium / include / state_tracker / xlib_sw_winsys.h
blobf22c22bb620216ab15bf11027f719de24231b915
1 #ifndef XLIB_SW_WINSYS_H
2 #define XLIB_SW_WINSYS_H
4 #include "state_tracker/sw_winsys.h"
5 #include <X11/Xlib.h>
8 struct pipe_screen;
9 struct pipe_surface;
11 /* This is what the xlib software winsys expects to find in the
12 * "private" field of flush_frontbuffers().
14 * Xlib-based state trackers somehow need to know this.
16 struct xlib_drawable {
17 Visual *visual;
18 int depth;
19 Drawable drawable;
23 /* This is the public interface to the ws/xlib module. Why isn't it
24 * being defined in that directory?
26 struct sw_winsys *xlib_create_sw_winsys( Display *display );
29 #endif