Live data from Hacker News

DirectX is coming to the Windows Subsystem for Linux

devblogs.microsoft.com

41–50 of 548 posts

Re: DirectX is coming to the Windows Subsystem for Linux

#41
This is probably a better article directly from Microsoft: https://devblogs.microsoft.com/directx/directx-heart-linux/

OpenCL, DirectX and CUDA all seem to be available for GPU acceleration on WSL.

One other exciting thing is GPU accelerated GUI Linux apps on Windows. You may not need an X server anymore. I'm looking forward to using i3 on Windows.

Re: DirectX is coming to the Windows Subsystem for Linux

#45
post #15

This is the kind of driver that you get when you ignore all existing Linux code, then try to throw 15k LOC over the wall when its all done. Microsoft should really know better: this is not how you get your code upstreamed .

At least it is just 15K LOC!

Re: DirectX is coming to the Windows Subsystem for Linux

#46

FYI: This is the first draft of the Microsoft Virtual GPU (vGPU) driver. The driver exposes a paravirtualized GPU to user mode applications running in a virtual machine on a Windows host. This enables hardware acceleration in environment such as WSL (Windows Subsystem for Linux) where the Linux virtual machine is able to share the GPU with the Windows host. So this isn't actual "DirectX on Linux", just a driver for a…

This sounds like an attempt to win back ML segment from Linux to Windows. There are three letters back in my mind that sound like screaming, but too early to tell unfortunately.

In this case, this is the extend phase. So this is what they really mean about 'using Linux' and 'Microsoft .

Re: DirectX is coming to the Windows Subsystem for Linux

#47

FYI: This is the first draft of the Microsoft Virtual GPU (vGPU) driver. The driver exposes a paravirtualized GPU to user mode applications running in a virtual machine on a Windows host. This enables hardware acceleration in environment such as WSL (Windows Subsystem for Linux) where the Linux virtual machine is able to share the GPU with the Windows host. So this isn't actual "DirectX on Linux", just a driver for a…

This sounds like an attempt to win back ML segment from Linux to Windows. There are three letters back in my mind that sound like screaming, but too early to tell unfortunately.

How is it too early to tell?

It is an extension of the capability of WSL, giving you that sweet convenience of the DirectX API with your existing ML project. Of course, this extension makes your project incompatible with desktop Linux once adopted.

Re: DirectX is coming to the Windows Subsystem for Linux

#48
post #36
post #21

Is it really "DirectX on Linux," or more like "DirectX on Windows Subsystem for Linux?" Is it going to be useful for Linux in general, outside WSL?

No, this is only an extension of WSL, it will not impact desktop Linux.

Thank you. In the meantime I also noticed the following comment from Dave Airlie on LKML [1]:

> This is a driver that connects a binary blob interface in the Windows kernel drivers to a binary blob that you run inside a Linux guest. It's a binary transport between two binary pieces. [...] I can see why it might be nice to have this upstream, but I don't forsee any other Linux distributor ever enabling it or having to ship it, it's purely a WSL2 pipe.

1. https://lkml.org/lkml/2020/5/19/1288

Re: DirectX is coming to the Windows Subsystem for Linux

#49
post #6

...and extend. I'm sure this architecture was easier for MS but it opens the door to code that runs on WSL2 that doesn't run on regular Linux.

> it opens the door to code that runs on WSL2 that doesn't run on regular Linux

That's a strange complaint. Would you be happier if this was merged into the mainline kernel instead?

Re: DirectX is coming to the Windows Subsystem for Linux

#50
post #17

Earlier quoted context omitted.

This patch adds WDDM (Windows Display Driver Model) as a Linux kernel API. The implementation just forwards to the Windows kernel, but it seems to me like someone could implement it natively in Linux. Then Windows user mode graphics drivers would work natively in Linux without WSL, and DX12 too.

someone could implement it natively in Linux This is exactly what we don't want. There's already plenty of effort wasted on GBM vs. EGLStream so introducing a third API would just lower quality even more.

GPU vendors could expose their driver to the WDDM API in Linux, though.
Post reply on HN