From 8e50d7a746f88c44cc40d0ff87d8540253d2d996 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sat, 26 Oct 2019 23:38:12 +1100 Subject: vo_gpu: log ra_format.storable with the other flags This seems to have been missed when the storable flag was added, since all the other flags were logged here. It can be useful to know if an RA format is storable, so log it as well. --- video/out/gpu/ra.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'video/out/gpu') diff --git a/video/out/gpu/ra.c b/video/out/gpu/ra.c index 0c1565149f..3da0228edb 100644 --- a/video/out/gpu/ra.c +++ b/video/out/gpu/ra.c @@ -335,7 +335,7 @@ void ra_dump_tex_formats(struct ra *ra, int msgl) if (!mp_msg_test(ra->log, msgl)) return; MP_MSG(ra, msgl, "Texture formats:\n"); - MP_MSG(ra, msgl, " NAME COMP*TYPE SIZE DEPTH PER COMP.\n"); + MP_MSG(ra, msgl, " NAME COMP*TYPE SIZE DEPTH PER COMP.\n"); for (int n = 0; n < ra->num_formats; n++) { const struct ra_format *fmt = ra->formats[n]; const char *ctype = "unknown"; @@ -351,15 +351,17 @@ void ra_dump_tex_formats(struct ra *ra, int msgl) if (fmt->component_size[i] != fmt->component_depth[i]) mp_snprintf_cat(cl, sizeof(cl), "/%d", fmt->component_depth[i]); } - MP_MSG(ra, msgl, " %-10s %d*%s %3dB %s %s %s {%s}\n", fmt->name, + MP_MSG(ra, msgl, " %-10s %d*%s %3dB %s %s %s %s {%s}\n", fmt->name, fmt->num_components, ctype, fmt->pixel_size, fmt->luminance_alpha ? "LA" : " ", fmt->linear_filter ? "LF" : " ", - fmt->renderable ? "CR" : " ", cl); + fmt->renderable ? "CR" : " ", + fmt->storable ? "ST" : " ", cl); } MP_MSG(ra, msgl, " LA = LUMINANCE_ALPHA hack format\n"); MP_MSG(ra, msgl, " LF = linear filterable\n"); MP_MSG(ra, msgl, " CR = can be used for render targets\n"); + MP_MSG(ra, msgl, " ST = can be used for storable images\n"); } void ra_dump_imgfmt_desc(struct ra *ra, const struct ra_imgfmt_desc *desc, -- cgit v1.2.3