Skip to content

panfrost: Fix linear depth textures

Alyssa Rosenzweig requested to merge alyssa/mesa:fix-depth into master

As pointed out by Boris, what we were calling PAN_LINEAR depth textures was in fact u-interleaved tiled (!), but we never noticed since we flipped the flag used for sampling, leading to all sorts of fun bugs when attempting to directly acess depth textures from the CPU. Which begs the question -- if what we called LINEAR was tiled, how do we actually render linear depth textures? It turns out the flags for AFBC form a mali_block_format 2-bit code just like their render-target counterparts, so we can render to any of the above.

Signed-off-by: Alyssa Rosenzweig alyssa.rosenzweig@collabora.com Reported-by: Boris Brezillon boris.brezillon@collabora.com

Merge request reports

Loading