From 0af672a9c39a88f9bba1bede430126d1bff42acb Mon Sep 17 00:00:00 2001 From: kettenis Date: Tue, 9 Mar 2021 19:02:44 +0000 Subject: [PATCH] Add support for 30-bit color modes. --- sys/dev/fdt/simplefb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/simplefb.c b/sys/dev/fdt/simplefb.c index 92a4546b9f1..13708ea3f32 100644 --- a/sys/dev/fdt/simplefb.c +++ b/sys/dev/fdt/simplefb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: simplefb.c,v 1.11 2020/05/28 20:24:26 fcambus Exp $ */ +/* $OpenBSD: simplefb.c,v 1.12 2021/03/09 19:02:44 kettenis Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -54,7 +54,9 @@ struct simplefb_format simplefb_formats[] = { { "x8r8g8b8", 32, 16, 8, 8, 8, 0, 8 }, { "a8r8g8b8", 32, 16, 8, 8, 8, 0, 8 }, { "x8b8g8r8", 32 }, - { "a8b8g8r8", 32 } + { "a8b8g8r8", 32 }, + { "x2r10g10b10", 32, 20, 10, 10, 10, 0, 10 }, + { "a2r10g10b10", 32, 20, 10, 10, 10, 0, 10 }, }; struct simplefb_softc { -- 2.20.1