panfrost: Fill in SCALED formats to format table
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 19 May 2020 21:25:14 +0000 (17:25 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 21 May 2020 18:43:32 +0000 (14:43 -0400)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>

src/panfrost/encoder/pan_format.c

index 021672750342df9d309f4e29d78c3a178432ef47..30423fa4e48be704c5002f3b29672a175c1e9e53 100644 (file)
@@ -108,6 +108,32 @@ struct panfrost_format panfrost_pipe_format_table[PIPE_FORMAT_COUNT] = {
         [PIPE_FORMAT_B8G8R8A8_SSCALED]         = { MALI_RGBA8I, _V },
         [PIPE_FORMAT_A8B8G8R8_SSCALED]         = { MALI_RGBA8I, _V },
 
+        [PIPE_FORMAT_R8_USCALED]               = { MALI_R8UI, _V },
+        [PIPE_FORMAT_R8G8_USCALED]             = { MALI_RG8UI, _V },
+        [PIPE_FORMAT_R8G8B8_USCALED]           = { MALI_RGB8UI, _V },
+        [PIPE_FORMAT_B8G8R8_USCALED]           = { MALI_RGB8UI, _V },
+        [PIPE_FORMAT_R8G8B8A8_USCALED]         = { MALI_RGBA8UI, _V },
+        [PIPE_FORMAT_B8G8R8A8_USCALED]         = { MALI_RGBA8UI, _V },
+        [PIPE_FORMAT_A8B8G8R8_USCALED]         = { MALI_RGBA8UI, _V },
+
+        [PIPE_FORMAT_R16_USCALED]              = { MALI_R16UI, _V },
+        [PIPE_FORMAT_R16G16_USCALED]           = { MALI_RG16UI, _V },
+        [PIPE_FORMAT_R16G16B16_USCALED]                = { MALI_RGB16UI, _V },
+        [PIPE_FORMAT_R16G16B16A16_USCALED]     = { MALI_RGBA16UI, _V },
+        [PIPE_FORMAT_R16_SSCALED]              = { MALI_R16I, _V },
+        [PIPE_FORMAT_R16G16_SSCALED]           = { MALI_RG16I, _V },
+        [PIPE_FORMAT_R16G16B16_SSCALED]                = { MALI_RGB16I, _V },
+        [PIPE_FORMAT_R16G16B16A16_SSCALED]     = { MALI_RGBA16I, _V },
+
+        [PIPE_FORMAT_R32_USCALED]              = { MALI_R32UI, _V },
+        [PIPE_FORMAT_R32G32_USCALED]           = { MALI_RG32UI, _V },
+        [PIPE_FORMAT_R32G32B32_USCALED]                = { MALI_RGB32UI, _V },
+        [PIPE_FORMAT_R32G32B32A32_USCALED]     = { MALI_RGBA32UI, _V },
+        [PIPE_FORMAT_R32_SSCALED]              = { MALI_R32I, _V },
+        [PIPE_FORMAT_R32G32_SSCALED]           = { MALI_RG32I, _V },
+        [PIPE_FORMAT_R32G32B32_SSCALED]                = { MALI_RGB32I, _V },
+        [PIPE_FORMAT_R32G32B32A32_SSCALED]     = { MALI_RGBA32I, _V },
+
         [PIPE_FORMAT_R3G3B2_UNORM]             = { MALI_RGB332_UNORM, _VT },
 
         [PIPE_FORMAT_Z24_UNORM_S8_UINT]                = { MALI_Z24X8_UNORM, _TZ },