Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Tips for Radeon OSS drivers

  1. #1
    Join Date
    Jun 2009
    Posts
    1,118

    Default Tips for Radeon OSS drivers

    well guys if you want to squezee a bit more fps from your nicely done OSS driver you can use this flags at compilation time.

    export CFLAGS="-O3 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing -fPIC -march=native -mfpmath=sse -msse2 -msseregparm -maccumulate-outgoing-args -m64 "

    export CXXFLAGS="-O3 -Wall -fno-strict-aliasing -fPIC -march=native -mfpmath=sse -msse2 -msseregparm -maccumulate-outgoing-args -m64 -fprefetch-loop-arrays"

    it worked fine for me in the DDX, Mesa, DRM. ubuntu lucid user careful since latest gcc update seems to break the compiler in mesa/gallium/auxiliary when using -fprefetch-loop-arrays, if you encounter this bug just remove that flag or compile your own gcc 4.5

    have fun

  2. #2
    Join Date
    Nov 2006
    Posts
    74

    Default

    Does this require compiling everything (mesa, drm, driver, etc) too?

    I tried it by compiling mesa with the r300g driver as described in the Radeon Gallium on Ubuntu thread.

    glxgears shows a blank window and Urban Terror shows a garbled screen.

  3. #3
    Join Date
    Jun 2009
    Posts
    1,118

    Default

    Quote Originally Posted by rob2687 View Post
    Does this require compiling everything (mesa, drm, driver, etc) too?

    I tried it by compiling mesa with the r300g driver as described in the Radeon Gallium on Ubuntu thread.

    glxgears shows a blank window and Urban Terror shows a garbled screen.
    well compiling only mesa works too, but remember radeon gallium dont support cards without vertex shader like the one in the laptops for example, at least for now. and i heard that only r500 series get gl 2.1 working properly for now. so stick for mesa regular driver for now

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    983

    Default

    This would probably be a lot more compelling with benchmarks proving an actual performance increase...

  5. #5
    Join Date
    Dec 2008
    Posts
    985

    Default

    Quote Originally Posted by whizse View Post
    This would probably be a lot more compelling with benchmarks proving an actual performance increase...
    Who needs benchmarks anyway. I just tried it and everything 'feels' a lot snappier. Nah, just kidding . You're right; if no benchmarks then not interested.

  6. #6
    Join Date
    Nov 2006
    Posts
    74

    Default

    I compiled xf86-video-ati git and here's some quick benchmarks.


    No extra flags

    840 frames 18.1 seconds 46.4 fps 6.0/21.6/86.0/8.6 ms
    840 frames 17.8 seconds 47.2 fps 5.0/21.2/119.0/9.6 ms
    840 frames 17.3 seconds 48.5 fps 7.0/20.6/88.0/8.3 ms
    840 frames 17.5 seconds 48.0 fps 6.0/20.8/144.0/8.9 ms
    840 frames 17.9 seconds 47.0 fps 6.0/21.3/66.0/8.1 ms

    avg fps 47.42


    Optional flags

    840 frames 18.2 seconds 46.2 fps 6.0/21.7/105.0/9.0 ms
    840 frames 18.0 seconds 46.6 fps 5.0/21.4/84.0/8.6 ms
    840 frames 18.4 seconds 45.7 fps 6.0/21.9/95.0/8.8 ms
    840 frames 18.5 seconds 45.3 fps 6.0/22.1/75.0/8.9 ms
    840 frames 18.6 seconds 45.1 fps 6.0/22.2/138.0/9.6 ms

    avg fps 45.78

  7. #7
    Join Date
    Nov 2006
    Posts
    74

    Default

    That's in OpenArena btw. The std=c99 flag gives an error during compile so I removed that flag.

  8. #8
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    1,578

    Default

    I'd recommend against -std=c99, use -std=gnu99 instead. Neither affects performance but c99 is strict C99 and missing extensions.

  9. #9
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    3,788

    Default

    I loled :P It seems the -funroll-loops madness escaped Gentoo and is now in the wild

  10. #10
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    1,578

    Default

    Quote Originally Posted by RealNC View Post
    I loled :P It seems the -funroll-loops madness escaped Gentoo and is now in the wild
    Yeah, scary, isn't it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •