From: Alyssa Rosenzweig Date: Tue, 19 May 2020 21:25:14 +0000 (-0400) Subject: panfrost: Fill in SCALED formats to format table X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a4eeb21bf69fa0ab4e1a5954c1dd0f79441341a;p=mesa.git panfrost: Fill in SCALED formats to format table Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/encoder/pan_format.c b/src/panfrost/encoder/pan_format.c index 02167275034..30423fa4e48 100644 --- a/src/panfrost/encoder/pan_format.c +++ b/src/panfrost/encoder/pan_format.c @@ -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 },