panfrost: Add R10G10B10A2_SSCALED vertex format
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 13 Aug 2019 17:27:09 +0000 (10:27 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 14 Aug 2019 23:57:24 +0000 (16:57 -0700)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_format.c

index 7c94596ec76b42a628bc43093bbdcc0812308ac9..f272e3a371668ddffdce7774535dab1b5bb71da6 100644 (file)
@@ -176,6 +176,10 @@ panfrost_find_format(const struct util_format_description *desc) {
         case PIPE_FORMAT_B10G10R10A2_UINT:
                 return MALI_RGB10_A2UI;
 
+        case PIPE_FORMAT_R10G10B10A2_SSCALED:
+        case PIPE_FORMAT_B10G10R10A2_SSCALED:
+                return MALI_RGB10_A2I;
+
         case PIPE_FORMAT_Z32_UNORM:
         case PIPE_FORMAT_Z24X8_UNORM:
                 return MALI_Z32_UNORM;