Repository navigation
D3D-377: Match Close errors for forbidden bundle calls - #3378
maxhurst131 wants to merge 1 commit into
Conversation
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head merged with main f847748, MSVC 14.51):
Concern: none on the behaviour. #3255's |
|
Tested
No game files. AI-assisted. |
|
Windows + GPU check: AMD Radeon RX 9070 (RDNA4), Windows 11, MSVC Release, Vulkan SDK 1.4.363. Tested head c9cf018 merged onto AI-assisted (Claude Code); runs on my machine. |
|
Tested c9cf018 on Windows 11, RTX 5080 (driver 616.92) and AMD Radeon iGPU gfx1036 (driver 26.10.1): PR head only, not combined with #3255. No negative control run. AI-assisted. |
|
Tested c9cf018 merged onto main f847748 on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:
AI-assisted (Claude Code). |
|
Tested
So
Not checked: the combination with #3255; which error the host reports when a bad argument and a forbidden call are both recorded in one bundle; the host under the D3D12 debug layer; the rest of ctest. |
D3D-377. [Claim in the coordination issue]([{"number":3232,"title":"Coordinating who works on what (16)"}]
#3232 (comment))
Depends on: #3255
The PRs edit the same bundle-restrictions paragraph and COM tests. When they are combined, use the bundle-rejection helper for the additional restrictions from #3255.
What and why
The layer previously reported
E_INVALIDARGfor both invalid arguments and forbidden bundle calls. Record the appropriate HRESULT when recording first fails, soClose()can returnE_FAILfor a forbidden bundle call andE_INVALIDARGfor a bad argument. A synthetic comparison with WARP reproduced the difference usingSetPredication. Credit to @nightmoon1996 for the finding. D3D12 Close documentationTested
Windows 11 build 26300, MSVC 19.51, Vulkan SDK 1.4.363.0. RTX 5070 with NVIDIA driver 621.24 and Ryzen 7600X Radeon iGPU with AMD Vulkan driver 26.11.2 (Windows driver 32.0.21045.29003). Vulkan validation enabled for CTest.
E_FAILfor the forbidden bundle call andS_OKfor the direct list. The layer initially returnedE_INVALIDARGfor the bundle and matched both WARP results after the fix.ctest -C RelWithDebInfo -R '^d3d12_(com|gcl8|vulkan_device|bundle)$'passed on the RTX 5070 (4/4).ctest -C RelWithDebInfo -R '^d3d12_com$'passed on the Radeon iGPU (1/1).mainatf847748c. The PR's merge tree is identical to the tested tree.Checklist
AI-assisted (Codex).