diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-03-29 01:46:17 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-03-31 02:36:38 +0000 |
commit | 923720440098075ec1deb6171ff96bd92c4cc34d (patch) | |
tree | f27859ea8b8c987715a050520c809f0f58cc31f1 /src/gallium/drivers/panfrost/pan_format.c | |
parent | 01fce794dcda449928e880c2f43312c1a348cea6 (diff) |
panfrost: Implement missing texture formats
- Implements RGB565/RGBA5551 formats
- Don't advertise support for flipped RGBA5551 and ETC
Fixes remaining tests in dEQP-GLES2.functional.texture.format.* which is
now at 36/36.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_format.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_format.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_format.c b/src/gallium/drivers/panfrost/pan_format.c index cac8a3d0859..cb1c71fca29 100644 --- a/src/gallium/drivers/panfrost/pan_format.c +++ b/src/gallium/drivers/panfrost/pan_format.c @@ -182,6 +182,18 @@ panfrost_find_format(const struct util_format_description *desc) case PIPE_FORMAT_Z32_UNORM: return MALI_Z32_UNORM; + case PIPE_FORMAT_B5G6R5_UNORM: + return MALI_RGB565; + + case PIPE_FORMAT_B5G5R5A1_UNORM: + return MALI_RGB5_A1_UNORM; + + case PIPE_FORMAT_A1B5G5R5_UNORM: + case PIPE_FORMAT_X1B5G5R5_UNORM: + /* Not supported - this is backwards from OpenGL! */ + assert(0); + break; + default: /* Fallthrough to default */ break; |