blob: c703d3b66ca2cecc33af3c5680479977c5382137 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef XLIB_SW_WINSYS_H
#define XLIB_SW_WINSYS_H
#include "state_tracker/sw_winsys.h"
#include <X11/Xlib.h>
struct pipe_screen;
struct pipe_surface;
/* This is what the xlib software winsys expects to find in the
* "private" field of flush_frontbuffers(). Xlib-based state trackers
* somehow need to know this.
*/
struct xlib_drawable {
Visual *visual;
int depth;
Drawable drawable;
GC gc; /* temporary? */
};
struct xm_driver {
struct pipe_screen *(*create_pipe_screen)( Display *display );
void (*display_surface)( struct xlib_drawable *,
struct pipe_surface * );
};
/* Called by the libgl-xlib target code to build the rendering stack.
*/
struct xm_driver *xlib_sw_winsys_init( void );
#endif
|