From: Alyssa Rosenzweig Date: Sun, 24 Feb 2019 05:43:14 +0000 (+0000) Subject: panfrost: Add RGB565, RGB5A1 texture formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90fd82c540be991fce3ee2c8df6dea10ab7c9a29;p=mesa.git panfrost: Add RGB565, RGB5A1 texture formats Signed-off-by: Alyssa Rosenzweig --- 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);