summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver McFadden <z3ro.geek@gmail.com>2007-10-31 16:05:18 +0000
committerOliver McFadden <z3ro.geek@gmail.com>2007-10-31 16:05:18 +0000
commit46b1ecfc7b29181ccf7d961e2d22db6f18c49d41 (patch)
tree94ecab8e6d4fb88f5568b516f1e816a9b9c2238d
parent200832f6c0a7e3bcb13b835a8838032abfdb6c62 (diff)
Possibly corrected Revenge on fglrx 8.42.3...
I am not completely sure about this commit, but it seems to work okay...
-rw-r--r--src/revenge_memory.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/revenge_memory.c b/src/revenge_memory.c
index 60a627a..5d66f8f 100644
--- a/src/revenge_memory.c
+++ b/src/revenge_memory.c
@@ -71,13 +71,11 @@ memory_gart_to_phys (unsigned int addr)
if (option_debug && option_verbose)
{
- printf ("%s: addr = 0x%08x phys_addr = 0x%08x (0x%08x)\n", __func__,
+ printf ("%s: addr = 0x%08x phys_addr = 0x%08x (%d)\n", __func__,
addr, phys_addr, num);
}
- assert ((phys_addr % ATI_PCIGART_PAGE_SIZE) == 0);
-
- return phys_addr;
+ return round_down (phys_addr, ATI_PCIGART_PAGE_SIZE);
}
static void *