Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/luna68k/dev Set an actual framebuffer depth (bpp) t...



details:   https://anonhg.NetBSD.org/src/rev/6a88b0c63c8e
branches:  trunk
changeset: 371254:6a88b0c63c8e
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Oct 01 14:02:08 2022 +0000

description:
Set an actual framebuffer depth (bpp) to rasops ri_depth.

The previous value was derived from OpenBSD/luna88k but
it has not been referenced even via ioctl(2).

diffstat:

 sys/arch/luna68k/dev/lunafb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f66475793544 -r 6a88b0c63c8e sys/arch/luna68k/dev/lunafb.c
--- a/sys/arch/luna68k/dev/lunafb.c     Sat Oct 01 13:51:55 2022 +0000
+++ b/sys/arch/luna68k/dev/lunafb.c     Sat Oct 01 14:02:08 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lunafb.c,v 1.47 2022/09/25 11:28:40 isaki Exp $ */
+/* $NetBSD: lunafb.c,v 1.48 2022/10/01 14:02:08 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: lunafb.c,v 1.47 2022/09/25 11:28:40 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lunafb.c,v 1.48 2022/10/01 14:02:08 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -505,7 +505,7 @@
        ri = &dc->dc_ri;
        ri->ri_width = dc->dc_wid;
        ri->ri_height = dc->dc_ht;
-       ri->ri_depth = 1;       /* since planes are independently addressed */
+       ri->ri_depth = dc->dc_depth;
        ri->ri_stride = dc->dc_rowbytes;
        ri->ri_bits = (void *)dc->dc_videobase;
        ri->ri_flg = RI_CENTER;



Home | Main Index | Thread Index | Old Index