aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/encoder
diff options
context:
space:
mode:
authorIcecream95 <[email protected]>2020-03-24 13:25:19 +1300
committerMarge Bot <[email protected]>2020-03-31 00:48:58 +0000
commitbd87bcb8ac9039dcae675cef977c08eadb75c438 (patch)
treec8a0ef9ca85f497877e6eb57ae5791653d096800 /src/panfrost/encoder
parent49a81a431e0b5aef53da2319b327da717603fbc6 (diff)
panfrost: Add support for R3G3B2
Tested with texenv from mesa-demos. Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4292>
Diffstat (limited to 'src/panfrost/encoder')
-rw-r--r--src/panfrost/encoder/pan_format.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/encoder/pan_format.c b/src/panfrost/encoder/pan_format.c
index 26d3f7951eb..89f4695deaa 100644
--- a/src/panfrost/encoder/pan_format.c
+++ b/src/panfrost/encoder/pan_format.c
@@ -124,6 +124,9 @@ panfrost_find_format(const struct util_format_description *desc)
/* Z32F = R32F to the hardware */
return MALI_R32F;
+ case PIPE_FORMAT_R3G3B2_UNORM:
+ return MALI_RGB332_UNORM;
+
case PIPE_FORMAT_B5G6R5_UNORM:
return MALI_RGB565;