summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-08-03 16:18:20 +0200
committerwm4 <wm4@nowhere>2017-08-03 16:19:57 +0200
commite7d31d12bea0463ff2d8f43067d40634d1be6b40 (patch)
tree806d78cf56b649a36426a2eec32687744a233d5c
parent1479c7bd0dc72de0a608b7c5f1a91fb5afd4397c (diff)
downloadmpv-e7d31d12bea0463ff2d8f43067d40634d1be6b40.tar.bz2
mpv-e7d31d12bea0463ff2d8f43067d40634d1be6b40.tar.xz
vo_opengl: add legend for texture format debug dump
-rw-r--r--video/out/opengl/ra.c4
1 files changed, 4 insertions, 0 deletions
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,