summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2018-04-29 02:26:40 +0300
committerJan Ekström <jeebjp@gmail.com>2018-04-29 03:51:19 +0300
commit59d422f042192f41d222cd87019aacb2f604cd22 (patch)
tree09c32eea0e55dae44015c18cee2cdbc7e7df07ab
parent7dd69ef77c6aa80067c13f76aa0b78d63fbc4eda (diff)
downloadmpv-59d422f042192f41d222cd87019aacb2f604cd22.tar.bz2
mpv-59d422f042192f41d222cd87019aacb2f604cd22.tar.xz
gpu/video: improve HDR peak computation feature check logging
Now that the feature depends on multiple features, log all of their states in the message.
-rw-r--r--video/out/gpu/video.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index 619e5a83ab..be36f30e57 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -3552,7 +3552,10 @@ static void check_gl_features(struct gl_video *p)
bool have_compute_peak = have_compute && have_ssbo && have_numgroups;
if (!have_compute_peak && p->opts.compute_hdr_peak >= 0) {
int msgl = p->opts.compute_hdr_peak == 1 ? MSGL_WARN : MSGL_V;
- MP_MSG(p, msgl, "Disabling HDR peak computation (no compute shaders).\n");
+ MP_MSG(p, msgl, "Disabling HDR peak computation (one or more of the "
+ "following is not supported: compute shaders=%d, "
+ "SSBO=%d, multiple work groups=%d).\n",
+ have_compute, have_ssbo, have_numgroups);
p->opts.compute_hdr_peak = -1;
}