Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,095
    • Issues 3,095
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1,003
    • Merge requests 1,003
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • MesaMesa
  • mesamesa
  • Merge requests
  • !7937

Initial D3D12 support in WSL

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Jesse Natalie requested to merge jenatali/mesa:d3d12-wsl into master Dec 05, 2020
  • Overview 115
  • Commits 17
  • Pipelines 37
  • Changes 42

This MR has a few things, which I'm happy to split and land separately if people would like:

  • Adds a wrap for the D3D headers, which are newly published on GitHub under MIT license: https://github.com/microsoft/DirectX-Headers. This is useful both on Windows (we don't rely on having up-to-date headers in the Windows SDK) and for WSL.
  • Adds build support for the D3D code in Linux. For the most part this is just mucking with some includes, but a few things need to be substantially different, such as fence synchronization.
  • Adds d3d12 as a software driver option for GALLIUM_DRIVER similar to zink.

This is the first steps towards #3835 (closed).

Eventually, we'd like to build a system for automatically selecting the d3d12 driver if /dev/dxg is present, but that likely requires some X/Wayland work to be able to marshal the contents. Simply using the software driver path should be good enough for now. This MR originally went pretty far down that rabbit hole, but I've cut it back for now to give us something simpler and more functional to merge sooner.

/cc @kusma

Edited Dec 08, 2020 by Jesse Natalie
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: d3d12-wsl