vo_opengl: add legend for texture format debug dump

This commit is contained in:
wm4 2017-08-03 16:18:20 +02:00
parent 1479c7bd0d
commit e7d31d12be
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,7 @@ void ra_dump_tex_formats(struct ra *ra, int msgl)
if (!mp_msg_test(ra->log, msgl)) if (!mp_msg_test(ra->log, msgl))
return; return;
MP_MSG(ra, msgl, "Texture formats:\n"); 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++) { for (int n = 0; n < ra->num_formats; n++) {
const struct ra_format *fmt = ra->formats[n]; const struct ra_format *fmt = ra->formats[n];
const char *ctype = "unknown"; const char *ctype = "unknown";
@ -174,6 +175,9 @@ void ra_dump_tex_formats(struct ra *ra, int msgl)
fmt->linear_filter ? "LF" : " ", fmt->linear_filter ? "LF" : " ",
fmt->renderable ? "CR" : " ", cl); 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, void ra_dump_imgfmt_desc(struct ra *ra, const struct ra_imgfmt_desc *desc,