mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 04:40:22 +01:00
util: Add pf_name() replacement: util_format_name().
This commit is contained in:
parent
c3168e050e
commit
5784381b1e
1 changed files with 13 additions and 0 deletions
|
|
@ -156,6 +156,19 @@ util_format_description(enum pipe_format format);
|
|||
* Format query functions.
|
||||
*/
|
||||
|
||||
static INLINE const char *
|
||||
util_format_name(enum pipe_format format)
|
||||
{
|
||||
const struct util_format_description *desc = util_format_description(format);
|
||||
|
||||
assert(format);
|
||||
if (!format) {
|
||||
return "???";
|
||||
}
|
||||
|
||||
return desc->name;
|
||||
}
|
||||
|
||||
static INLINE boolean
|
||||
util_format_is_compressed(enum pipe_format format)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue