mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
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.
This commit is contained in:
parent
888f4e63a4
commit
8e50d7a746
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user