panfrost: Add RGB565, RGB5A1 texture formats
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 24 Feb 2019 05:43:14 +0000 (05:43 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 27 Feb 2019 03:55:19 +0000 (03:55 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/include/panfrost-job.h
src/gallium/drivers/panfrost/pan_pretty_print.c

index 7a2735ad363ff99eb2d18488d10e082d55bc3a09..1a2ba5529aa914fae9f73ecdd7f893b48d8e1a23 100644 (file)
@@ -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,
index f9fd2c0e6da4e4c59218d81b06b764abc60dd3b9..8d7f38b4b8c99f496f9ede7544d73ba259e1e176 100644 (file)
@@ -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);