GithubHelp home page GithubHelp logo

Comments (6)

felixdoerre avatar felixdoerre commented on September 28, 2024

From where do you get the information that glvnd is required for primus? I haven't tested it extensively (yet) but:
PRIMUS_libGLa=/usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.0 PRIMUS_libGLd=/usr/lib/x86_64-linux-gnu/libGL.so.1 LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/primus glxgears
seems to work perfectly on my system. Here:

  • libGLX_nvidia.so.0 is the glvnd-library from nvidia
  • libGL.so.1 is the GLVND-dispatch version, that will use the mesa driver (based on the primary display being rendered by intel/mesa)
  • /usr/lib/x86_64-linux-gnu/primus contains the libGL.so.1 for the application to load from primus.

from primus.

liskin avatar liskin commented on September 28, 2024

Just a funny, possibly related remark: on my Debian system with primus and thus non-GLVND nvidia libraries installed, when I manually start secondary Xorg that renders everything using nvidia and displays through intel, and run glxgears, the GLVND-dispatch version of libGL.so.1 happily uses non-GLVND nvidia libraries and it works. Haven't tested this with anything more complex, though. But it seems to suggest that as far as glxgears is concerned, there isn't very much of a difference between the GLVND and non-GLVND version of nvidia libraries.

from primus.

felixdoerre avatar felixdoerre commented on September 28, 2024

@liskin How are you sure that the glxgears are using the nvidia libraries? What exactly are you running? When I run: optirun bash in one terminal (to force-start the secondary Xorg), and LD_DEBUG=libs glxgears in another terminal, I can pretty clearly see that these glxgears don't use nvidia.

from primus.

liskin avatar liskin commented on September 28, 2024

@felixdoerre When I say "secondary Xorg that renders everything using nvidia", I don't mean the kind of secondary headless Xorg that optirun/bumblebee starts. I'm talking about a real foreground Xorg that I interact with using my mouse and keyboard and that uses xrandr --setprovideroutputsource modesetting NVIDIA-0 to attach the intel outputs for displaying. I don't think it's possible to use intel GL with such a setup (except perhaps using xrandr --setprovideroffloadsink or DRI3, neither of which I enabled for this test). Also, glxinfo tells me I'm using the nvidia drivers.

from primus.

liskin avatar liskin commented on September 28, 2024

(The setup I'm describing is somewhat like https://wiki.archlinux.org/index.php/Nvidia-xrun, but tweaked a bit not to require root.)

from primus.

felixdoerre avatar felixdoerre commented on September 28, 2024

aah ok, thanks for the explanation.

from primus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.