mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
mesa: add format-helpers for s3tc
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Acked-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18180>
This commit is contained in:
parent
b02f1b0eba
commit
5087ba3666
2 changed files with 13 additions and 0 deletions
|
|
@ -645,6 +645,16 @@ _mesa_is_format_astc_2d(mesa_format format)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return TRUE if format is an S3TC compressed format.
|
||||
*/
|
||||
bool
|
||||
_mesa_is_format_s3tc(mesa_format format)
|
||||
{
|
||||
return _mesa_get_format_layout(format) == MESA_FORMAT_LAYOUT_S3TC;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return TRUE if format is an BPTC compressed format.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -695,6 +695,9 @@ _mesa_is_format_etc2(mesa_format format);
|
|||
bool
|
||||
_mesa_is_format_astc_2d(mesa_format format);
|
||||
|
||||
bool
|
||||
_mesa_is_format_s3tc(mesa_format format);
|
||||
|
||||
bool
|
||||
_mesa_is_format_bptc(mesa_format format);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue