summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/g3dvl/vl_screen.h
blob: 98f3d429b615e0f983771d1071fd5ae427da18be (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef vl_screen_h
#define vl_screen_h

#include "vl_types.h"

struct pipe_screen;

#ifdef VL_INTERNAL
struct vlScreen
{
	struct vlDisplay	*display;
	unsigned int		ordinal;
	struct pipe_screen	*pscreen;
};
#endif

int vlCreateScreen
(
	struct vlDisplay *display,
	int screen,
	struct pipe_screen *pscreen,
	struct vlScreen **vl_screen
);

int vlDestroyScreen
(
	struct vlScreen *screen
);

struct vlDisplay* vlGetDisplay
(
	struct vlScreen *screen
);

struct pipe_screen* vlGetPipeScreen
(
	struct vlScreen *screen
);

unsigned int vlGetMaxProfiles
(
	struct vlScreen *screen
);

int vlQueryProfiles
(
	struct vlScreen *screen,
	enum vlProfile *profiles
);

unsigned int vlGetMaxEntryPoints
(
	struct vlScreen *screen
);

int vlQueryEntryPoints
(
	struct vlScreen *screen,
	enum vlProfile profile,
	enum vlEntryPoint *entry_points
);

#endif