diff options
author | wm4 <wm4@nowhere> | 2017-08-03 16:18:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-08-03 16:19:57 +0200 |
commit | e7d31d12bea0463ff2d8f43067d40634d1be6b40 (patch) | |
tree | 806d78cf56b649a36426a2eec32687744a233d5c /video | |
parent | 1479c7bd0dc72de0a608b7c5f1a91fb5afd4397c (diff) | |
download | mpv-e7d31d12bea0463ff2d8f43067d40634d1be6b40.tar.bz2 mpv-e7d31d12bea0463ff2d8f43067d40634d1be6b40.tar.xz |
vo_opengl: add legend for texture format debug dump
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/ra.c | 4 |
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, |