aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/surface.c
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2017-08-15 09:07:06 -0400
committerLeo Liu <[email protected]>2017-08-21 10:09:09 -0400
commite50ee6d4d59e46147b4ff0f1012f5d1d4ab92e06 (patch)
treeb32f43ae516c2309df0d57b642c7bf7100558a7d /src/gallium/state_trackers/va/surface.c
parent130d1f456b89d66cb54e03bbf2e53b194df0086c (diff)
st/va: make surface allocate functions more usefully
Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/surface.c')
-rw-r--r--src/gallium/state_trackers/va/surface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/va/surface.c b/src/gallium/state_trackers/va/surface.c
index f968e9ede17..b116fc3f27f 100644
--- a/src/gallium/state_trackers/va/surface.c
+++ b/src/gallium/state_trackers/va/surface.c
@@ -558,9 +558,9 @@ suface_from_external_memory(VADriverContextP ctx, vlVaSurface *surface,
return VA_STATUS_SUCCESS;
}
-static VAStatus
-surface_allocate(VADriverContextP ctx, vlVaSurface *surface,
- struct pipe_video_buffer *templat)
+VAStatus
+vlVaHandleSurfaceAllocate(VADriverContextP ctx, vlVaSurface *surface,
+ struct pipe_video_buffer *templat)
{
vlVaDriver *drv;
struct pipe_surface **surfaces;
@@ -734,7 +734,7 @@ vlVaCreateSurfaces2(VADriverContextP ctx, unsigned int format,
!(memory_attibute->flags & VA_SURFACE_EXTBUF_DESC_ENABLE_TILING))
templat.bind = PIPE_BIND_LINEAR | PIPE_BIND_SHARED;
- vaStatus = surface_allocate(ctx, surf, &templat);
+ vaStatus = vlVaHandleSurfaceAllocate(ctx, surf, &templat);
if (vaStatus != VA_STATUS_SUCCESS)
goto free_surf;
break;