Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci change hsync start to match xf86-video-radeon so...
details: https://anonhg.NetBSD.org/src/rev/f42fa04093ac
branches: trunk
changeset: 785698:f42fa04093ac
user: macallan <macallan%NetBSD.org@localhost>
date: Mon Mar 25 17:35:51 2013 +0000
description:
change hsync start to match xf86-video-radeon so CRT modes set up by radeonfb
and Xorg no longer differ by a few pixels horizontally
diffstat:
sys/dev/pci/radeonfb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f398e68010c7 -r f42fa04093ac sys/dev/pci/radeonfb.c
--- a/sys/dev/pci/radeonfb.c Mon Mar 25 15:31:03 2013 +0000
+++ b/sys/dev/pci/radeonfb.c Mon Mar 25 17:35:51 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radeonfb.c,v 1.74 2013/01/07 23:24:28 macallan Exp $ */
+/* $NetBSD: radeonfb.c,v 1.75 2013/03/25 17:35:51 macallan Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.74 2013/01/07 23:24:28 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.75 2013/03/25 17:35:51 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2214,7 +2214,7 @@
* H_SYNC_STRT_WID
*/
v = (((mode->hsync_end - mode->hsync_start) / 8) << 16);
- v |= mode->hsync_start;
+ v |= (mode->hsync_start - 8); /* match xf86-video-radeon */
if (mode->flags & VID_NHSYNC)
v |= RADEON_CRTC_H_SYNC_POL;
PUT32(sc, hsyncstrt, v);
Home |
Main Index |
Thread Index |
Old Index