From 8dfbbee05461c581ec4cba46ec4e74de49df80f9 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 13 Aug 2021 20:20:28 +0000 Subject: [PATCH] panfrost: Mark R5G6B5 as blendable We support B5G6R5 as blendable, this is just a swizzle away. Reduces the amount we hit blend shaders, and will fix a clear colour packing unit test in a moment. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/lib/pan_format.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panfrost/lib/pan_format.c b/src/panfrost/lib/pan_format.c index 45c0580fcd7..a549c0763ad 100644 --- a/src/panfrost/lib/pan_format.c +++ b/src/panfrost/lib/pan_format.c @@ -90,6 +90,7 @@ GENX(panfrost_blendable_formats)[PIPE_FORMAT_COUNT] = { BFMT2(A8_UNORM, R8G8B8A8, R8, 0), BFMT2(I8_UNORM, R8G8B8A8, R8, 0), + BFMT2(R5G6B5_UNORM, R5G6B5A0, R5G6B5, 0), BFMT2(B5G6R5_UNORM, R5G6B5A0, R5G6B5, 0), BFMT(A4B4G4R4_UNORM, R4G4B4A4),