Mesa (main): panfrost: Mark R5G6B5 as blendable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 16 16:50:52 UTC 2021


Module: Mesa
Branch: main
Commit: 8dfbbee05461c581ec4cba46ec4e74de49df80f9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8dfbbee05461c581ec4cba46ec4e74de49df80f9

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Fri Aug 13 20:20:28 2021 +0000

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 <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12365>

---

 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),



More information about the mesa-commit mailing list