On Mon, 29 Apr 2002, José Fonseca wrote: > On 2002.04.29 15:37 Peter Andersson wrote: > > I did as you asked and commented out the line: > > > > drmMach64FlushVertexBuffer( fd, prim, buffer->idx, buffer->used, 1 ); > > > > in xc/lib/GL/mesa/src/drv/mach64/mach64_ioctl.c > > > > And as you predicted i got the error message: > > > > "Error: Could not get new VB... exiting", > > > > Peter > > > > I'm getting suspicious that it could be related with the FIFO, i.e., we > are flooding your chip (which may be more picky) with requests. > > One thing that we can do to check that is in > xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mach64_drv.h > enable DMA my making > > #define MACH64_USE_DMA 1 > > as I believe that Leif already made the necessary changes to DMA works in > PowerPC too (Isn't Leif?). Also change
Yes, this should work, though I haven't been able to test it. The bus master test works on ppc, and we know the vertex buffers are OK, since glxgears draws correctly with MMIO, so as long as the virt_to_bus() produces a valid physical address for the buffer, DMA should work. > #define MACH64_VERBOSE 1 > > and redirect /proc/kmsg to a file. Note that the DMA debug output currently uses DRM_INFO, so this will go to the system log. Perhaps I should change this to DRM_DEBUG. For that matter, the bus master test could use DRM_DEBUG statements as well. > You need to build and install the > kernel module, and remove the previous from memory. Don't forget to undo > the changes in mach64_ioctl.c. > > If this still doesn't work, then try to put "#if 0" ... "#endif" around > "#if MACH64_USE_DMA"... "#endif /* MACH64_USE_DMA */" in > xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mach64_state.c > like: > > #if 0 > #if MACH64_USE_DMA > > ... > > #endif /* MACH64_USE_DMA */ > #endif > > to disable all that section. > > Well, Peter, although the bissection algorithm can take some interations, > if the initial conditions are met, it's guaranteed that it converges! ;-) > > José Fonseca > -- Leif Delgass http://www.retinalburn.net _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel