summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/utils.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-09-11 00:27:27 +0200
committerNiklas Haas <git@haasn.xyz>2017-09-11 00:35:23 +0200
commit1da53248ab29d711df5602f3fdff90c45298ec77 (patch)
tree749585e28538567588cdf2c83590ae3d6b96eb51 /video/out/opengl/utils.h
parentd0c87dd57918cab1afc4d5968355b6253377c0b1 (diff)
downloadmpv-1da53248ab29d711df5602f3fdff90c45298ec77.tar.bz2
mpv-1da53248ab29d711df5602f3fdff90c45298ec77.tar.xz
vo_opengl: refactor/fix mp_pass_perf code
This was needlessly complicated and prone to breakage, because even the references to the ring buffer could end up getting invalidated and containing garbage data on e.g. shader cache flush. For much the same reason why we can't keep around the *timer_pool, we're also forced to hard-copy the entire sample buffer per pass per frame. Not a huge deal, though. This is, what, a few kB per frame? We have more pressing CPU performance concerns anyway. Also simplified/fixed some other code.
Diffstat (limited to 'video/out/opengl/utils.h')
-rw-r--r--video/out/opengl/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h
index 8c52680f14..34e459f34c 100644
--- a/video/out/opengl/utils.h
+++ b/video/out/opengl/utils.h
@@ -3,6 +3,7 @@
#include <stdbool.h>
#include <math.h>
+#include "video/out/vo.h"
#include "ra.h"
// A 3x2 matrix, with the translation part separate.