diff options
author | Icecream95 <[email protected]> | 2020-01-11 20:00:38 +1300 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-01-21 08:35:23 -0500 |
commit | 960fe9daea77e80b0dc72271bb6b8e10acf851be (patch) | |
tree | 92d60edd10cdaa0c1efaf00d72468d5324148a73 /src/panfrost | |
parent | 2091d311c9d063138d5c84bbf4afe99ca864e597 (diff) |
panfrost: Add ETC1/ETC2 texture formats
Acked-by: Daniel Stone <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3414>
Diffstat (limited to 'src/panfrost')
-rw-r--r-- | src/panfrost/include/panfrost-job.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h index b9a560911eb..95356699186 100644 --- a/src/panfrost/include/panfrost-job.h +++ b/src/panfrost/include/panfrost-job.h @@ -229,6 +229,9 @@ struct mali_channel_swizzle { /* The top 3 bits specify how the bits of each component are interpreted. */ +/* e.g. ETC2_RGB8 */ +#define MALI_FORMAT_COMPRESSED (0 << 5) + /* e.g. R11F_G11F_B10F */ #define MALI_FORMAT_SPECIAL (2 << 5) @@ -273,6 +276,14 @@ struct mali_channel_swizzle { #define MALI_CHANNEL_FLOAT 7 enum mali_format { + MALI_ETC2_RGB8 = MALI_FORMAT_COMPRESSED | 0x1, + MALI_ETC2_R11_UNORM = MALI_FORMAT_COMPRESSED | 0x2, + MALI_ETC2_RGBA8 = MALI_FORMAT_COMPRESSED | 0x3, + MALI_ETC2_RG11_UNORM = MALI_FORMAT_COMPRESSED | 0x4, + MALI_ETC2_R11_SNORM = MALI_FORMAT_COMPRESSED | 0x11, + MALI_ETC2_RG11_SNORM = MALI_FORMAT_COMPRESSED | 0x12, + MALI_ETC2_RGB8A1 = MALI_FORMAT_COMPRESSED | 0x13, + MALI_RGB565 = MALI_FORMAT_SPECIAL | 0x0, MALI_RGB5_A1_UNORM = MALI_FORMAT_SPECIAL | 0x2, MALI_RGB10_A2_UNORM = MALI_FORMAT_SPECIAL | 0x3, |