Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130949 - xf86-video-mga-1.4.1 or GL or DRI, but not both?
Summary: xf86-video-mga-1.4.1 or GL or DRI, but not both?
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-23 03:07 UTC by J.Taimr
Modified: 2006-04-23 12:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J.Taimr 2006-04-23 03:07:13 UTC
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.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2006-04-23 08:04:22 UTC
> 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. ;)
Comment 2 J.Taimr 2006-04-23 08:41:23 UTC
(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 ;-)
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-23 12:22:13 UTC
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!