From e7d31d12bea0463ff2d8f43067d40634d1be6b40 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 3 Aug 2017 16:18:20 +0200 Subject: [PATCH] vo_opengl: add legend for texture format debug dump --- video/out/opengl/ra.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/out/opengl/ra.c b/video/out/opengl/ra.c index 57734afd81..73f2915f95 100644 --- a/video/out/opengl/ra.c +++ b/video/out/opengl/ra.c @@ -153,6 +153,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"); for (int n = 0; n < ra->num_formats; n++) { const struct ra_format *fmt = ra->formats[n]; const char *ctype = "unknown"; @@ -174,6 +175,9 @@ void ra_dump_tex_formats(struct ra *ra, int msgl) fmt->linear_filter ? "LF" : " ", fmt->renderable ? "CR" : " ", 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"); } void ra_dump_imgfmt_desc(struct ra *ra, const struct ra_imgfmt_desc *desc,