diff options
author | Christian König <[email protected]> | 2011-04-08 20:12:30 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2011-04-08 20:12:30 +0200 |
commit | 574ffb440dbd878d51fc9b9794a6396cbe6f75bb (patch) | |
tree | aa4589f35acedb502b119d37965607bccfed4ef6 /src/gallium/state_trackers/vdpau/mixer.c | |
parent | 6710e690f6ccd2c917d6a39be7d55a037470fccb (diff) |
vdpau: add compositor to mixer
Diffstat (limited to 'src/gallium/state_trackers/vdpau/mixer.c')
-rw-r--r-- | src/gallium/state_trackers/vdpau/mixer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vdpau/mixer.c b/src/gallium/state_trackers/vdpau/mixer.c index 808ff9e9ce8..86ac099a7d8 100644 --- a/src/gallium/state_trackers/vdpau/mixer.c +++ b/src/gallium/state_trackers/vdpau/mixer.c @@ -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 * */ |