Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Use pixel format information from bootloader.
details: https://anonhg.NetBSD.org/src/rev/d945673952d5
branches: trunk
changeset: 368496:d945673952d5
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Jul 16 06:27:24 2022 +0000
description:
Use pixel format information from bootloader.
diffstat:
sys/arch/x86/x86/genfb_machdep.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 2ba1d0d5ad3b -r d945673952d5 sys/arch/x86/x86/genfb_machdep.c
--- a/sys/arch/x86/x86/genfb_machdep.c Sat Jul 16 04:55:35 2022 +0000
+++ b/sys/arch/x86/x86/genfb_machdep.c Sat Jul 16 06:27:24 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb_machdep.c,v 1.16 2021/01/28 01:57:31 jmcneill Exp $ */
+/* $NetBSD: genfb_machdep.c,v 1.17 2022/07/16 06:27:24 mlelstv Exp $ */
/*-
* Copyright (c) 2009 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb_machdep.c,v 1.16 2021/01/28 01:57:31 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb_machdep.c,v 1.17 2022/07/16 06:27:24 mlelstv Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -141,6 +141,12 @@
ri->ri_height = fbinfo->height;
ri->ri_depth = fbinfo->depth;
ri->ri_stride = fbinfo->stride;
+ ri->ri_rnum = fbinfo->rnum;
+ ri->ri_gnum = fbinfo->gnum;
+ ri->ri_bnum = fbinfo->bnum;
+ ri->ri_rpos = fbinfo->rpos;
+ ri->ri_gpos = fbinfo->gpos;
+ ri->ri_bpos = fbinfo->bpos;
if (x86_genfb_use_shadowfb && lookup_bootinfo(BTINFO_EFI) != NULL) {
/* XXX The allocated memory is never released... */
ri->ri_bits = kmem_alloc(ri->ri_stride * ri->ri_height,
Home |
Main Index |
Thread Index |
Old Index