mesa: add format-helper for bptc
Acked-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Soroush Kashani <soroush.kashani@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18012>
This commit is contained in:

committed by
Marge Bot

parent
403b9bf870
commit
529e70271f
@@ -645,6 +645,16 @@ _mesa_is_format_astc_2d(mesa_format format)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return TRUE if format is an BPTC compressed format.
|
||||
*/
|
||||
bool
|
||||
_mesa_is_format_bptc(mesa_format format)
|
||||
{
|
||||
return _mesa_get_format_layout(format) == MESA_FORMAT_LAYOUT_BPTC;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* If the given format is a compressed format, return a corresponding
|
||||
* uncompressed 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_bptc(mesa_format format);
|
||||
|
||||
bool
|
||||
_mesa_is_format_color_format(mesa_format format);
|
||||
|
||||
|
Reference in New Issue
Block a user