Merge branch '7.8'
[mesa.git] / src / gallium / include / state_tracker / drisw_api.h
1 #ifndef _DRISW_API_H_
2 #define _DRISW_API_H_
3
4 #include "pipe/p_compiler.h"
5 #include "pipe/p_screen.h"
6 #include "pipe/p_format.h"
7
8 #include "state_tracker/drm_api.h"
9
10 struct pipe_screen;
11 struct pipe_winsys;
12 struct pipe_buffer;
13 struct pipe_context;
14 struct pipe_texture;
15
16 struct dri_drawable;
17
18 /**
19 * This callback struct is intended for the winsys to call the loader.
20 */
21
22 struct drisw_loader_funcs
23 {
24 void (*put_image) (struct dri_drawable *dri_drawable,
25 void *data, unsigned width, unsigned height);
26 };
27
28 struct drisw_create_screen_arg
29 {
30 struct drm_create_screen_arg base;
31
32 struct drisw_loader_funcs *lf;
33 };
34
35 #endif