D3D12 device creation fails on AMD Radeon RX 9070 XT (RDNA4): `ID3D12DeviceFactory::CreateDevice failed`, so Mesa d3d12/dzn fall back to llvmpipe
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 8/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
Línea de trabajo
Reproduce with the two commands in the report (vulkaninfo against dzn_icd.x86_64.json and glxinfo -B with GALLIUM_DRIVER=d3d12) and confirm the failure point at src/microsoft/vulkan/dzn_device.c:1155. Then read the dxgkrnl side behind the dxgkio_is_feature_enabled and dxgkio_query_adapter_info ioctls that return -22/-2 in dmesg, since adapter enumeration succeeds and only device creation fails inside the AMD UMD. Done looks like dzn and d3d12 exposing Microsoft Direct3D12 (AMD Radeon RX 9070 XT) instead of llvmpipe; this needs RDNA4 and WSL graphics-stack knowledge, so it is not a starter task.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Windows Version
Microsoft Windows 11 Pro 26H2, build 10.0.26300.9974
WSL Version
WSL version: 3.0.5.0 Kernel version: 6.18.58.1-1 WSLg version: 1.0.79 MSRDC version: 1.2.7391 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26300.9974
Are you using WSL 1, WSL 2, or WSLC?
- WSL 2
- WSL 1
- WSLC
Kernel Version
6.18.58.1-microsoft-standard-WSL2
Distro Version
Fedora Linux 45 (official FedoraLinux-45 WSL image), Mesa 26.2.7 (mesa-dri-drivers, mesa-vulkan-drivers 26.2.7-1.fc45)
Other Software
- GPU driver: AMD Radeon RX 9070 XT (PCI\VEN_1002&DEV_7550), driver 32.0.32015.16001 (dated 2026-11-10, the latest available)
- CPU: AMD Ryzen 7 9800X3D (iGPU disabled)
- Hardware-accelerated D3D12 and Vulkan both work normally on the Windows side (games run fine).
Repro Steps
- Fresh
wsl --install FedoraLinux-45, thensudo dnf install mesa-dri-drivers mesa-vulkan-drivers vulkan-tools glx-utils - Run
VK_DRIVER_FILES=/usr/share/vulkan/icd.d/dzn_icd.x86_64.json vulkaninfo --summary - Run
GALLIUM_DRIVER=d3d12 glxinfo -B
Expected Behavior
The dzn Vulkan driver and the d3d12 Gallium driver expose Microsoft Direct3D12 (AMD Radeon RX 9070 XT).
Actual Behavior
D3D12 device creation fails, and both APIs end up on llvmpipe only.
Vulkan (dzn):
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
Dropped Escape call with ulEscapeCode : 0x03007703
MESA: error: ID3D12DeviceFactory::CreateDevice failed
WARNING: [../src/microsoft/vulkan/dzn_device.c:1155] Code 0 : VK_ERROR_INITIALIZATION_FAILED
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs: Call to 'vkEnumeratePhysicalDevices' in ICD /usr/lib64/libvulkan_dzn.so failed with error code -3
OpenGL (d3d12):
Dropped Escape call with ulEscapeCode : 0x03007703
Dropped Escape call with ulEscapeCode : 0x03007703
glx: failed to create drisw screen
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Without overrides, glxinfo -B and vulkaninfo --summary report only llvmpipe (LLVM 23.1.5, 256 bits).
dmesg, repeated on every attempt:
misc dxg: dxgk: dxgkio_is_feature_enabled: Ioctl failed: -22
misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
Diagnostic Logs
What strace shows: libdxcore.so loads, /dev/dxg opens, libd3d12core.so loads, and the AMD user-mode driver loads from the driver store:
openat(AT_FDCWD, "/usr/lib/wsl/lib/libdxcore.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/dev/dxg", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/usr/lib/wsl/lib/libd3d12core.so", O_RDONLY|O_CLOEXEC) = 6
openat(AT_FDCWD, "/usr/lib/wsl/drivers/u0206030.inf_amd64_7ca820b1ce728070/B026778/amdxc64.so", O_RDONLY|O_CLOEXEC) = 6
After that, CreateDevice fails. So adapter enumeration and loading the user-mode driver both succeed, and the failure happens inside device creation in the AMD UMD / D3D12 layer.
Already ruled out:
- Library paths:
/usr/lib/wsl/libis in the ldconfig cache, andlibd3d12.so,libd3d12core.soandlibdxcore.soall resolve. - Adapter selection:
MESA_D3D12_DEFAULT_ADAPTER_NAME=AMDgives the same failure. - Indirect display adapter: The system also has a "Meta Virtual Monitor" indirect display adapter (ROOT\DISPLAY\0000). Disabling it, then
wsl --shutdownand retesting gives the identical failure and identical dmesg output. - WSL version: 3.0.5 is the latest release.
Possibly related: #41733 (RX 9070 XT, D3D12 VA-API exposes no decode profiles). That report also shows dropped AMD escape calls, which suggests a wider RDNA4 UMD ↔ dxgkrnl compatibility problem.
I'm happy to collect logs with collect-wsl-logs.ps1 or run any other diagnostics.
- Lenguaje dominante
- C++
- Estrellas
- 34.4k
- Forks
- 1.9k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 166
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/WSL
-
feature wsl2
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
microsoft/WSL#42306 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
microsoft/WSL#42114 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
feature kernel wsl2
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
microsoft/WSL#41107 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
feature kernel
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
microsoft/WSL#41054 · 9 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
feature GPU
Dificultad 1/5 1-3 horas Aptitud para principiantes 70/100
microsoft/WSL#13592 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/WSL
Issues similares
-
needs-format
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Niko1221/Strata#6251 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
[Bug]: NP 管理器文件编辑器里删除键无效Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
metasequoiaime/msime#11666 ·
Los mantenedores suelen responder en 1 día
-
DAE2 crashes on call.without.effects with a non ref.func expressionPosiblemente ocupada @stevenfontanella la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
WebAssembly/binaryen#9404 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
CodeZombie/goodluckOS#178 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
CVO-Org/immersive-cigs-rewrite#313 ·
Los mantenedores suelen responder en 1 día