Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Fix some dumb thinkos ...
details: https://anonhg.NetBSD.org/src/rev/17b99612ab08
branches: trunk
changeset: 330973:17b99612ab08
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jul 26 05:45:53 2014 +0000
description:
Fix some dumb thinkos in radeon_gart.c.
diffstat:
sys/external/bsd/drm2/dist/drm/radeon/radeon_gart.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 67d7f387e75d -r 17b99612ab08 sys/external/bsd/drm2/dist/drm/radeon/radeon_gart.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_gart.c Sat Jul 26 05:23:11 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_gart.c Sat Jul 26 05:45:53 2014 +0000
@@ -322,7 +322,8 @@
if (rdev->gart.ptr == NULL)
continue;
for (gpu_pgno = 0; gpu_pgno < gpu_per_cpu; gpu_pgno++)
- radeon_gart_set_page(rdev, gpu_pgstart + gpu_pgno,
+ radeon_gart_set_page(rdev,
+ (gpu_pgstart + gpu_per_cpu*pgno + gpu_pgno),
(rdev->dummy_page.addr +
gpu_pgno*RADEON_GPU_PAGE_SIZE));
}
@@ -402,7 +403,8 @@
if (rdev->gart.ptr == NULL)
continue;
for (gpu_pgno = 0; gpu_pgno < gpu_per_cpu; gpu_pgno++)
- radeon_gart_set_page(rdev, gpu_pgstart + gpu_pgno,
+ radeon_gart_set_page(rdev,
+ (gpu_pgstart + gpu_per_cpu*pgno + gpu_pgno),
(addr + gpu_pgno*RADEON_GPU_PAGE_SIZE));
}
radeon_gart_post_update(rdev, gpu_pgstart, gpu_npages);
@@ -476,10 +478,11 @@
for (pgno = 0; pgno < rdev->gart.num_cpu_pages; pgno++) {
const bus_addr_t addr = rdev->gart.pages_addr[pgno];
for (gpu_pgno = 0; gpu_pgno < gpu_per_cpu; gpu_pgno++)
- radeon_gart_set_page(rdev, gpu_pgno,
+ radeon_gart_set_page(rdev,
+ (gpu_per_cpu*pgno + gpu_pgno),
(addr + gpu_pgno*RADEON_GPU_PAGE_SIZE));
}
- radeon_gart_pre_update(rdev, 0, rdev->gart.num_gpu_pages);
+ radeon_gart_post_update(rdev, 0, rdev->gart.num_gpu_pages);
#else
int i, j, t;
u64 page_base;
Home |
Main Index |
Thread Index |
Old Index