From ac5538c7df460f218d9eaf10f7c0ee17a300ee7b Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 25 Sep 2015 18:58:49 +0200 Subject: vaapi: use GPU memcpy for reading back from HW surface This makes it much faster if the surface is really mapped from GPU memory. It's slightly slower than system memcpy if used on system memory. We don't really know definitely in which type of memory it's located, so we use the GPU memcpy in all cases. Fixes #2317. --- video/vaapi.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/vaapi.h') diff --git a/video/vaapi.h b/video/vaapi.h index c9692f61e1..5f27e782b4 100644 --- a/video/vaapi.h +++ b/video/vaapi.h @@ -48,6 +48,7 @@ struct mp_vaapi_ctx { struct mp_log *log; VADisplay display; struct va_image_formats *image_formats; + bool gpu_memcpy_message; pthread_mutex_t lock; }; -- cgit v1.2.3