mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
asahi: Use ail_can_compress() in agx_compression_allowed()
This moves the compression size threshold logic into ail, where it belongs. Signed-off-by: Asahi Lina <lina@asahilina.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22971>
This commit is contained in:
parent
59a6c5b357
commit
f545a2b948
1 changed files with 2 additions and 2 deletions
|
|
@ -424,8 +424,8 @@ agx_compression_allowed(const struct agx_resource *pres)
|
|||
assert(!util_format_is_compressed(pres->base.format) &&
|
||||
"block-compressed formats are not renderable");
|
||||
|
||||
/* Small textures cannot (should not?) be compressed */
|
||||
if (pres->base.width0 < 16 || pres->base.height0 < 16) {
|
||||
if (!ail_can_compress(pres->base.width0, pres->base.height0,
|
||||
MAX2(pres->base.nr_samples, 1))) {
|
||||
rsrc_debug(pres, "No compression: too small\n");
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue