Repository navigation
Recompiler: enable D3D12 debug layer before device creation in GPU test runner - #2150
saurabhbhoir456 wants to merge 1 commit into
Conversation
…st runner Fixes xcl-dev#2016: XCL_D3D12_DEBUG=1 removes the GPU test runner's device once a test starts the D3D12.X backend. The GPU test runner creates its D3D12 device in runner::init(), but the debug layer was being enabled in the D3D12.X backend after the device already existed. The debug layer must be enabled before any device is created. Enable the debug layer in runner::init() when XCL_D3D12_DEBUG is set, before adapter selection and device creation. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
A run under Wine on Linux with vkd3d-proton as the host D3D12. vkd3d-proton has no debug layer, and the GPU is lost in this group with or without Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
It fixes #2016's repro on NVIDIA. But with the debug layer now on the runner's device from the start, the whole Tested (exact head
On this PR, with
So the device is no longer removed, and the debug layer now reaches tests that used to skip, which exposes more problems. The issue's "23 failures" become an abort plus a new refused pipeline. Not tested: AMD, a title (no smoke run here), which debug-layer message the refused pipeline gets. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
Fixes #2016: XCL_D3D12_DEBUG=1 removes the GPU test runner's device once a test starts the D3D12.X backend.
The GPU test runner creates its D3D12 device in runner::init(), but the debug layer was being enabled in the D3D12.X backend after the device already existed. The debug layer must be enabled before any device is created.
Enable the debug layer in runner::init() when XCL_D3D12_DEBUG is set, before adapter selection and device creation.
Tested
AI use