Giter Club home page Giter Club logo

Comments (11)

sileshn avatar sileshn commented on August 11, 2024

https://github.com/microsoft/wslg#opengl-accelerated-rendering-in-wslg

https://developer.nvidia.com/cuda/wsl

whats thw output of glxinfo | grep "OpenGL" ?

from manjarowsl2.

Speak2Erase avatar Speak2Erase commented on August 11, 2024
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (NVIDIA GeForce GTX 1080 Ti)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 23.0.2
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.2 (Compatibility Profile) Mesa 23.0.2
OpenGL shading language version string: 4.20
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 23.0.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

from manjarowsl2.

sileshn avatar sileshn commented on August 11, 2024

You are using the correct D3D12 driver. Only thing left to check is your Nvidia driver version. It has to be 526.47 and above.

https://devblogs.microsoft.com/commandline/d3d12-gpu-video-acceleration-in-the-windows-subsystem-for-linux-now-available/

from manjarowsl2.

Speak2Erase avatar Speak2Erase commented on August 11, 2024

I double checked, and my Nvidia driver is 531.79.
I created an Ubuntu instance and followed the guide you linked, and it failed here:

lily@void:~$ sudo vainfo --display drm --device /dev/dri/card0
[sudo] password for lily:
libva info: VA-API version 1.14.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit

Maybe whatever is causing this is the problem?

from manjarowsl2.

sileshn avatar sileshn commented on August 11, 2024

Installed mesa-va-drivers?

For manjaro, follow steps here for your graphics card. Also install libva-utils. Then see if the situation gets better.

Screenshot 2023-05-03 075501

Both bother about my fps values. I have a crappy GPU.

from manjarowsl2.

sileshn avatar sileshn commented on August 11, 2024

https://github.com/microsoft/wslg/issues?q=is%3Aissue+is%3Aopen+d3d12+

from manjarowsl2.

Speak2Erase avatar Speak2Erase commented on August 11, 2024

I'm getting this now: (this is in manjaro)

[lily@void ~]$ vainfo
Trying display: wayland
libva error: /usr/lib/dri/d3d12_drv_video.so init failed
vaInitialize failed with error code 18 (invalid parameter),exit

If I try with --display drm I get this:

[lily@void ~]$ vainfo --display drm --device /dev/dri/card0
Trying display: drm
Failed to open the given device!

from manjarowsl2.

sileshn avatar sileshn commented on August 11, 2024

Use sudo

from manjarowsl2.

Speak2Erase avatar Speak2Erase commented on August 11, 2024

Yep that worked, I'm getting this now:

Trying display: drm
Xlib:  extension "DRI2" missing on display ":0".
vainfo: VA-API version: 1.18 (libva 2.17.1)
vainfo: Driver version: Mesa Gallium driver 23.0.2 for D3D12 (NVIDIA GeForce GTX 1080 Ti)
vainfo: Supported profile and entrypoints
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc

Is this good?

from manjarowsl2.

sileshn avatar sileshn commented on August 11, 2024

After looking into the issues on the wslg github page that I linked earlier, it seems that software rendering using llvmpipe is still faster. Why I don't know. You'll have to google this and find out more as I am out of ideas why it doesn't work as expected.

from manjarowsl2.

Speak2Erase avatar Speak2Erase commented on August 11, 2024

Alright, thanks for your help!

from manjarowsl2.

Related Issues (12)

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.