summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2009-06-02 18:51:03 +0000
committerkettenis <kettenis@openbsd.org>2009-06-02 18:51:03 +0000
commit2e189a05ba2ad68def26ce86c29758ef8924afa2 (patch)
tree00783dc8f006850d5642eaf9c29f5c0f953ac0d1
parentDefine a proper wsdisplay type for machfb(4). (diff)
downloadwireguard-openbsd-2e189a05ba2ad68def26ce86c29758ef8924afa2.tar.xz
wireguard-openbsd-2e189a05ba2ad68def26ce86c29758ef8924afa2.zip
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@
-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;