[r300] Scrambled fonts (was: undefined symbol: __driUtilCreateScreen)

2005-07-26 Thread Sebastien Cevey
begin Ian Romanick quotation of Mon, Jul 25, 2005 at 07:28:17PM -0700:

Hi again,

 So, that's like taking the Diesel fuel only sticker off your gas tank
 to make it work with regular gas. :)  The name changed because the
 interface changed.  Use *all* DRI drivers *and* libGL.so from Mesa CVS.

Oh right, sorry :-)

Now I did install the libGL* Mesa drivers and checked with ldd that
they are indeed used.

r300 now seems to work:

==
# LIBGL_DEBUG=verbose glxinfo
libGL: XF86DRIGetClientDriverName: 4.0.1 r300 (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/r300_dri.so
drmOpenByBusid: Searching for BusID pci::00:10.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenByBusid: drmOpenMinor returns 5
drmOpenByBusid: drmGetBusid reports pci::00:10.0
libGL error: 
Can't open configuration file /etc/drirc: No such file or directory.
libGL error: 
Can't open configuration file /root/.drirc: No such file or directory.
*WARN_ONCE*
File r300_state.c'est function r300Enable line 456
TODO - double side stencil !
***
No ctx-FragmentProgram._Current!!
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
==

Although with a few warnings as above.  They also happen with
glxgears, but at least I get 10x more FPS than before!

==
$ glxgears
*WARN_ONCE*
File r300_state.c'est function r300Enable line 456
TODO - double side stencil !
***
No ctx-FragmentProgram._Current!!
*WARN_ONCE*
File r300_render.c'est function r300_get_num_verts line 188
user error: Need more than 2 vertices to draw primitive QS !
***
4829 frames in 5.0 seconds = 965.687 FPS
4815 frames in 5.0 seconds = 962.935 FPS
4792 frames in 5.0 seconds = 958.335 FPS
==

The problem is that Xorg is unusable because the fonts are scrambled
in the xterm (and other such terms).  All fonts are not, for instance
fonts appear correctly in Firefox, but not in the titlebar (fluxbox)
of the same program.  I guess it depends who handles the font
rendering..

I cannot find any error about that in the Xorg logs either.  Anyone
has seen this before?


Thank you!


PS: Does this belong to this ML or to dri-user?

-- 
Sébastien Cevey [EMAIL PROTECTED] | http://sirius.cine7.net/ | GPG: AEE9D6B9
Jabber: [EMAIL PROTECTED] | ICQ: 48895760 | MSN: [EMAIL PROTECTED]

 Emacs: It's a nice OS, but to compete with Linux or Windows it needs a better 
text editor. 
Alexander Duscheleit 


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [r300] Scrambled fonts

2005-07-26 Thread Mark Ferry
Sebastien Cevey wrote:
 The problem is that Xorg is unusable because the fonts are scrambled
  in the xterm (and other such terms).  All fonts are not, for
 instance fonts appear correctly in Firefox, but not in the titlebar
 (fluxbox) of the same program.  I guess it depends who handles the
 font rendering..
 
 I cannot find any error about that in the Xorg logs either
 
Keith Conger suggested the following xorg.conf device options which
solved the screwy font rendering for me:

Option XaaNoScanlineImageWriteRect
Option XaaNoScanlineCPUToScreenColorExpandFill .

I'm using the ati driver with the following device section:

Section Device
Identifier  Card0_r300
Driver  ati
BusID   PCI:0:16:0
Option UseFBDev   true  # [bool]
Option DMAForXV   off   # [bool]
Option XaaNoScanlineImageWriteRect
Option XaaNoScanlineCPUToScreenColorExpandFill
EndSection

 PS: Does this belong to this ML or to dri-user?
 
Probably dri-user...

ciao
  Mark

---
Powerbook5,2 - 1.25GHz 15 G4 Alubook, Radeon 9600 M10




___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [r300] Scrambled fonts

2005-07-26 Thread Vladimir Dergachev



On Tue, 26 Jul 2005, Mark Ferry wrote:



Section Device
Identifier  Card0_r300
Driver  ati
BusID   PCI:0:16:0
Option UseFBDev   true  # [bool]
Option DMAForXV   off   # [bool]

^
AFAIK, DMAForXv should work fine, at least for people with lowendian 
hardware.


best

Vladimir Dergachev


Option XaaNoScanlineImageWriteRect
Option XaaNoScanlineCPUToScreenColorExpandFill
EndSection


PS: Does this belong to this ML or to dri-user?


Probably dri-user...

ciao
 Mark

---
Powerbook5,2 - 1.25GHz 15 G4 Alubook, Radeon 9600 M10




___
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [r300] Scrambled fonts (was: undefined symbol: __driUtilCreateScreen)

2005-07-26 Thread Alex Deucher
On 7/26/05, Sebastien Cevey [EMAIL PROTECTED] wrote:
 begin Ian Romanick quotation of Mon, Jul 25, 2005 at 07:28:17PM -0700:
 
 Hi again,
 
  So, that's like taking the Diesel fuel only sticker off your gas tank
  to make it work with regular gas. :)  The name changed because the
  interface changed.  Use *all* DRI drivers *and* libGL.so from Mesa CVS.
 
 Oh right, sorry :-)
 
 Now I did install the libGL* Mesa drivers and checked with ldd that
 they are indeed used.
 
 r300 now seems to work:
 
 ==
 # LIBGL_DEBUG=verbose glxinfo
 libGL: XF86DRIGetClientDriverName: 4.0.1 r300 (screen 0)
 libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/r300_dri.so
 drmOpenByBusid: Searching for BusID pci::00:10.0
 drmOpenDevice: node name is /dev/dri/card0
 drmOpenDevice: open result is 5, (OK)
 drmOpenByBusid: drmOpenMinor returns 5
 drmOpenByBusid: drmGetBusid reports pci::00:10.0
 libGL error:
 Can't open configuration file /etc/drirc: No such file or directory.
 libGL error:
 Can't open configuration file /root/.drirc: No such file or directory.
 *WARN_ONCE*
 File r300_state.c'est function r300Enable line 456
 TODO - double side stencil !
 ***
 No ctx-FragmentProgram._Current!!
 name of display: :0.0
 display: :0  screen: 0
 direct rendering: Yes
 ==
 
 Although with a few warnings as above.  They also happen with
 glxgears, but at least I get 10x more FPS than before!
 
 ==
 $ glxgears
 *WARN_ONCE*
 File r300_state.c'est function r300Enable line 456
 TODO - double side stencil !
 ***
 No ctx-FragmentProgram._Current!!
 *WARN_ONCE*
 File r300_render.c'est function r300_get_num_verts line 188
 user error: Need more than 2 vertices to draw primitive QS !
 ***
 4829 frames in 5.0 seconds = 965.687 FPS
 4815 frames in 5.0 seconds = 962.935 FPS
 4792 frames in 5.0 seconds = 958.335 FPS
 ==
 
 The problem is that Xorg is unusable because the fonts are scrambled
 in the xterm (and other such terms).  All fonts are not, for instance
 fonts appear correctly in Firefox, but not in the titlebar (fluxbox)
 of the same program.  I guess it depends who handles the font
 rendering..
 
 I cannot find any error about that in the Xorg logs either.  Anyone
 has seen this before?
 
 
 Thank you!
 

try:
XaaNoScanlineImageWriteRect
XaaNoScanlineCPUToScreenColorExpandFill

via Dave Airlie's blog:
http://www.livejournal.com/users/airlied/

Alex

 
 PS: Does this belong to this ML or to dri-user?
 
 --
 Sébastien Cevey [EMAIL PROTECTED] | http://sirius.cine7.net/ | GPG: AEE9D6B9
 Jabber: [EMAIL PROTECTED] | ICQ: 48895760 | MSN: [EMAIL PROTECTED]
 
  Emacs: It's a nice OS, but to compete with Linux or Windows it needs a 
 better text editor. 
 Alexander Duscheleit
 



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [r300] Scrambled fonts

2005-07-26 Thread Alex Deucher
On 7/26/05, Vladimir Dergachev [EMAIL PROTECTED] wrote:
 
 
 On Tue, 26 Jul 2005, Mark Ferry wrote:
 
 
  Section Device
Identifier  Card0_r300
Driver  ati
BusID   PCI:0:16:0
Option UseFBDev   true  # [bool]
Option DMAForXV   off   # [bool]
  ^
 AFAIK, DMAForXv should work fine, at least for people with lowendian
 hardware.
 

Should work on bigendian too.  I think Michel worked on the patch on
PPC initially.

Alex

  best
 
  Vladimir Dergachev
 
Option XaaNoScanlineImageWriteRect
Option XaaNoScanlineCPUToScreenColorExpandFill
  EndSection
 
  PS: Does this belong to this ML or to dri-user?
 
  Probably dri-user...
 
  ciao
   Mark
 
  ---
  Powerbook5,2 - 1.25GHz 15 G4 Alubook, Radeon 9600 M10
 
 
 
 
  ___
  Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with 
  voicemail http://uk.messenger.yahoo.com
 
 
 
  ---
  SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
  from IBM. Find simple to follow Roadmaps, straightforward articles,
  informative Webcasts and more! Get everything you need to get up to
  speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
  --
  ___
  Dri-devel mailing list
  Dri-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/dri-devel
 
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 --
 ___
 Dri-devel mailing list
 Dri-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dri-devel



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [r300] Scrambled fonts

2005-07-26 Thread Vladimir Dergachev



On Tue, 26 Jul 2005, Alex Deucher wrote:


On 7/26/05, Vladimir Dergachev [EMAIL PROTECTED] wrote:



On Tue, 26 Jul 2005, Mark Ferry wrote:



Section Device
  Identifier  Card0_r300
  Driver  ati
  BusID   PCI:0:16:0
  Option UseFBDev   true  # [bool]
  Option DMAForXV   off   # [bool]

 ^
AFAIK, DMAForXv should work fine, at least for people with lowendian
hardware.



Should work on bigendian too.  I think Michel worked on the patch on
PPC initially.


There is an issue with R300 and later cards where a command used to to DMA
with proper conversion does not work that way anymore. This command is not
used in that way for 3d rendering, but is used for DMAForXv.

I am not certain whether this was fixed or not.

   best

   Vladimir Dergachev



Alex



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [r300] Scrambled fonts

2005-07-26 Thread Alex Deucher
On 7/26/05, Vladimir Dergachev [EMAIL PROTECTED] wrote:
 
 
 On Tue, 26 Jul 2005, Alex Deucher wrote:
 
  On 7/26/05, Vladimir Dergachev [EMAIL PROTECTED] wrote:
 
 
  On Tue, 26 Jul 2005, Mark Ferry wrote:
 
 
  Section Device
Identifier  Card0_r300
Driver  ati
BusID   PCI:0:16:0
Option UseFBDev   true  # [bool]
Option DMAForXV   off   # [bool]
   ^
  AFAIK, DMAForXv should work fine, at least for people with lowendian
  hardware.
 
 
  Should work on bigendian too.  I think Michel worked on the patch on
  PPC initially.
 
 There is an issue with R300 and later cards where a command used to to DMA
 with proper conversion does not work that way anymore. This command is not
 used in that way for 3d rendering, but is used for DMAForXv.
 
 I am not certain whether this was fixed or not.

Ah right!  forgot about that.  well, it should work for chips  r300 anyway.

Alex

 
 best
 
 Vladimir Dergachev
 
 
  Alex



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [r300] Scrambled fonts

2005-07-26 Thread Sebastien Cevey
begin Mark Ferry quotation of Tue, Jul 26, 2005 at 01:03:05PM +0100:

 Keith Conger suggested the following xorg.conf device options which
 solved the screwy font rendering for me:
 
 Option XaaNoScanlineImageWriteRect
 Option XaaNoScanlineCPUToScreenColorExpandFill .

This fixes it for me too, thanks!
I now get 1000 FPS in glxgears with my Radeon 9600 M10, and Cube seems
to be playable and so is TuxRacer.  Lucky I am at work, or I would
have to spend hours enjoying the new drivers! :-)

Composite rendering is still really slow and unusable though, but I
think I read that enabling it disables DRI?  mh, I'm don't really know
anything about it anyway, so I guess I'd better learn more about it
first.


 I'm using the ati driver with the following device section:

Mine is (no DMAForXV disabling):

Section Device
Identifier  Card0
Driver  radeon
VendorName  ATI Technologies Inc
BoardName   RV350 [Mobility Radeon 9600 M10]
BusID   PCI:0:16:0
Option  XaaNoScanlineImageWriteRect
Option  XaaNoScanlineCPUToScreenColorExpandFill
EndSection


Thanks for the replies!

-- 
Sébastien Cevey [EMAIL PROTECTED] | http://sirius.cine7.net/ | GPG: AEE9D6B9
Jabber: [EMAIL PROTECTED] | ICQ: 48895760 | MSN: [EMAIL PROTECTED]

 http://support.microsoft.com/?kbid=265230 



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [r300] Scrambled fonts

2005-07-26 Thread Alex Deucher
On 7/26/05, Sebastien Cevey [EMAIL PROTECTED] wrote:
 begin Mark Ferry quotation of Tue, Jul 26, 2005 at 01:03:05PM +0100:
 
  Keith Conger suggested the following xorg.conf device options which
  solved the screwy font rendering for me:
 
  Option XaaNoScanlineImageWriteRect
  Option XaaNoScanlineCPUToScreenColorExpandFill .
 
 This fixes it for me too, thanks!
 I now get 1000 FPS in glxgears with my Radeon 9600 M10, and Cube seems
 to be playable and so is TuxRacer.  Lucky I am at work, or I would
 have to spend hours enjoying the new drivers! :-)
 
 Composite rendering is still really slow and unusable though, but I
 think I read that enabling it disables DRI?  mh, I'm don't really know
 anything about it anyway, so I guess I'd better learn more about it
 first.
 

there is no render accel of any kind at the moment in the radeon
driver for r3/4xx chips.  The radeon driver will eventually get exa
support which should speed up composite, but until then it will be
slow.

Alex

 
  I'm using the ati driver with the following device section:
 
 Mine is (no DMAForXV disabling):
 
 Section Device
 Identifier  Card0
 Driver  radeon
 VendorName  ATI Technologies Inc
 BoardName   RV350 [Mobility Radeon 9600 M10]
 BusID   PCI:0:16:0
 Option  XaaNoScanlineImageWriteRect
 Option  XaaNoScanlineCPUToScreenColorExpandFill
 EndSection
 
 
 Thanks for the replies!
 
 --
 Sébastien Cevey [EMAIL PROTECTED] | http://sirius.cine7.net/ | GPG: AEE9D6B9
 Jabber: [EMAIL PROTECTED] | ICQ: 48895760 | MSN: [EMAIL PROTECTED]
 
  http://support.microsoft.com/?kbid=265230 
 
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opclick
 --
 ___
 Dri-devel mailing list
 Dri-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dri-devel



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel