[Bug 31934] New: fglrx returns wrong values for GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB and GL_MAX_TEXTURE_UNIFORM_COMPONENTS_ARB

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Oct 10 03:42:01 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=31934

             Bug #: 31934
           Summary: fglrx returns wrong values for
                    GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB and
                    GL_MAX_TEXTURE_UNIFORM_COMPONENTS_ARB
           Product: Wine
           Version: 1.5.14
          Platform: x86-64
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: directx-d3d
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: orion at parsed.net
    Classification: Unclassified


Created attachment 42060
  --> http://bugs.winehq.org/attachment.cgi?id=42060
add fglrx quirk

After much digging, I have found what appears to be a long-standing bug with
fglrx drivers.
Discussion from 2009:
http://phoronix.com/forums/showthread.php?15108-Catalyst-9-1-is-out/page11
http://irclogs.ubuntu.com/2012/06/05/%23ubuntu-x.html
Upstream: http://ati.cchtml.com/show_bug.cgi?id=528

fglrx reports a value of 1024 for GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB and
GL_MAX_TEXTURE_UNIFORM_COMPONENTS_ARB for any application named "wine" but will
report the correct value for other applications. (I do not know why)

As a result, certain graphical applications (e.g. Guild Wars 2) report "The
hardware does not support enough uniform components to run this shader, it may
not render correctly." and then run at a reduced framerate.


The attached patch adds a WINED3D_QUIRK to set the correct value on certain
families of Radeon HD video cards.

My research has found that the corrected value of 16384 should be correct on
any Radeon dx10 cards from HD2xxx through HD6xxx. (With HD7xxx being a
redesigned card, it actually only reports 1024 via glxinfo, and should not need
this)


Results: Higher framerates, ability to use more advanced GPU features in game
options, and lower GPU temperatures (!).
(Tested with a Radeon HD 6950, linux 3.2.0-31, fglrx 8.980, wine 1.5.14)

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list