Skip to content

panfrost: Fix AFBC blits of resources with faked RGTC

Icecream95 requested to merge icecream95/mesa:rgtc-fix into master

Because u_transfer_helper changes resources back from the real format to the emulated format after creation, we need to fix the format enum for resources with fake compression when doing blits to/from AFBC.

Fixes: acb8dcfe ("panfrost: Choose AFBC when available")


This is a bit of a hack so suggestions on better things to do are welcome.

And yes, u_transfer_helper does expand RED_RGTC1 textures by 8×, and that does cause problems for some applications. AFBC compaction would help, but uncompressed blocks would still be a lot larger than they need to be.

Merge request reports