Results 1 to 8 of 8

Thread: Early testers with r300-r500 GPUs wanted

  1. #1
    Join Date
    Apr 2009
    Posts
    6

    Default Early testers with r300-r500 GPUs wanted

    Hi,

    today I've pushed preliminary support for ARB_occlusion_query extension.
    It's based on mesa radeon-rewrite branch. With this extension enabled r300 driver advertises GL 1.5. Yupi!

    Currently I've tested it only on my RV535 (X1650) without KMS. Everything seems to be working. Unfortunately ARB_oq for SW TCL is broken now, and proper implementation will take some time. It also probably won't work with KMS enabled.

    Besides some conformance testing apps I've tested it under sauerbraten game - it gives nice performance boost (especially on bigger maps), so there is an extra motivation for you to test - it can make your favorite game playable

    Please test, and post your results (tested apps, performance boosts/regressions).

    You can find the code here: http://cgit.freedesktop.org/~osiris/mesa/ (occlusion-query branch)

  2. #2

    Default

    Here is a quick guide:

    • you need the 2.6.30 or later kernel (or else Occlusion Query will be disabled).
      Ubuntu 9.04 users: download (just the linux-image-* for your architecture), install (with sudo dpkg -i) and boot the latest 2.6.30.x kernel from: http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=M;O=D
    • make sure you have the development environment to build mesa. Ubuntu 9.04 users:
      Code:
      sudo apt-get build-dep mesa; sudo apt-get install git-core
    • then:
      Code:
      cd ~
      git clone git://anongit.freedesktop.org/mesa/mesa
      cd mesa
      ./autogen.sh --disable-gallium --with-dri-drivers="swrast,r300"
      make
      export LIBGL_DRIVERS_DIR=~/mesa/lib


    Test on a RV530 (313MHz GPU - 300 MHz memory) with an Intel Core Duo T2600 @ 2.16Ghz:

    • arbocclude demo from mesa-osiris/progs/demos works fine;
    • sauerbraten also works fine but it's slower (with OQ disabled ~85fps, with OQ enabled ~79fps).


    EDIT:
    As discussed on IRC performance improvement is related to CPU and GPU clock ratio. Downclocking my CPU to 1GHz with sauerbraten gives the OQ version better performance (~65 fps) than without OQ (~47fps), at least with sauerbraten and when not using KMS. OQ improves performance only with a "fast" GPU and a "slow" CPU.

    EDIT 2:
    Occlusion query support was merged in mesa master in 2009-08-15 and will be included in mesa 7.6.
    Last edited by oibaf; 08-18-2009 at 10:52 AM.

  3. #3
    Join Date
    May 2008
    Posts
    343

    Default

    oibaf, might want to prepend: sudo apt-get build-dep mesa; sudo apt-get install git-core

  4. #4

    Default

    Quote Originally Posted by tormod View Post
    oibaf, might want to prepend: sudo apt-get build-dep mesa; sudo apt-get install git-core
    Done, thanks.

  5. #5
    Join Date
    Feb 2009
    Location
    France
    Posts
    291

    Default

    Hi,

    I've experienced a performance drop using OQ, I tested it with an XPress 200M.
    I tried open arena and tremulous. With tremulous, the drop was about 50%.

    I also would like to thank you for your amazing work on the r300 serie !

  6. #6
    Join Date
    Oct 2007
    Location
    Toronto-ish
    Posts
    7,434

    Default

    Osiris was working with another tester a day or two ago on IRC... it seems that OQ gives a performance boost if you have a slow CPU and a fast GPU, but actually slows things down if you have a fast CPU and slow GPU (because the CPU can do the calculations in less time than the GPU).

    I think the consensus was to add an option to enable/disable OQ. Not sure if it is possible to speed up OQ on the GPU.

  7. #7
    Join Date
    Jan 2008
    Posts
    298

    Default

    Quote Originally Posted by bridgman View Post
    it seems that OQ gives a performance boost if you have a slow CPU and a fast GPU, but actually slows things down if you have a fast CPU and slow GPU (because the CPU can do the calculations in less time than the GPU).
    Sounds like this might be interesting for me -- Radeon 9800 Pro with an 800MHz DEC Alpha. Or is a 9800 considered slow now?

  8. #8
    Join Date
    Oct 2007
    Location
    Toronto-ish
    Posts
    7,434

    Default

    I'm pretty sure a 9800 would still count as "fast" in this case; it should be ~6x the performance of an Xpress200 anyways.

Posting Permissions

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