File: d3d12.rst

package info (click to toggle)
mesa 25.2.8-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 312,152 kB
  • sloc: ansic: 2,185,354; xml: 1,028,239; cpp: 512,236; python: 76,148; asm: 38,329; yacc: 12,198; lisp: 4,114; lex: 3,429; sh: 855; makefile: 237
file content (65 lines) | stat: -rw-r--r-- 1,721 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
D3D12
=====

Overview
--------

The D3D12 driver is a Gallium driver that emits API calls for Microsoft's
:abbr:`D3D12 (Direct3D 12)` API instead of targeting a specific GPU
architecture. This can be used to get full desktop OpenGL 3.3 support on
devices that only support D3D12.

Debugging
---------

There's a few tools that are useful for debugging D3D12, such as these
environment variables:

.. envvar:: D3D12_DEBUG

   Accepts the following comma-separated list of flags:

   ``verbose``
      Enable verbose output to stdout
   ``blit``
      Trace blit and copy resource calls
   ``experimental``
      Enable experimental shader models feature
   ``dxil``
      Dump DXIL during program compile
   ``disass``
      Dump disassambly of created DXIL shader
   ``res``
      Debug resources
   ``debuglayer``
      Enable `debug layer`_
   ``gpuvalidator``
      Enable `GPU validator`_

.. envvar:: DXIL_DEBUG

   Accepts the following comma-separated list of flags:

   ``verbose``
      Enable verbose output to stdout
   ``dump_blob``
      Write shader blobs
   ``trace``
      Trace instruction conversion
   ``dump_module``
      dump module tree to stderr

.. _debug layer: https://learn.microsoft.com/en-us/windows/win32/direct3d12/understanding-the-d3d12-debug-layer
.. _GPU validator: https://learn.microsoft.com/en-us/windows/win32/direct3d12/using-d3d12-debug-layer-gpu-based-validation

Utilities
---------

Environment variables that control the behavior of the D3D12 driver.

.. envvar:: MESA_D3D12_DEFAULT_ADAPTER_NAME

   Specifies a substring to search for when choosing a default adapter to
   run on. The first adapter matching the substring is chosen. The substring
   is not case sensitive.