mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 18:10:17 +01:00
isl: Add isl_aux_usage_has_compression
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10872>
This commit is contained in:
parent
6dc049fdf4
commit
88903ba64d
2 changed files with 9 additions and 0 deletions
|
|
@ -1809,6 +1809,9 @@ isl_aux_state_transition_write(enum isl_aux_state initial_state,
|
|||
bool
|
||||
isl_aux_usage_has_fast_clears(enum isl_aux_usage usage);
|
||||
|
||||
bool
|
||||
isl_aux_usage_has_compression(enum isl_aux_usage usage);
|
||||
|
||||
static inline bool
|
||||
isl_aux_usage_has_hiz(enum isl_aux_usage usage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -258,3 +258,9 @@ isl_aux_usage_has_fast_clears(enum isl_aux_usage usage)
|
|||
{
|
||||
return info[usage].fast_clear;
|
||||
}
|
||||
|
||||
bool
|
||||
isl_aux_usage_has_compression(enum isl_aux_usage usage)
|
||||
{
|
||||
return info[usage].compressed;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue