summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-02-24 05:43:14 +0000
committerAlyssa Rosenzweig <[email protected]>2019-02-27 03:55:19 +0000
commit90fd82c540be991fce3ee2c8df6dea10ab7c9a29 (patch)
tree8d3e4c6f49bc294257dfdc3bf82dacd363a45f4b /src/gallium/drivers/panfrost
parent4122665dd90dc8997840194094bbd8cbefd7a4c3 (diff)
panfrost: Add RGB565, RGB5A1 texture formats
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r--src/gallium/drivers/panfrost/include/panfrost-job.h2
-rw-r--r--src/gallium/drivers/panfrost/pan_pretty_print.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/include/panfrost-job.h b/src/gallium/drivers/panfrost/include/panfrost-job.h
index 7a2735ad363..1a2ba5529aa 100644
--- a/src/gallium/drivers/panfrost/include/panfrost-job.h
+++ b/src/gallium/drivers/panfrost/include/panfrost-job.h
@@ -306,6 +306,8 @@ struct mali_channel_swizzle {
#define MALI_CHANNEL_FLOAT 7
enum mali_format {
+ MALI_RGB565 = MALI_FORMAT_SPECIAL | 0x0,
+ MALI_RGB5_A1_UNORM = MALI_FORMAT_SPECIAL | 0x2,
MALI_RGB10_A2_UNORM = MALI_FORMAT_SPECIAL | 0x3,
MALI_RGB10_A2_SNORM = MALI_FORMAT_SPECIAL | 0x5,
MALI_RGB10_A2UI = MALI_FORMAT_SPECIAL | 0x7,
diff --git a/src/gallium/drivers/panfrost/pan_pretty_print.c b/src/gallium/drivers/panfrost/pan_pretty_print.c
index f9fd2c0e6da..8d7f38b4b8c 100644
--- a/src/gallium/drivers/panfrost/pan_pretty_print.c
+++ b/src/gallium/drivers/panfrost/pan_pretty_print.c
@@ -36,6 +36,8 @@ char *pandecode_format_name(enum mali_format format)
static char unk_format_str[5];
switch (format) {
+ DEFINE_CASE(RGB565);
+ DEFINE_CASE(RGB5_A1_UNORM);
DEFINE_CASE(RGB10_A2_UNORM);
DEFINE_CASE(RGB10_A2_SNORM);
DEFINE_CASE(RGB10_A2UI);