summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-06-02 18:51:04 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-06-02 18:51:04 +0000
commit17efbfb6dd5e3fe171d152d05e114591ba7a2292 (patch)
tree53aba1ab7af1382fb89aad853a5556bafd1e08f3 /sys/arch
parent58a1eb7dd28603cef0342d3fb794d421ac86630a (diff)
When about to run X11 in 32 bpp mode, advertize correctly that we are
really using 24 bpp pixels on 32 bit boundaries. ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/vgafb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c
index 2c2f5b49664..8663c0debce 100644
--- a/sys/arch/sparc64/dev/vgafb.c
+++ b/sys/arch/sparc64/dev/vgafb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb.c,v 1.57 2009/03/01 10:48:54 kettenis Exp $ */
+/* $OpenBSD: vgafb.c,v 1.58 2009/06/02 18:51:03 kettenis Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -225,6 +225,12 @@ vgafb_ioctl(v, cmd, data, flags, p)
wdf->depth = sc->sc_sunfb.sf_depth;
wdf->cmsize = 256;
break;
+ case WSDISPLAYIO_GETSUPPORTEDDEPTH:
+ if (sc->sc_sunfb.sf_depth == 32)
+ *(u_int *)data = WSDISPLAYIO_DEPTH_24_32;
+ else
+ return (-1);
+ break;
case WSDISPLAYIO_LINEBYTES:
*(u_int *)data = sc->sc_sunfb.sf_linebytes;
break;