summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-03-06 23:10:27 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-03-06 23:10:27 +0000
commit4539f029e97c421ad749a389a714d1a2a82155ee (patch)
tree6024fd2528544b8faa37a28debebe58b494d5d04 /sys/arch
parent4fce25dbf9d42f294283fb314e2ce8fc75c47abb (diff)
Implement WSDISPLAYIO_GETSUPPORTEDDEPTH; makes X actually work if you follow
the instructions in /usr/X11R6/README.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/creator.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c
index 32d2abc7f5f..c9de9719a8a 100644
--- a/sys/arch/sparc64/dev/creator.c
+++ b/sys/arch/sparc64/dev/creator.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: creator.c,v 1.38 2006/12/17 22:18:16 miod Exp $ */
+/* $OpenBSD: creator.c,v 1.39 2007/03/06 23:10:26 kettenis Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -241,6 +241,9 @@ creator_ioctl(v, cmd, data, flags, p)
wdf->depth = 32;
wdf->cmsize = 0;
break;
+ case WSDISPLAYIO_GETSUPPORTEDDEPTH:
+ *(u_int *)data = WSDISPLAYIO_DEPTH_24_32;
+ break;
case WSDISPLAYIO_LINEBYTES:
*(u_int *)data = sc->sc_sunfb.sf_linebytes;
break;