vdpau: add compositor to mixer
authorChristian König <deathsimple@vodafone.de>
Fri, 8 Apr 2011 18:12:30 +0000 (20:12 +0200)
committerChristian König <deathsimple@vodafone.de>
Fri, 8 Apr 2011 18:12:30 +0000 (20:12 +0200)
src/gallium/state_trackers/vdpau/mixer.c
src/gallium/state_trackers/vdpau/vdpau_private.h

index 808ff9e9ce8beb40d2556c286ff543a8a88322d0..86ac099a7d8994d7f08e98dfd6035196166c3321 100644 (file)
@@ -39,8 +39,9 @@ vlVdpVideoMixerCreate(VdpDevice device,
                       void const *const *parameter_values,
                       VdpVideoMixer *mixer)
 {
-   VdpStatus ret;
    vlVdpVideoMixer *vmixer = NULL;
+   struct pipe_video_context *context;
+   VdpStatus ret;
 
    debug_printf("[VDPAU] Creating VideoMixer\n");
 
@@ -48,11 +49,15 @@ vlVdpVideoMixerCreate(VdpDevice device,
    if (!dev)
       return VDP_STATUS_INVALID_HANDLE;
 
+   context = dev->context->vpipe;
+
    vmixer = CALLOC(1, sizeof(vlVdpVideoMixer));
    if (!vmixer)
       return VDP_STATUS_RESOURCES;
 
    vmixer->device = dev;
+   vmixer->compositor = context->create_compositor(context);
+
    /*
     * TODO: Handle features and parameters
     * */
index f1f94ea92ac811ee12fc6855bc4ddc25959c5c3e..25f289aa726e198bd4a46d83aebdc323304bb105 100644 (file)
@@ -189,6 +189,7 @@ typedef struct
 typedef struct
 {
    vlVdpDevice *device;
+   struct pipe_video_compositor *compositor;
 } vlVdpVideoMixer;
 
 typedef struct