mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-11 00:50:30 +01:00
gallium/util: add util_format_is_srgb() helper
This commit is contained in:
parent
553930424d
commit
ff6cf60cb8
1 changed files with 7 additions and 0 deletions
|
|
@ -410,6 +410,13 @@ util_format_is_s3tc(enum pipe_format format)
|
|||
return desc->layout == UTIL_FORMAT_LAYOUT_S3TC ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
static INLINE boolean
|
||||
util_format_is_srgb(enum pipe_format format)
|
||||
{
|
||||
const struct util_format_description *desc = util_format_description(format);
|
||||
return desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB;
|
||||
}
|
||||
|
||||
static INLINE boolean
|
||||
util_format_has_depth(const struct util_format_description *desc)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue