Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119148 - xorg-7.0 works on my ppc64 but dri doesn't
Summary: xorg-7.0 works on my ppc64 but dri doesn't
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-15 18:29 UTC by Yang Dehua
Modified: 2006-04-12 00:00 UTC (History)
0 users

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 Yang Dehua 2006-01-15 18:29:27 UTC
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.
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2006-02-03 23:19:47 UTC
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... )

Comment 2 Yang Dehua 2006-02-08 17:35:29 UTC
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
Comment 3 Yang Dehua 2006-02-16 04:15:33 UTC
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
Comment 4 Yang Dehua 2006-03-09 17:34:10 UTC
glxgears works now, but dri doesn't.
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2006-04-03 02:17:26 UTC
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
Comment 6 Yang Dehua 2006-04-03 03:08:16 UTC
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
Comment 7 Yang Dehua 2006-04-05 00:06:11 UTC
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?
Comment 8 Yang Dehua 2006-04-08 20:48:51 UTC
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?   
Comment 9 Yang Dehua 2006-04-11 23:57:12 UTC
I tried mesa-6.5-r1, and dri worked with my 9800XT. Glxgears was around 3400, much faster than 9600PRO in my system. 
Comment 10 Yang Dehua 2006-04-12 00:00:00 UTC
Now the dri works under xorg-x11-7.0, so try to close this bug.