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.
This commit is contained in:
Jan Ekström
2018-04-29 03:51:19 +03:00
parent 7dd69ef77c
commit 59d422f042
+4 -1
View File
@@ -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;
}