Skip to content

radv: Implement support for linear textures with BC formats.

Bas Nieuwenhuizen requested to merge bnieuwenhuizen/mesa:linear-bc into master

Baldur's Gate 3 crashes if we don't advertise support for linear textures with BC formats. But I don't see the game using them ...

gfxbench5 doesn't check support but uses it anyway ...

In the gfxbench5 case they use it as temp upload for a copy, just like vkCmdCopyBufferToImage would do. Just advertising copy support seems to satisfy Baldur's Gate 3 also.

The HW however has no support for linearly tiled BC images and neither does addrlib. So we have to transform in the equivalent images of blocks and then use that copies never use the compressed format.

CC: mesa-stable Gitlab: #3607 (closed)

Merge request reports