gpu: test both D3D12 device struct-return argument orders #1099
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1106"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-24T01:07:21Z.
Change
Refs #874.
Extend the source-built device fixture to call a
GetCustomHeapPropertiesadapter in both argument orders. A third call seeds the stack return buffer with the live device's vtable pointer. The adapter identifies the device by its known address and forwards to the desktop SDK method. The fixture checks the return pointer, all five result words, and both guards. The adapter is linked into the fixture for this check.Scope: this is a test fixture, not a fix.
src/d3d12x_struct_return.{h,cpp}is linked only intod3d12x_device_check; nothing in thed3d12_xsshim calls it yet, and the shim has no struct-return handling today. The fixture pins down the expected result for both argument orders (including a return buffer that starts with the device's vtable pointer) so a later shim change can be checked against it.Verification
Tested
d15536fd(rebased onea0e838e) on Windows 10 22H219045.6456with a GTX 1060 6GB (32.0.15.6094) and in-box WARP (10.0.19041.5794). The D3D12 debug layer was enabled on both adapters.Each preset passed 6/6 with zero skips. With return-buffer-first handling removed, the matching test failed on both adapters at the return-buffer-first case. A second mutation that refused matching vtable words failed on both adapters at the seeded case while both unseeded calls passed. Both mutations left the four existing device tests passing in each preset. Restoring the adapter returned both runs to 6/6.
The mutation runs were on the pre-rebase commit
4dc16791(basea4e2e47c); main's newer commits overlap this PR only inCMakeLists.txtanddocs/experiments.md, with no conflicts, and the rebased commit passed 6/6 again in both presets.AI-assisted (Codex, reviewed with Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by Toons29 on 2026-11-24T02:02:51Z.
Tested
8d4767bcon an AMD Radeon RX 9070 (RDNA 4,1002:7550), driver32.0.32029.2010, Windows 11 build 26300,devpreset, debug layer unavailable: passAll 6 pass with no skips:
create,negativeand the newstruct_returnon both hardware and in-box WARP. The negative case reportsnull_device=E_POINTER unknown_iid=0x80004002 output=null.