From ff08df5bb1708baa44664d51ca12a258fc85415d Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 11 Feb 2018 05:20:09 +0100 Subject: 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. --- video/out/gpu/video_shaders.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video') 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(}) } -- cgit v1.2.3