summaryrefslogtreecommitdiffstats
path: root/video/out/gpu
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossy@jrg.systems>2019-10-26 23:38:12 +1100
committerJames Ross-Gowan <rossy@jrg.systems>2019-10-27 00:45:27 +1100
commit8e50d7a746f88c44cc40d0ff87d8540253d2d996 (patch)
tree62fc0f9276204af69357d0167f469462fc365b19 /video/out/gpu
parent888f4e63a4a7ca2a90587be1cfaa3ff953cb8e45 (diff)
downloadmpv-8e50d7a746f88c44cc40d0ff87d8540253d2d996.tar.bz2
mpv-8e50d7a746f88c44cc40d0ff87d8540253d2d996.tar.xz
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.
Diffstat (limited to 'video/out/gpu')
-rw-r--r--video/out/gpu/ra.c8
1 files changed, 5 insertions, 3 deletions
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,