panfrost: Map PIPE_{DXT, RGTC, BPTC} to MALI_BCn
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 10 Jul 2020 21:30:14 +0000 (17:30 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 13 Jul 2020 15:24:41 +0000 (11:24 -0400)
commitf34b8d3609d13a492e432db325451cb04b143b47
tree37db5989a061a1c07d68fc2dcd281824e146069a
parent6da405ca7773745cdb383b5bb43a6a1575eea4f3
panfrost: Map PIPE_{DXT, RGTC, BPTC} to MALI_BCn

Mali (and Vulkan) uses D3D naming conventions for these formats where
Gallium/Mesa uses OpenGL names, but the formats are equivalent. sRGB is
communicated out-of-band on Mali; otherwise, it appears to be a 1:1
mapping.

On supported devices, this exposes GL_EXT_texture_compression_rgtc and
GL_ARB_texture_compression_bptc, so update features.txt

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5856>
docs/features.txt
src/panfrost/encoder/pan_format.c