From 59d422f042192f41d222cd87019aacb2f604cd22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Sun, 29 Apr 2018 02:26:40 +0300 Subject: 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. --- video/out/gpu/video.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3