mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 00:18:09 +02:00
vdpau: implement OutputSurfaceDestroy
This commit is contained in:
parent
67d93ea940
commit
2516a46544
1 changed files with 15 additions and 1 deletions
|
|
@ -108,7 +108,21 @@ vlVdpOutputSurfaceCreate(VdpDevice device,
|
|||
VdpStatus
|
||||
vlVdpOutputSurfaceDestroy(VdpOutputSurface surface)
|
||||
{
|
||||
return VDP_STATUS_NO_IMPLEMENTATION;
|
||||
vlVdpOutputSurface *vlsurface;
|
||||
|
||||
debug_printf("[VDPAU] Destroying output surface\n");
|
||||
|
||||
vlsurface = vlGetDataHTAB(surface);
|
||||
if (!vlsurface)
|
||||
return VDP_STATUS_INVALID_HANDLE;
|
||||
|
||||
pipe_surface_reference(&vlsurface->surface, NULL);
|
||||
pipe_sampler_view_reference(&vlsurface->sampler_view, NULL);
|
||||
|
||||
vlRemoveDataHTAB(surface);
|
||||
FREE(vlsurface);
|
||||
|
||||
return VDP_STATUS_OK;
|
||||
}
|
||||
|
||||
VdpStatus
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue