ATI (rv350) + open-source driver + wine gaming issues

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Wintershade
Level 2
Level 2
Posts: 24
Joined: Fri Jun 13, 2008 6:23 am

ATI (rv350) + open-source driver + wine gaming issues

Post by Wintershade »

I seem to have a bit of a problem running some 3D accelerated games under wine, while using the open-source ATI Radeon driver. My graphics card is Radeon 9700, and the open-source drivers overall work much better than the proprietary fglrx.

The fglrx driver allows me (in most cases) to run games like Temple of Elemental Evil (particularily) or Morrowind normally, but I can't use it for everyday work because of it's constant issues which get fixed and then re-appear from version to version.

The problem with ATI open-source driver is that no Direct3D stuff is accelerated. For instance, the Temple of Elemental Evil runs fine with fglrx, but with open-source driver even the main menu is unplayably slow (say, 1-2 FPS at it's best).

My xorg.conf section for the open-source driver looks like this:

Code: Select all

Section "Device"
	Identifier  "** ATI Radeon (generic)               [radeon]"
	Driver		"radeon"
	VideoRam	65536
#	Option		"RenderAccel" "on"
	Option		"AGPMode" "4"
	Option		"ColorTiling" "on"
	Option		"AccelMethod" "XAA"
	Option		"EnablePageFlip" "on"
	Option		"AGPFastWrite" "False"
	Option		"XAANoOffscreenPixmaps" "True"
	Option		"BackingStore" "True"
	Option		"DynamicClocks" "on"
EndSection
glxinfo reports that direct rendering is OK, and glxgears show about 2800 FPS (with fglrx they never show over 2950 FPS, so I guess the driver should be ok, and the acceleration should work fine).

Can anyone help me get something more decent out of Wine?
Many thanks!

edit: typos
Gert van den Berg

ATI (rv350) + open-source driver + wine gaming issues

Post by Gert van den Berg »

On Mon, Aug 18, 2008 at 3:02 PM, Wintershade <[email protected]> wrote:
Hello everyone. I seem to have a bit of a problem running some 3D accelerated games under wine, while using the open-source ATI Radeon driver. My graphics card is Radeon 9700, and the open-source drivers overall work much better than the proprietary fglrx.

The fglrx driver allows me (in most cases) to run games like Temple of Elemental Evil (particularily) or Morrowind normally, but I can't use it for everyday work because of it's constant issues which get fixed and then re-appear from version to version.

The problem with ATI open-source driver is that no Direct3D stuff is accelerated. For instance, the Temple of Elemental Evil runs fine with fglrx, but with open-source driver even the main menu is unplayably slow (say, 1-2 FPS at it's best).

My xorg.conf section for the open-source driver looks like this:


Code:
Section "Device"
Identifier "** ATI Radeon (generic) [radeon]"
Driver "radeon"
I thought the radeon driver supports 3D only to the R200 series and
that the r300 driver is needed for the R300 - R500 cards.. (And
RadeonHD for >= R500) (I see you report that direct rendering shows OK
though...)

The open source Radeon drivers seem to be relatively undocumented,
with almost every source saying something else...

http://dri.freedesktop.org/wiki/R300_Portal
VideoRam 65536
# Option "RenderAccel" "on"
Option "AGPMode" "4"
Option "ColorTiling" "on"
Option "AccelMethod" "XXA"
Option "EnablePageFlip" "on"
Option "AGPFastWrite" "False"
Option "XAANoOffscreenPixmaps" "True"
Option "BackingStore" "True"
Option "DynamicClocks" "on"
EndSection



glxinfo reports that direct rendering is OK, and glxgears show about 2800 FPS (with fglrx they never show over 2950 FPS, so I guess the driver should be ok, and the acceleration should work fine).

Can anyone help me get something more decent out of Wine?
Many thanks!
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: ATI (rv350) + open-source driver + wine gaming issues

Post by vitamin »

Wintershade wrote:glxinfo reports that direct rendering is OK, and glxgears show about 2800 FPS
This is like saying that PC beeped when you turned it on, then it must be working.

OpenGL is a very complicated thing with 100s of different extensions and features. ATI open source driver does not provide enough extensions for Wine to support wide range of D3D features. So things like glxgears - will work. But things like V2.x shaders, FBOs, pbuffers don't.
Wintershade
Level 2
Level 2
Posts: 24
Joined: Fri Jun 13, 2008 6:23 am

Post by Wintershade »

Is there a way to get them to work?
Or any workaround?

(apart from installing fglrx, or getting an nVidia/Intel graphics card?)
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Wintershade wrote:Is there a way to get them to work?
Or any workaround?

(apart from installing fglrx, or getting an nVidia/Intel graphics card?)
Yeah - start codding. That is why they are open source - so anyone can participate.
Wintershade
Level 2
Level 2
Posts: 24
Joined: Fri Jun 13, 2008 6:23 am

Post by Wintershade »

hmmm.
would the fglrx source code do any good here?
I mean, I haven't even taken a glance at the source code of either - are they related in any way? at least language?
jeffz
Level 5
Level 5
Posts: 345
Joined: Thu Mar 13, 2008 10:03 pm

Post by jeffz »

Wintershade wrote:hmmm.
would the fglrx source code do any good here?
I mean, I haven't even taken a glance at the source code of either - are they related in any way? at least language?
fglrx is closed source, even if we had it, it probably wouldn't be easy to fix, since ati/amd would have done that if it were.

the simplest solution is to stick to nvidia if you want some level of consistency
Wintershade
Level 2
Level 2
Posts: 24
Joined: Fri Jun 13, 2008 6:23 am

Post by Wintershade »

jeffz wrote:fglrx is closed source
hasn't AMD put fglrx in open-source recently?
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

Wintershade wrote:
jeffz wrote:fglrx is closed source
hasn't AMD put fglrx in open-source recently?
just to clarify:
Wikipedia may be your best friend after google wrote:fglrx is the name of the Linux display driver used for ATI Radeon and ATI FireGL family video adapters and stands for "FireGL and Radeon for X". It contains free open source as well as proprietary and closed source parts. For proper Direct Rendering Infrastructure (DRI) support, the kernel source code for the currently running kernel must be installed and compiled. The driver can work without the kernel module, but DRI will not be available.
Wintershade
Level 2
Level 2
Posts: 24
Joined: Fri Jun 13, 2008 6:23 am

Post by Wintershade »

Oh. I see.

Any chance that the ATI/AMD driver will become completely open-source, as it was announced some time ago? (not sure whether it was officially, though)
Daniel Kasak

ATI (rv350) + open-source driver + wine gaming issues

Post by Daniel Kasak »

On Tue, 2008-08-19 at 18:52 -0500, Wintershade wrote:

Oh. I see.

Any chance that the ATI/AMD driver will become completely open-source, as it was announced some time ago? (not sure whether it was officially, though)
This is highly unlikely. ATI / AMD don't own all the intellectual
property in their closed-source driver. However I read in the Xorg
mailing list that they *have* started paying developers to work on the
open-source drivers ( as Intel are ).


Daniel Kasak / DNA
Application Developer
T: +61.2.8968.4056 / F:
+61.2.9904.5055
[email protected]
24/7 Real Media
15-19 Parraween Street
Cremorne, NSW 2090
Australia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-us ... chment.htm
Wintershade
Level 2
Level 2
Posts: 24
Joined: Fri Jun 13, 2008 6:23 am

Re: ATI (rv350) + open-source driver + wine gaming issues

Post by Wintershade »

Daniel Kasak wrote:they *have* started paying developers to work on the
open-source drivers ( as Intel are )
...hence the sudden increase in performance in the last month :D
anyone
Newbie
Newbie
Posts: 4
Joined: Tue Jun 17, 2008 6:19 am

Post by anyone »

For clarification AMD's open source strategy: AMD is not open-sourcing its fglrx driver, because (just like jorl17 pointed out) it has too much third party code. But AMD has hired Novell to write the radeonhd driver, which is an open source driver for the r500 series and newer. They have also released lots of documentation on the r500 and r600 series, and will release more when it has been cleared of third party IP. These documents help the development of both radeonhd and radeon driver (which is for chipsets r500/r600 (don't remember which) and older).
This is everything I remember on the topic, I hope I got it right.
For people interested, here are the newest news on the documentation releases:
http://www.phoronix.com/scan.php?page=a ... soon&num=1
Both drivers have a long way to go, though.
Gert van den Berg

ATI (rv350) + open-source driver + wine gaming issues

Post by Gert van den Berg »

On Wed, Aug 20, 2008 at 1:52 AM, Wintershade <[email protected]> wrote:
Oh. I see.

Any chance that the ATI/AMD driver will become completely open-source, as it was announced some time ago? (not sure whether it was officially, though)
AMD released the specs needed to develop an open source driver. It is
being used for the radeonhd driver.

The man page: (for an unknown version) http://linux.die.net/man/4/radeonhd

Official page: http://www.x.org/wiki/radeonhd

The gentoo wiki has some potentially useful info: (even for other distros)
http://gentoo-wiki.com/HOWTO_DRI_with_A ... ce_Drivers (this is
probably more relevant for the RV350... Although it seem that your
distro has the r300 driver compiled in if direct rendering seem ok...)
http://gentoo-wiki.com/RadeonHD
...hence the sudden increase in performance in the last month :D
I think that AMD/ATI is mostly supporting (at least providing
documentation for) the radeonhd driver...

The documentation for the R3xx series is relatively limited:
http://developer.amd.com/documentation/ ... x#open_gpu

(I see anyone it up in the time between me writing the reply and
actually sending it...)

Gert
fake

ATI (rv350) + open-source driver + wine gaming issues

Post by fake »

In some games I saw an option to use opengl instead of directx output.

It is also worth trying "AccelMethod" "EXA" (this is the method which is
better supported with the open-source driver) and removing options like
"BackingStore" "DynamicClocks" "VideoRam" and in that case
"XAANoOffscreenPixmaps" of course.
The defaults are usually fine. I have none of these set - just the driver
and AccelMethod.

But then again - I don't have the games you have...

Look through the file /var/log/Xorg.0.log for warnings and such...

There is a link for it

http://www.wineclubdirectory.net Wine Club


--
View this message in context: http://www.nabble.com/ATI-%28rv350%29-% ... 63663.html
Sent from the Wine - Users mailing list archive at Nabble.com.
Locked