summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/cgfourteen.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-03-13 19:40:50 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-03-13 19:40:50 +0000
commit1adb1d0fd1934ebb394bc3e83bc34a6408fd8c18 (patch)
treec5394e174cead1767b05195a67d530f69153abfa /sys/arch/sparc/dev/cgfourteen.c
parent1a194b3d7d135ee33f0c5d0235e27315e971a3b6 (diff)
When about to run X11 in 32 bpp mode, advertize correctly that we are
really using 24 bpp pixels on 32 bit boundaries.
Diffstat (limited to 'sys/arch/sparc/dev/cgfourteen.c')
-rw-r--r--sys/arch/sparc/dev/cgfourteen.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/cgfourteen.c b/sys/arch/sparc/dev/cgfourteen.c
index 12a70381269..8eb5da0fa02 100644
--- a/sys/arch/sparc/dev/cgfourteen.c
+++ b/sys/arch/sparc/dev/cgfourteen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgfourteen.c,v 1.34 2007/02/18 18:40:35 miod Exp $ */
+/* $OpenBSD: cgfourteen.c,v 1.35 2007/03/13 19:40:48 miod Exp $ */
/* $NetBSD: cgfourteen.c,v 1.7 1997/05/24 20:16:08 pk Exp $ */
/*
@@ -357,6 +357,12 @@ cgfourteen_ioctl(void *dev, u_long cmd, caddr_t data, int flags, struct proc *p)
wdf->depth = sc->sc_32 ? 32 : 8;
wdf->cmsize = sc->sc_32 ? 0 : 256;
break;
+ case WSDISPLAYIO_GETSUPPORTEDDEPTH:
+ if (sc->sc_32)
+ *(u_int *)data = WSDISPLAYIO_DEPTH_24_32;
+ else
+ return (-1);
+ break;
case WSDISPLAYIO_LINEBYTES:
if (sc->sc_32)
*(u_int *)data = sc->sc_sunfb.sf_linebytes * 4;