From bf42d17a16086abf823ccd504d13301d8d9cbc42 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 31 May 2021 16:35:21 -0400 Subject: [PATCH] asahi: Flesh out the formats table Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/agx_formats.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/asahi/lib/agx_formats.c b/src/asahi/lib/agx_formats.c index 405cdea..c9f8600 100644 --- a/src/asahi/lib/agx_formats.c +++ b/src/asahi/lib/agx_formats.c @@ -34,8 +34,47 @@ } const struct agx_pixel_format_entry agx_pixel_format[PIPE_FORMAT_COUNT] = { + AGX_FMT(R8_UNORM, R8, UNORM, T), + AGX_FMT(R8G8_UNORM, R8G8, UNORM, T), + AGX_FMT(R8G8B8A8_UNORM, R8G8B8A8, UNORM, T), + AGX_FMT(A8R8G8B8_UNORM, R8G8B8A8, UNORM, T), + AGX_FMT(A8B8G8R8_UNORM, R8G8B8A8, UNORM, T), AGX_FMT(B8G8R8A8_UNORM, R8G8B8A8, UNORM, T), + AGX_FMT(R16_UNORM, R16, UNORM, T), + AGX_FMT(R16G16_UNORM, R16G16, UNORM, T), + AGX_FMT(R16G16B16A16_UNORM, R16G16B16A16, UNORM, T), + + AGX_FMT(R8_SRGB, R8, UNORM, T), + AGX_FMT(R8G8_SRGB, R8G8, UNORM, T), + AGX_FMT(R8G8B8A8_SRGB, R8G8B8A8, UNORM, T), + AGX_FMT(A8R8G8B8_SRGB, R8G8B8A8, UNORM, T), + AGX_FMT(A8B8G8R8_SRGB, R8G8B8A8, UNORM, T), + AGX_FMT(B8G8R8A8_SRGB, R8G8B8A8, UNORM, T), + + AGX_FMT(R8_SNORM, R8, SNORM, F), + AGX_FMT(R8G8_SNORM, R8G8, SNORM, F), + AGX_FMT(R8G8B8A8_SNORM, R8G8B8A8, SNORM, F), + AGX_FMT(A8R8G8B8_SNORM, R8G8B8A8, SNORM, F), + AGX_FMT(A8B8G8R8_SNORM, R8G8B8A8, SNORM, F), + AGX_FMT(B8G8R8A8_SNORM, R8G8B8A8, SNORM, F), + + AGX_FMT(R16_FLOAT, R16, FLOAT, T), + AGX_FMT(R16G16_FLOAT, R16G16, FLOAT, T), + AGX_FMT(R16G16B16A16_FLOAT, R16G16B16A16, FLOAT, T), + + AGX_FMT(R32_FLOAT, R32, FLOAT, T), + AGX_FMT(R32G32_FLOAT, R32G32, FLOAT, T), + AGX_FMT(R32G32B32A32_FLOAT, R32G32B32A32, FLOAT, T), + + AGX_FMT(Z32_FLOAT, R32, FLOAT, F), + AGX_FMT(Z32_FLOAT_S8X24_UINT, R32, FLOAT, F), + + AGX_FMT(R10G10B10A2_UNORM, R10G10B10A2, UNORM, F), + AGX_FMT(B10G10R10A2_UNORM, R10G10B10A2, UNORM, F), + AGX_FMT(R11G11B10_FLOAT, R11G11B10, FLOAT, T), + AGX_FMT(R9G9B9E5_FLOAT, R9G9B9E5, FLOAT, F), + AGX_FMT(ETC2_RGB8, ETC2_RGB8, UNORM, F), AGX_FMT(ETC2_SRGB8, ETC2_RGB8, UNORM, F), AGX_FMT(ETC2_RGB8A1, ETC2_RGB8A1, UNORM, F), -- 2.7.4