[Linux] Question about Xorg PRIME offloading

snow_blindsnow_blind Join Date: 2012-03-05 Member: 148162Members
edited September 2013 in Technical Support
I've got a hybrid laptop (Intel/AMD muxless) and, using the proprietary Catalyst drivers I'm able to run NS2 without a hitch. However lately I've been investigating the option of using the open source driver stack (radeon+gallium3d) which offers native render off-loading to the discreet GPU via DRI_PRIME. However, when trying to run NS2 using this I get an error that says it's "unable to initialize the rendering device." Is anyone familiar with this, and/or might be able to provide some info / guidance on getting this working with PRIME?

Thanks!

Comments

  • ConfusedConfused Wait. What? Join Date: 2003-01-28 Member: 12904Members, Constellation, NS2 Playtester, Squad Five Blue, Subnautica Playtester
    So, the big thing here is going to be supported OpenGL version. You are going to need full OpenGL 3.1 support and shader language version 1.4. Basically, if you are getting that error you are either missing an extension or your shaders are not compiling.

    I looked briefly but I don't know what levels of support you can expect from gallium, my brief googling of it led no where.



  • snow_blindsnow_blind Join Date: 2012-03-05 Member: 148162Members
    edited September 2013
    Confused wrote: »
    So, the big thing here is going to be supported OpenGL version. You are going to need full OpenGL 3.1 support and shader language version 1.4.

    Okay, this makes some sense. I've been using the radeonsi driver (experimenting with the foss drivers on my laptop) and iirc it only supports OpenGL 3.0 at this point. Hoping that'll get upped to 3.1 (even 3.3, I think) soon.

    Thanks!

    EDIT: Ouch. It's actually even worse than that:

    └──╼ DRI_PRIME=1 glxinfo | grep -i opengl
    OpenGL vendor string: X.Org
    OpenGL renderer string: Gallium 0.4 on AMD PITCAIRN
    OpenGL version string: 2.1 Mesa 9.3.0-devel (git-6d29db7)
    OpenGL shading language version string: 1.30
    OpenGL extensions:
Sign In or Register to comment.