summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/g3dvl/vl_context.h
blob: 3d14634c44e7d314cfb7d7d227e19520d09f898d (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
64
65
66
67
68
69
70
71
72
73
#ifndef vl_context_h
#define vl_context_h

#include "vl_types.h"

struct pipe_context;

#ifdef VL_INTERNAL
struct vlRender;
struct vlCSC;

struct vlContext
{
	struct vlScreen		*screen;
	struct pipe_context	*pipe;
	unsigned int		picture_width;
	unsigned int		picture_height;
	enum vlFormat		picture_format;
	enum vlProfile		profile;
	enum vlEntryPoint	entry_point;

	void			*raster;
	void			*dsa;
	void			*blend;

	struct vlRender		*render;
	struct vlCSC		*csc;
};
#endif

int vlCreateContext
(
	struct vlScreen *screen,
	struct pipe_context *pipe,
	unsigned int picture_width,
	unsigned int picture_height,
	enum vlFormat picture_format,
	enum vlProfile profile,
	enum vlEntryPoint entry_point,
	struct vlContext **context
);

int vlDestroyContext
(
	struct vlContext *context
);

struct vlScreen* vlContextGetScreen
(
	struct vlContext *context
);

struct pipe_context* vlGetPipeContext
(
	struct vlContext *context
);

unsigned int vlGetPictureWidth
(
	struct vlContext *context
);

unsigned int vlGetPictureHeight
(
	struct vlContext *context
);

enum vlFormat vlGetPictureFormat
(
	struct vlContext *context
);

#endif