summaryrefslogtreecommitdiffstats
path: root/video/vaapi.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-25 18:58:49 +0200
committerwm4 <wm4@nowhere>2015-09-25 19:18:16 +0200
commitac5538c7df460f218d9eaf10f7c0ee17a300ee7b (patch)
tree4713c373ee8a5d109545ebeefcab7768e57941af /video/vaapi.h
parent0ae8aebb89b5d0b2226a5d3852a9c72cd52da2ff (diff)
downloadmpv-ac5538c7df460f218d9eaf10f7c0ee17a300ee7b.tar.bz2
mpv-ac5538c7df460f218d9eaf10f7c0ee17a300ee7b.tar.xz
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.
Diffstat (limited to 'video/vaapi.h')
-rw-r--r--video/vaapi.h1
1 files changed, 1 insertions, 0 deletions
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;
};