Merge remote branch 'origin/master' into pipe-video
[mesa.git] / src / gallium / winsys / drm / radeon / core / radeon_drm.c
index e817a26da6ddca926a097271e35bb66be9f83698..cd88deb992de43c3408b19113726d69d2f1cdc92 100644 (file)
@@ -149,6 +149,24 @@ struct pipe_screen* radeon_create_screen(struct drm_api* api,
 }
 
 
+
+static struct pipe_video_context *
+radeon_create_video_context(struct drm_api *api, struct pipe_screen *pscreen,
+                            enum pipe_video_profile profile,
+                            enum pipe_video_chroma_format chroma_format,
+                            unsigned width, unsigned height)
+{
+    struct radeon_winsys *winsys = (struct radeon_winsys*)pscreen->winsys;
+    struct pipe_context *pipe;
+    struct pipe_video_context *pvctx;
+
+    pipe = radeon_create_context(api, pscreen);
+    if (!pipe)
+        return NULL;
+
+    pvctx = r300_video_create(pipe, profile, chroma_format, width, height, 0);
+}
+
 boolean radeon_buffer_from_texture(struct drm_api* api,
                                    struct pipe_screen* screen,
                                    struct pipe_texture* texture,