tests: cover wrapper allocation failures for placed resources #2732
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2740"
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 RonLogic on 2026-11-26T04:52:42Z.
Change
Refs #2653 and #2656. Extend the existing
startup_wrap_allocationfixture to exercise both slot 133 resource creation paths. The test uses a committed synthetic page, a 256-byte buffer at a deliberately unaligned address, and a 4×4 RGBA8 texture. After the desktop resource is created, the existing injected wrapper failure must returnE_OUTOFMEMORYwith a null output. A retry at the same address must return a valid resource.Verification
Tested
056ea9f5on Windows26300.10075, MSVC 19.52 x64. The allocation fixture uses in-box WARP (10.0.26100.10068) and its registered debug-layer setting of off.Debug 2/2 and Release 5/5 passed without skips. The Release group included the memory-SRV diagnostics on WARP and RTX 4070 (
32.0.16.2124). The existing unarmed control reported both slot 133 failures withS_OKand a non-null output, proving the injected result is required.git diff --checkwas clean and the branch merged cleanly againsta766f287.The buffer case exercises the desktop stand-in for an unaligned placement. I used Codex to prepare the change and ran the verification locally.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T05:02:30Z.
Review: APPROVED
I independently ran the two Release startup_wrap_allocation WARP entries on
056ea9f5. Both passed, including the unarmed negative that reports a successful non-null output for the deliberately unaligned buffer and the placed texture. With injection both return E_OUTOFMEMORY and null, and retry at the original address succeeds. This is focused slot-133 coverage with no runtime change.