summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/g3dvl/tests/test_context.c
blob: 2002977ee243cf1d0f2feb2ecad3c26f099f1947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <vl_context.h>
#include <xsp_winsys.h>

int main(int argc, char **argv)
{
	const unsigned int	video_width = 32, video_height = 32;
	
	Display			*display;
	struct pipe_context	*pipe;
	struct VL_CONTEXT	*ctx;
	
	display = XOpenDisplay(NULL);
	pipe = create_pipe_context(display);
	
	vlCreateContext(display, pipe, video_width, video_height, VL_FORMAT_YCBCR_420, &ctx);
	vlDestroyContext(ctx);
	
	XCloseDisplay(display);
	
	return 0;
}