Announcement

Collapse
No announcement yet.

NVIDIA Developer Posts Auto PRIME Detection, Mesa USB Loader Support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NVIDIA Developer Posts Auto PRIME Detection, Mesa USB Loader Support

    Phoronix: NVIDIA Developer Posts Auto PRIME Detection, Mesa USB Loader Support

    NVIDIA Linux developer Thierry Reding has posted some Mesa patches this Christmas weekend...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Wait. You can enable PRIME via dri.conf file? HOW?

    Comment


    • #3
      The option is called "device_id" and takes the PCI id of the device you want to use. You may find examples if you gooole "device_id drirc".

      /edit:
      To get the value for this option run "udevadm info /dev/dri/card0 | grep ID_PATH_TAG" and replace "card0" with the card you want.
      Last edited by droste; 23 December 2016, 11:35 PM.

      Comment


      • #4
        Originally posted by phoronix View Post
        NVIDIA Linux developer Thierry Reding has posted some Mesa patches this Christmas weekend...
        Cool but why? NVidia doesn't use Mesa. Why contribute to it? Or was that done during his free time and NVidia has nothing to do with that?

        Comment


        • #5
          Originally posted by Awesomeness View Post
          Cool but why? NVidia doesn't use Mesa. Why contribute to it? Or was that done during his free time and NVidia has nothing to do with that?
          "split scanout/render devices" and "host1x bus" is more of a tegra thing. I.e. you have a simple 2D GPU that drives the display and another GPU that is a real nvidia GPU. They are more open to work on nouveau for ARM.

          E.g. look at this: https://github.com/Gnurou/mesa/commits/renderonly
          This "tegra" gallium driver + "renderonly" support in nouveau are used to automagically support this configuration.

          This patch here will hopefully make this a bit cleaner, see: https://github.com/Gnurou/xserver/is...ment-269046173

          Comment


          • #6
            Originally posted by lumks View Post
            Wait. You can enable PRIME via dri.conf file? HOW?
            The original mailing list entry gives an example https://lists.freedesktop.org/archiv...y/060131.html:

            Code:
            <driconf>
                <device driver="loader">
                    <application name="Glmark2" executable="glmark2-wayland">
                        <option name="device_id" value="pci-0000_01_00_0" />
                    </application>
                </device>
            </driconf>
            I made a simple GUI with pyqt, but it's a bit hacky: https://github.com/ChristophHaag/gpuchooser
            Last edited by haagch; 24 December 2016, 05:13 AM.

            Comment


            • #7
              Originally posted by Awesomeness View Post
              Cool but why? NVidia doesn't use Mesa. Why contribute to it? Or was that done during his free time and NVidia has nothing to do with that?
              it's only because optimus laptops for ppl who want to use the official driver, it's a good new

              Comment


              • #8
                Originally posted by Awesomeness View Post
                Cool but why? NVidia doesn't use Mesa.
                intel does on optimus laptops. which suck on linux for many years. and nvidia does for terga because nobody buys tegras

                Comment


                • #9
                  Originally posted by pal666 View Post
                  because nobody buys tegras
                  MFW

                  Comment


                  • #10
                    Originally posted by haagch View Post
                    MFW
                    i don't need your screen, i know there were tegra-based products
                    but they were unsuccessful, nobody buys tegras in quantity comparable to other gpus. so tegra is a fail.

                    Comment

                    Working...
                    X