Skip to content

Fix crash when updating part of an AFBC-packed texture

When updating an AFBC-packed resource, we need to make sure it is legalized before blitting the staging resource to it. We can't rely on the blit to properly convert the resource as it will result in blit recursion and a crash.

If the whole texture is updated however, there is no need to unpack as the content can be discarded. Just create a new BO with the right format.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>

Merge request reports