st/vdpau: remove vlCreateHTAB from surface functions
authorChristian König <christian.koenig@amd.com>
Thu, 23 May 2013 17:28:57 +0000 (19:28 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 27 May 2013 16:18:32 +0000 (18:18 +0200)
Signed-off-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/surface.c

index 135eb85e8d09d9ffc680c769a1f83e444d700ca2..bd11fc3cdecb7d58e548227397328613b89bc15d 100644 (file)
@@ -54,11 +54,6 @@ vlVdpVideoSurfaceCreate(VdpDevice device, VdpChromaType chroma_type,
       goto inv_size;
    }
 
-   if (!vlCreateHTAB()) {
-      ret = VDP_STATUS_RESOURCES;
-      goto no_htab;
-   }
-
    p_surf = CALLOC(1, sizeof(vlVdpSurface));
    if (!p_surf) {
       ret = VDP_STATUS_RESOURCES;
@@ -110,7 +105,6 @@ inv_device:
    FREE(p_surf);
 
 no_res:
-no_htab:
 inv_size:
    return ret;
 }
@@ -272,9 +266,6 @@ vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface,
    struct pipe_sampler_view **sampler_views;
    unsigned i, j;
 
-   if (!vlCreateHTAB())
-      return VDP_STATUS_RESOURCES;
-
    vlVdpSurface *p_surf = vlGetDataHTAB(surface);
    if (!p_surf)
       return VDP_STATUS_INVALID_HANDLE;