frontends/va: zero-copy efc

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15196>
This commit is contained in:
Thong Thai 2022-03-03 11:05:22 -05:00 committed by Marge Bot
parent 9602526568
commit 9fa6ab962a

View file

@ -328,7 +328,10 @@ vlVaHandleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *contex
if (vlVaHandleSurfaceAllocate(drv, surf, &surf->templat, NULL, 0) != VA_STATUS_SUCCESS)
return VA_STATUS_ERROR_ALLOCATION_FAILED;
pipe_resource_reference(&(((struct vl_video_buffer *)(surf->buffer))->resources[0]), ((struct vl_video_buffer *)(src_surface->buffer))->resources[0]);
context->target = surf->buffer;
return VA_STATUS_SUCCESS;
}
if (!src_surface || !src_surface->buffer)