summaryrefslogtreecommitdiffstats
path: root/video/vdpau.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-11 14:03:53 +0200
committerwm4 <wm4@nowhere>2014-08-11 14:03:53 +0200
commit33a8e2a9adc45b6a2cb80cf669624154bf0eeb7d (patch)
treeb8f179a07fb24e88cc620828a86ee4c3d57a952a /video/vdpau.h
parentef9b399020742d7a29fc2265ef587d938d78e63a (diff)
downloadmpv-33a8e2a9adc45b6a2cb80cf669624154bf0eeb7d.tar.bz2
mpv-33a8e2a9adc45b6a2cb80cf669624154bf0eeb7d.tar.xz
vdpau: allocate surfaces by age
Whether this helps is probably questionable and depends on the GPU. But the vaapi code does it too.
Diffstat (limited to 'video/vdpau.h')
-rw-r--r--video/vdpau.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/vdpau.h b/video/vdpau.h
index 7fdbbf47bf..6f60165ed1 100644
--- a/video/vdpau.h
+++ b/video/vdpau.h
@@ -56,6 +56,7 @@ struct mp_vdpau_ctx {
// Surface pool
pthread_mutex_t pool_lock;
+ int64_t age_counter;
struct surface_entry {
VdpVideoSurface surface;
VdpOutputSurface osurface;
@@ -65,6 +66,7 @@ struct mp_vdpau_ctx {
VdpChromaType chroma;
bool rgb;
bool in_use;
+ int64_t age;
} video_surfaces[MAX_VIDEO_SURFACES];
};