Newsgroup: it.comp.os.linux.software
Titolo: DRI

Mi sono accorto (si vede che uso molto il 3D) che per glxinfo il direct 
rendering non è abilitato:
robyt:~# glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
però se guardo i log di xorg lui dice che trova tutto:
(II) RADEON(0): [dri] Visual configs initialized
(**) RADEON(0): Initializing fb layer
(**) RADEON(0): RADEONModeInit()
1024x768       94.50  1024 1096 1200 1376   768  771  775  809 (24,32) -H +V
(**) RADEON(0): dc=9450, of=37800, fd=168, pd=4
(**) RADEON(0): RADEONInit returns 0x82094bc
(**) RADEON(0): RADEONRestoreMode(0x82094bc)
(**) RADEON(0): RADEONRestoreMemMapRegisters() :
(**) RADEON(0):   MC_FB_LOCATION   : 0xefffe800
(**) RADEON(0):   MC_AGP_LOCATION  : 0xffffffc0
(**) RADEON(0):   Map Changed ! Applying ...
(**) RADEON(0):   Map applied, resetting engine ...
(**) RADEON(0): Updating display base addresses...
(**) RADEON(0): Memory map updated.
(**) RADEON(0): Programming CRTC1, offset: 0x00000000
(**) RADEON(0): Wrote: 0x0000000c 0x000200a8 0x00000000 (0x0000a700)
(**) RADEON(0): Wrote: rd=12, fd=168, pd=2
(**) RADEON(0): GRPH_BUFFER_CNTL from 20205c5c to 20155c5c
(**) RADEON(0): RADEONSaveScreen(0)
(**) RADEON(0): Initializing backing store
(==) RADEON(0): Backing store disabled
(**) RADEON(0): DRI Finishing init !
(II) RADEON(0): X context handle = 0x1
(II) RADEON(0): [drm] installed DRM signal handler
(II) RADEON(0): [DRI] installation complete
[..]
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
i moduli sono caricati correttamente:
radeon                119456  2
drm                    67732  3 radeon
intel_agp              20380  1
agpgart                25176  2 drm,intel_agp
dove posso guardare?
-- 
Roberto Tagliaferri-Linux user #30785 <-> r.tagliaferri@(forse)
tosnet.it
Anthony's Law of Force:
	Don't force it; get a larger hammer.

 dove posso guardare?
/etc/X11/xorg.conf

Gilmoth ha scritto:

gia fatto (ovviamente..): se avessi guardato il log postato ti saresti accorto 
che secondo lui il dri è abilitato.
Quake 2 funziona senza alcun problema e veloce, glxgears segnala circa 1200 fps
-- 
Roberto Tagliaferri-Linux user #30785 <-> r.tagliaferri@(forse)
tosnet.it
7:30, Channel 5: The Bionic Dog (Action/Adventure)
	The Bionic Dog drinks too much and kicks over the National
	Redwood Forest.

 1200 fps
Intendevo di guardare proprio il file /etc/X11/xorg.conf
A me glxinfo dice "direct rendering: Yes"
ma non ho nessuna voce relativa a dri nel log di xorg nè in 
/etc/X11/xorg.conf.
glxgears mi da 2420 fps
Però ho una scheda Nvidia.
Gilmoth

Gilmoth ha scritto:

Te la sei cercata.... :-)
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
	RgbPath      "/usr/share/X11/rgb"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/TTF"
	FontPath     "/usr/share/fonts/OTF"
	FontPath     "/usr/share/fonts/Type1"
	FontPath     "/usr/share/fonts/misc"
	FontPath     "/usr/share/fonts/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/100dpi"
fontpath "/root/.fonts/100dpi"
fontpath "/root/.fonts/75dpi"
fontpath "/root/.fonts/CID"
fontpath "/root/.fonts/cyrillic"
fontpath "/root/.fonts/encodings"
fontpath "/root/.fonts/local"
fontpath "/root/.fonts/misc"
fontpath "/root/.fonts/Speedo"
fontpath "/root/.fonts/TTF"
fontpath "/root/.fonts/Type1"
fontpath "/root/.fonts/util"
EndSection
Section "Module"
	Load  "glx"
	Load  "extmod"
	Load  "xtrap"
	Load  "record"
	Load  "GLcore"
	Load  "dbe"
	Load  "dri"
	Load  "freetype"
	Load  "type1"
  SubSection  "extmod"
       Option    "omit xfree86-dga"   # don't initialise the DGA extension
     EndSubSection
EndSection
Section "DRI"
     Mode 0666
  EndSection
Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option "XkbRules"   "xorg"
	Option "XkbModel"   "pc105"
     	Option "XkbLayout"  "it"
EndSection
Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
	#DisplaySize	  360   270	# mm
	Identifier   "Monitor0"
	VendorName   "VSC"
	ModelName    "GS790"
  ### Comment all HorizSync and VertRefresh values to use DDC:
	HorizSync    30.0 - 97.0
	VertRefresh  50.0 - 180.0
	Option	    "DPMS"
