xref: /aosp_15_r20/external/mesa3d/docs/drivers/panfrost/texcomp.rst (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1Compressed texture support
2==========================
3
4In the driver, Panfrost supports ASTC, ETC, and all BCn formats (e.g. RGTC,
5S3TC, etc.) However, Panfrost depends on the hardware to support these formats
6efficiently.  All supported Mali architectures support these formats, but not
7every system-on-chip with a Mali GPU support all these formats. Many lower-end
8systems lack support for some BCn formats, which can cause problems when playing
9desktop games with Panfrost. To check whether this issue applies to your
10system-on-chip, Panfrost includes a ``panfrost_texfeatures`` tool to query
11supported formats.
12
13To use this tool, include the option ``-Dtools=panfrost`` when configuring Mesa.
14Then inside your Mesa build directory, the tool is located at
15``src/panfrost/tools/panfrost_texfeatures``. Copy it to your target device,
16set as executable as necessary, and run on the target device. A table of
17supported formats will be printed to standard output.
18