diff options
author | Niklas Haas <git@haasn.xyz> | 2018-02-11 05:20:09 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-11 16:45:20 -0800 |
commit | ff08df5bb1708baa44664d51ca12a258fc85415d (patch) | |
tree | 8981b5bfe39579c66effe6fc9b2b7db1b5b5e8ff /video/out/gpu | |
parent | 4e7f4f10cef15d29f9e5093eff84e9e8168caf89 (diff) | |
download | mpv-ff08df5bb1708baa44664d51ca12a258fc85415d.tar.bz2 mpv-ff08df5bb1708baa44664d51ca12a258fc85415d.tar.xz |
vo_gpu: add memory barrier on the HDR peak detection
This can cause the peak detection state to be inconsistent in rare
cases, which might explain the issues when taking screenshots in #5499.
Diffstat (limited to 'video/out/gpu')
-rw-r--r-- | video/out/gpu/video_shaders.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gpu/video_shaders.c b/video/out/gpu/video_shaders.c index eb3f287236..23824cfdb5 100644 --- a/video/out/gpu/video_shaders.c +++ b/video/out/gpu/video_shaders.c @@ -628,6 +628,7 @@ static void hdr_update_peak(struct gl_shader_cache *sc) // Update the index and count GLSL( frame_idx = next;) GLSLF(" frame_num = min(frame_num + 1, %d);\n", PEAK_DETECT_FRAMES); + GLSL( memoryBarrierBuffer();) GLSL(}) } |