Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast/dev Add WSDISPLAYIO_LINEBYTES, required b...
details: https://anonhg.NetBSD.org/src/rev/939b4f7872a0
branches: trunk
changeset: 755759:939b4f7872a0
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jun 19 08:42:48 2010 +0000
description:
Add WSDISPLAYIO_LINEBYTES, required by Xorg wsfb server.
diffstat:
sys/arch/dreamcast/dev/pvr.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r eb5a4fab7f61 -r 939b4f7872a0 sys/arch/dreamcast/dev/pvr.c
--- a/sys/arch/dreamcast/dev/pvr.c Sat Jun 19 07:33:58 2010 +0000
+++ b/sys/arch/dreamcast/dev/pvr.c Sat Jun 19 08:42:48 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pvr.c,v 1.27 2010/05/15 08:53:27 tsutsui Exp $ */
+/* $NetBSD: pvr.c,v 1.28 2010/06/19 08:42:48 tsutsui Exp $ */
/*-
* Copyright (c) 2001 Marcus Comstedt.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.27 2010/05/15 08:53:27 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.28 2010/06/19 08:42:48 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -332,6 +332,10 @@
#undef wsd_fbip
return 0;
+ case WSDISPLAYIO_LINEBYTES:
+ *(u_int *)data = sc->sc_dc->rinfo.ri_stride;
+ return 0;
+
case WSDISPLAYIO_GETCMAP:
case WSDISPLAYIO_PUTCMAP:
return EPASSTHROUGH; /* XXX Colormap */
Home |
Main Index |
Thread Index |
Old Index