summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-12-09 18:21:15 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-12-09 18:21:15 +0000
commit2ef1e8ba442ab19291ace7ec92e336d795a5b0f9 (patch)
treeef35f3cbcd5322bc4ab6dbd3eef737443396c2a2 /sys
parent5896cdd199d4a967e7d96648b3991ff87eb9eefd (diff)
Restore "evil hack" that we had before the recent agp(4) changes. Solves
X display corruption. People should know better than just importing the latest random crap from NetBSD or FreeBSD. That's worse than doing a "commit and run".
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/agp_i810.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c
index 730ea07e94f..f23ea143f5b 100644
--- a/sys/dev/pci/agp_i810.c
+++ b/sys/dev/pci/agp_i810.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agp_i810.c,v 1.27 2007/12/09 00:09:22 oga Exp $ */
+/* $OpenBSD: agp_i810.c,v 1.28 2007/12/09 18:21:14 kettenis Exp $ */
/* $NetBSD: agp_i810.c,v 1.15 2003/01/31 00:07:39 thorpej Exp $ */
/*-
@@ -762,7 +762,6 @@ agp_i810_bind_memory(struct agp_softc *sc, struct agp_memory *mem,
* Until the issue is solved, simply restore it.
*/
-#if 0
regval = bus_space_read_4(isc->bst, isc->bsh, AGP_I810_PGTBL_CTL);
if (regval != (isc->gatt->ag_physical | 1)) {
#if DEBUG
@@ -772,8 +771,6 @@ agp_i810_bind_memory(struct agp_softc *sc, struct agp_memory *mem,
bus_space_write_4(isc->bst, isc->bsh, AGP_I810_PGTBL_CTL,
isc->gatt->ag_physical | 1);
}
-#endif
- regval = 0;
if (mem->am_type == 2) {
for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE) {