EndSection
Section "Device"
         ### Available Driver options are:-
         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
         ### [arg]: arg optional
         #Option     "NoAccel"            	# [<bool>]
         #Option     "SWcursor"           	# [<bool>]
         #Option     "Dac6Bit"            	# [<bool>]
         #Option     "Dac8Bit"            	# [<bool>]
         #Option     "BusType"            	# [<str>]
         #Option     "CPPIOMode"          	# [<bool>]
         #Option     "CPusecTimeout"      	# <i>
         #Option     "AGPMode"            	# <i>
         #Option     "AGPFastWrite"       	# [<bool>]
         #Option     "AGPSize"            	# <i>
         #Option     "GARTSize"           	# <i>
         #Option     "RingSize"           	# <i>
         #Option     "BufferSize"         	# <i>
         #Option     "EnableDepthMoves"   	# [<bool>]
         Option     "EnablePageFlip" "on"     	# [<bool>]
         #Option     "NoBackBuffer"       	# [<bool>]
         #Option     "DMAForXv"           	# [<bool>]
         #Option     "FBTexPercent"       	# <i>
         #Option     "DepthBits"          	# <i>
         #Option     "AccelDFS"           	# [<bool>]
         #Option     "PanelOff"           	# [<bool>]
         #Option     "DDCMode"            	# [<bool>]
         #Option     "MonitorLayout"      	# [<str>]
         #Option     "IgnoreEDID"         	# [<bool>]
         #Option     "UseFBDev"           	# [<bool>]
         #Option     "MergedFB"           	# [<bool>]
         #Option     "CRT2HSync"          	# [<str>]
         #Option     "CRT2VRefresh"       	# [<str>]
         #Option     "CRT2Position"       	# [<str>]
         #Option     "MetaModes"          	# [<str>]
         #Option     "MergedDPI"          	# [<str>]
         #Option     "MergedXinerama"     	# [<bool>]
         #Option     "MergedXineramaCRT2IsScreen0" 	# [<bool>]
         #Option     "MergedNonRectangular" 	# [<bool>]
         #Option     "MergedMouseRestriction" 	# [<bool>]
         #Option     "DisplayPriority"    	# [<str>]
         #Option     "PanelSize"          	# [<str>]
         #Option     "ForceMinDotClock"   	# <freq>
         #Option     "ColorTiling"        	# [<bool>]
         #Option     "VideoKey"           	# <i>
         #Option     "RageTheatreCrystal" 	# <i>
         #Option     "RageTheatreTunerPort" 	# <i>
         #Option     "RageTheatreCompositePort" 	# <i>
         #Option     "RageTheatreSVideoPort" 	# <i>
         #Option     "TunerType"          	# <i>
         #Option     "RageTheatreMicrocPath" 	# <str>
         #Option     "RageTheatreMicrocType" 	# <str>
         #Option     "RenderAccel"        	# [<bool>]
         #Option     "SubPixelOrder"      	# [<str>]
         #Option     "ShowCache"          	# [<bool>]
         #Option     "DynamicClocks"      	# [<bool>]
         #Option     "BIOSHotkeys"        	# [<bool>]
         #Option     "VGAAccess"          	# [<bool>]
         #Option     "ReverseDDC"         	# [<bool>]
         #Option     "LVDSProbePLL"       	# [<bool>]
         #Option     "AccelMethod"        	# <str>
         #Option     "ConstantDPI"        	# [<bool>]
	Identifier  "Card0"
	Driver      "radeon"
	VendorName  "ATI Technologies Inc"
	BoardName   "RV280 [Radeon 9200 PRO]"
	BusID       "PCI:1:0:0"
EndSection
Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	 Modes "1024x768"
	EndSubSection
SubSection "Display"
                 Viewport   0 0
                 Depth     32
          Modes "1024x768"
         EndSubSection
EndSection
-- 
Roberto Tagliaferri-Linux user #30785 <-> r.tagliaferri@(forse)
tosnet.it
It is against the law for a monster to enter the corporate limits of
Urbana, Illinois.

 
Ciao
Gilmoth

 
ci ho provato adesso, ho provato a abilitare EXA come architettura ma picche..
direct rendering: no
La cosa buffa è che viagga bene (ovvero quake 2 va come una scheggia..) mentre 
ricordo che quando avevo veri problemi di render 3d faceva si e no 1 fps.
-- 
Roberto Tagliaferri-Linux user #30785 <-> r.tagliaferri@(forse)
tosnet.it
The good die young -- because they see it's no use living if you've got
to be good.

 Però ho una scheda Nvidia.
I driver proprietari nvidia non usano il DRI ma il GLX.
Se abiliti a mano il modulo DRI la scheda non va proprio.
-- 
Tobe Bofh

Gilmoth ha scritto:

Giusto per fare 4 risate:
robyt:~# glxinfo |grep render
direct rendering: No
OpenGL renderer string: Mesa DRI R200 20060602 AGP 4x x86/MMX/SSE2 TCL
di solito nella seconda riga (in assenza di direct rendering) si dovrebbe 
trovare mesa indirect (o simile).. ma è attivo sto dri o no?
Mi viene qualche dubbio...
-- 
Roberto Tagliaferri-Linux user #30785 <-> r.tagliaferri@(forse)
tosnet.it
"Well, if you can't believe what you read in a comic book, what *___   can*
you believe?!"
		-- Bullwinkle J. Moose [Jay Ward]

 Mi sono accorto (si vede che uso molto il 3D) che per glxinfo il direct 
...
risolto.. sono uscite le mesa 7, direct rendering abilitato, mi funziona 
stellarium, mi funziona secondlife....
bastava attendere :-)
-- 
Roberto Tagliaferri-Linux user #30785 <-> r.tagliaferri@(forse)
tosnet.it
Don't go surfing in South Dakota for a while.