Merge remote branch 'upstream/gallium-0.2' into nouveau-gallium-0.2
[mesa.git] / src / gallium / state_trackers / g3dvl / tests / test_context.c
1 #include <vl_context.h>
2 #include <xsp_winsys.h>
3
4 int main(int argc, char **argv)
5 {
6 const unsigned int video_width = 32, video_height = 32;
7
8 Display *display;
9 struct pipe_context *pipe;
10 struct VL_CONTEXT *ctx;
11
12 display = XOpenDisplay(NULL);
13 pipe = create_pipe_context(display);
14
15 vlCreateContext(display, pipe, video_width, video_height, VL_FORMAT_YCBCR_420, &ctx);
16 vlDestroyContext(ctx);
17
18 XCloseDisplay(display);
19
20 return 0;
21 }
22