diff --git a/src/gallium/auxiliary/vl/vl_video_buffer.c b/src/gallium/auxiliary/vl/vl_video_buffer.c index a8815c4ba77..d2fac0a28a8 100644 --- a/src/gallium/auxiliary/vl/vl_video_buffer.c +++ b/src/gallium/auxiliary/vl/vl_video_buffer.c @@ -193,7 +193,7 @@ vl_video_buffer_template(struct pipe_resource *templ, templ->height0 = height; } -static void +void vl_video_buffer_destroy(struct pipe_video_buffer *buffer) { struct vl_video_buffer *buf = (struct vl_video_buffer *)buffer; diff --git a/src/gallium/auxiliary/vl/vl_video_buffer.h b/src/gallium/auxiliary/vl/vl_video_buffer.h index f777ddb0fa3..5e8ab2a8e55 100644 --- a/src/gallium/auxiliary/vl/vl_video_buffer.h +++ b/src/gallium/auxiliary/vl/vl_video_buffer.h @@ -122,6 +122,9 @@ vl_video_buffer_template(struct pipe_resource *templ, unsigned usage, unsigned plane, enum pipe_video_chroma_format chroma_format); +void +vl_video_buffer_destroy(struct pipe_video_buffer *buffer); + /** * creates a video buffer, can be used as a standard implementation for pipe->create_video_buffer */