st/vdpau: remove vlCreateHTAB from surface functions
Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
@@ -54,11 +54,6 @@ vlVdpVideoSurfaceCreate(VdpDevice device, VdpChromaType chroma_type,
|
|||||||
goto inv_size;
|
goto inv_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!vlCreateHTAB()) {
|
|
||||||
ret = VDP_STATUS_RESOURCES;
|
|
||||||
goto no_htab;
|
|
||||||
}
|
|
||||||
|
|
||||||
p_surf = CALLOC(1, sizeof(vlVdpSurface));
|
p_surf = CALLOC(1, sizeof(vlVdpSurface));
|
||||||
if (!p_surf) {
|
if (!p_surf) {
|
||||||
ret = VDP_STATUS_RESOURCES;
|
ret = VDP_STATUS_RESOURCES;
|
||||||
@@ -110,7 +105,6 @@ inv_device:
|
|||||||
FREE(p_surf);
|
FREE(p_surf);
|
||||||
|
|
||||||
no_res:
|
no_res:
|
||||||
no_htab:
|
|
||||||
inv_size:
|
inv_size:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@@ -272,9 +266,6 @@ vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface,
|
|||||||
struct pipe_sampler_view **sampler_views;
|
struct pipe_sampler_view **sampler_views;
|
||||||
unsigned i, j;
|
unsigned i, j;
|
||||||
|
|
||||||
if (!vlCreateHTAB())
|
|
||||||
return VDP_STATUS_RESOURCES;
|
|
||||||
|
|
||||||
vlVdpSurface *p_surf = vlGetDataHTAB(surface);
|
vlVdpSurface *p_surf = vlGetDataHTAB(surface);
|
||||||
if (!p_surf)
|
if (!p_surf)
|
||||||
return VDP_STATUS_INVALID_HANDLE;
|
return VDP_STATUS_INVALID_HANDLE;
|
||||||
|
Reference in New Issue
Block a user