panfrost: Support linear depth textures
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 8 Mar 2019 23:41:12 +0000 (23:41 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 12 Mar 2019 02:37:41 +0000 (02:37 +0000)
commit2df4537f911178e545e78aab9f3b37bb72438c00
tree7cce680e471f66daa58391f9fae551746358f8a9
parent9f25a4e65c025364df0b52cbb3e9aa2e525b1a74
panfrost: Support linear depth textures

This combination has not yet been seen "in the wild" in traces, but to
support linear depth FBOs, ~bruteforce reveals this bit pattern is
necessary. It's not yet clear why the meanings of 0x1 and 0x2 are
essentially flipped (tiled vs linear for colour, linear vs some sort of
tiled for depth).

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/gallium/drivers/panfrost/pan_context.c