After upgrade xf86-video-mga-1.2.1.3 to 1.4.1, GL and DRI cannot be used simultaneously anymore. With OldDMAinit="true" in xorg.conf DRI is available, but glxinfo freezes after the warning: The driver claims not to support 0x4b visual All GL linked applications produce just this warning and black window (or even screen), but xdriinfo reports, there IS DRI support for mga:0. With OldDMAInit="false" (or without this parameter) GL applications work as expected, but DRI is unavailable, /var/log/Xorg.0.log contains: .... (EE) MGA(0): [drm] Failed to map DMA buffers list (II) MGA(0): [drm] removed 1 reserved context for kernel (II) MGA(0): [drm] unmapping 8192 bytes of SAREA 0x10000000 at 0x2aaaaf35e000 (WW) MGA(0): Direct rendering disabled .... Tested on Abit AV8/AMD64/G450 and Abit NF7-S2/Athlon-XP/G400 systems, kernel 2.6.15-gentoo-r7 and agpgart is compiled into the kernel. The same situation of both. DefaultDepth 24, DefaultFbBpp 32 (this seems have no effect, the results are identical with DefaultDepth 16). The previous driver 1.2.1.3 works with OldDMAInit="true" on both systems, and DRI and GL is simultaneously available; without it produces the (EE) MGA(0): [drm] Failed to map DMA buffers list as well and dri is disabled, too.
> The driver claims not to support 0x4b visual This is because you have Composite Extension enabled and using package.masked xorg-server. Let me know if I'm wrong. ;)
(In reply to comment #1) > > The driver claims not to support 0x4b visual > > This is because you have Composite Extension enabled and using package.masked > xorg-server. > > Let me know if I'm wrong. ;) > You are right about masked xorg-server - otherwise I could not use xf86-video-mga ;-), and also about Composite Extension. I do not complain, only trying to report a problem. But even when I have Composite Extension disabled, and xdriinfo reports functional DRI, glxinfo and GL-applications do not work. Only message is different than, just: 'name of display: :0.0' (and glxinfo is frozen, glxgears and other GL applications produce only black box). With OldDMAInit = "false" still no DRI.... But, based on your information, I suppose this 'feature' is known already ;-)
Go ahead and file the 'no direct rendering' problem upstream at bugs.freedesktop.org in the xorg product, attach /var/log/Xorg.0.log and xorg.conf, and post the URL here. Please search for your bug before filing a new one, though. Thanks!