OSDN Git Service

Bug 6209: [mach64] AGP DMA buffers not mapped correctly.
authorGeorge Sapountzis <gsap7@yahoo.gr>
Sat, 15 Jul 2006 22:02:06 +0000 (01:02 +0300)
committerGeorge Sapountzis <gsap7@yahoo.gr>
Mon, 2 Oct 2006 19:46:54 +0000 (22:46 +0300)
Map the DMA buffers from the same linear address as the vertex bufs. If
dev->agp_buffer_token is not set, mach64 drm maps the DMA buffers from
linear address 0x0.

shared-core/mach64_dma.c

index 4c8edea..36fddf0 100644 (file)
@@ -834,6 +834,7 @@ static int mach64_do_dma_init(drm_device_t * dev, drm_mach64_init_t * init)
                        mach64_do_cleanup_dma(dev);
                        return DRM_ERR(ENOMEM);
                }
+               dev->agp_buffer_token = init->buffers_offset;
                dev->agp_buffer_map =
                    drm_core_findmap(dev, init->buffers_offset);
                if (!dev->agp_buffer_map) {