I tested xorg-x11-7.0 on my gentoo ppc64 with 64-bit userland, and it worked fine except the dri stuff. I got the following errors when I ran glxgears: "Error: couldn't get an RGB, Double-buffered visual". Errors when I ran glxinfo: name of display: :0.0 Error: couldn't find RGB GLX visual visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat ---------------------------------------------------------------------- 0x23 24 tc 0 -1 0 r y . -1 -1 0 0 0 16 0 0 0 0 0 0 0 None 0x24 24 tc 0 -1 0 r y . -1 -1 0 0 0 16 8 16 16 16 0 0 0 None 0x25 24 tc 0 -1 0 r y . -1 -1 8 0 0 16 8 16 16 16 16 0 0 None 0x26 24 tc 0 -1 0 r . . -1 -1 8 0 0 16 8 16 16 16 16 0 0 None 0x27 24 dc 0 -1 0 r y . -1 -1 0 0 0 16 0 0 0 0 0 0 0 None 0x28 24 dc 0 -1 0 r y . -1 -1 0 0 0 16 8 16 16 16 0 0 0 None 0x29 24 dc 0 -1 0 r y . -1 -1 8 0 0 16 8 16 16 16 16 0 0 None 0x2a 24 dc 0 -1 0 r . . -1 -1 8 0 0 16 8 16 16 16 16 0 0 None In the Xorg.0.log, I found: (==) RandR enabled (II) Initializing built-in extension MIT-SHM ........ ........ (II) Initializing built-in extension XEVIE No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 4294967295 No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 4294967295 No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 4294967295 No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 4294967295 No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 4294967295 No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 4294967295 No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 4294967295 No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 4294967295 (**) Option "Protocol" "ImPS/2" All dri and drm modules as well as glx were loaded pproperly in the log file.
I'm only able to start X when I use _Driver "fbdev"_. Could you please provide your xorg.conf so that I can compare yours and mine? I'll add ~ppc64 to the ebuilds when they hit ~arch. Or that is to say they leave packages.mask. ( I have bad experiences adding keywords to masked packages... )
Here is my xorg.conf. # This file was generated by Xorgautoconfig v0.2.2. Section "ServerLayout" Identifier "X.Org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" # RgbPath is the location of the RGB database. Note, this is the name of the # file minus the extension (like ".txt" or ".db"). There is normally # no need to change the default. RgbPath "/usr/share/X11/rgb" # ModulePath can be used to set a search path for the X server modules. # The default path is shown here. ModulePath "/usr/lib64/xorg/modules" ModulePath "/usr/lib64/opengl/xorg-x11" # Multiple FontPath entries are allowed (which are concatenated together), # as well as specifying multiple comma-separated entries in one FontPath # command (or a combination of both methods) # For X Font Server support, uncomment this and comment the other FontPaths # Note that this is not required for most configurations # FontPath "unix/:-1" FontPath "/usr/share/fonts/TTF/" FontPath "/usr/share/fonts/ukr/" FontPath "/usr/share/fonts/misc/" FontPath "/usr/share/fonts/ghostscript/" FontPath "/usr/share/fonts/75dpi/" FontPath "/usr/share/fonts/75dpi/:unscaled" FontPath "/usr/share/fonts/kochi-substitute/" FontPath "/usr/share/fonts/Type1/" FontPath "/usr/share/fonts/local/" FontPath "/usr/share/fonts/xawtv/" FontPath "/usr/share/fonts/terminus/" FontPath "/usr/share/fonts/arphicfonts/" FontPath "/usr/share/fonts/baekmuk-fonts/" FontPath "/usr/share/fonts/latex-xft-fonts/" FontPath "/usr/share/fonts/100dpi/" FontPath "/usr/share/fonts/100dpi/:unscaled" FontPath "/usr/share/fonts/corefonts/" FontPath "/usr/share/fonts/ttf-bitstream-vera/" FontPath "/usr/share/fonts/cyrillic/" # FontPath "/usr/share/fonts/baekmuk/" # FontPath "/usr/share/fonts/freefont/" # FontPath "/usr/share/fonts/zh_CN/" # FontPath "/usr/share/fonts/Speedo/" # FontPath "/usr/share/fonts/encodings/" # FontPath "/usr/share/fonts/util/" # FontPath "/usr/share/fonts/afms/" # FontPath "/usr/share/fonts/default/" # FontPath "/usr/share/fonts/ttf/" # FontPath "/usr/share/fonts/CID/" EndSection Section "Module" Load "extmod" Load "dri" Load "dbe" Load "record" Load "glx" Load "type1" Load "freetype" Load "fbdevhw" EndSection Section "Extensions" # Option "Composite" "Disable" # Experimental EndSection Section "ServerFlags" Option "blank time" "10" # 10 minutes Option "standby time" "20" Option "suspend time" "30" Option "off time" "60" ### Uncomment this Server flag if X should not change resolutions. ### This is useful if mode changing crashes / corrupts the X server # Option "DisableVidModeExtensions" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" # Change "XkbModel" to "macintosh_old" if you are using # the deprecated adb keycodes. Option "XkbModel" "pc105" Option "XkbLayout" "us" Option "XkbOptions" "compose:rwin" ### Uncomment this if your layout uses nodeadkeys #Option "XkbVariant" "nodeadkeys" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "CorePointer" Option "Protocol" "ImPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" EndSection Section "Monitor" Identifier "Monitor0" UseModes "Modes0" ModelName "Monitor Model" Option "DPMS" HorizSync 30-130 VertRefresh 50-60 EndSection Section "Modes" Identifier "Modes0" # Generated # D: 108.003 MHz, H: 63.983 kHz, V: 60.021 Hz Modeline "1280x1024" 108.003 1280 1408 1520 1688 1024 1028 1031 1066 -HSync -VSync EndSection Section "Device" Identifier "Card0" ### Available Driver options: Option "ColorTiling" "false" # True has trouble with latest xorg Option "BackingStore" "true" # Increases performance Option "EnablePageFlip" "true" # Increases performance #Option "SWcursor" "false" # Use Software Cursor #Option "NoAccel" "false" # Disable Hardware Acceleration #Option "AGPMode" "1" # Set AGP data transfer rate, DRI only #Option "AGPFastWrite" "false" # Use AGP Fast Write, DRI only Option "RenderAccel" "true" # Hardware acceleration #Option "DCCMode" "false" # Use querried modes from monitor #Option "MonitorLayout" "TMDS" # Enable this for Apple DVI LCDs ### See "man radeon" for additional options Option "UseFBDev" "False" Driver "radeon" BusID "PCI:240:16:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 8 Modes "1280x1024" EndSubSection SubSection "Display" Depth 16 Modes "1280x1024" EndSubSection SubSection "Display" Depth 24 Modes "1280x1024" EndSubSection EndSection Section "DRI" # Group 0 Mode 0666 EndSection
I updated world, dri still doesn't work, but with different error messages when glxinfo is executed: name of display: :0.0 X Error of failed request: GLXBadContext Major opcode of failed request: 144 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 17 Current serial number in output stream: 17
glxgears works now, but dri doesn't.
Yang, what kind of Radeon Card do you have? This is just to prove that 9600 don't freeze the machine like 9650 or 9800 do. Someone in the forum is also getting a freeze with modular X as I do when using radeon driver: http://forums.gentoo.org/viewtopic-t-449179.html
Well, I use ATI Radeon 9600PRO for G5, Which is the original one when I bought my G5. Actually I am the "xyz" in the gentoo ppc forum. With my Radeon 9800XT card the xorg-7.0 freezed, as I reported in gentoo ppc forum. I haven't tried 6.8 or 6.9 version on ppc64 64-bit with 9800XT card, but in a chroot 32-bit userland xorg-6.8.2 works with this card. Regards, Dehua
Markus: Brian D. Carlstrom from linuxppc-dev told me that the cvs version of xf86-video-ati driver could solve this problem. So I tried the cvs from freedesktop.org and it worked with 9800xt card. Could you please make, or ask somebody to make, an ebuild for the cvs of xf86-video-ati driver?
With 9600pro using mesa-6.5 and xf86-video-ati driver from cvs dri worked on ppc64(64-bit userland). The glxgears was around 1200fps, as compared to 320fps without direct rendering. I slao noticed render acceleration was disabled. But no luck for 9800 card concerning dri, I tried to use dri with my 9800xt, but it freezed X. Without dri glxgears performed about 320fps for both 9600 card and 9800 one in my system. Is there something wrong with my system?
I tried mesa-6.5-r1, and dri worked with my 9800XT. Glxgears was around 3400, much faster than 9600PRO in my system.
Now the dri works under xorg-x11-7.0, so try to close this bug.