tests: bind resource description before GetCopyableFootprints so clang-cl builds the fixture #3936
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3936"
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 triggered02 on 2026-12-03T13:44:43Z.
ID3D12Resource::GetDescreturnsD3D12_RESOURCE_DESCby value, sotook the address of a temporary. That is a Microsoft extension, and clang-cl rejects it outright:
Which means the documented clang-cl + xwin cross-compile in
docs/non-windows-hosts.mdcould not build thestartup_indirect_draw_indexedtest executable at all. MSVC accepts it, so Windows CI never saw it.Change: bind the description to a named local and pass
&desc— the minimal fix, and the pattern this file already uses elsewhere.Tree-wide check. A scan of
tests/andsrc/for any call taken by address (&…Get*()and other getters, regex(?<!&)&(?!&)\s*[A-Za-z_][\w.->:]*\s*\([^;\n]*\)) found this as the only genuine temporary-address site; every other hit returns a reference (own(),fence(),back(),front(),__uuidof) or is a bitwise&.Verified — Debian, clang-cl 19.1.7, xwin SDK 10.0.26100 splat,
main4567a71a:No
/W4 /WXworkaround was needed; the four remaining diagnostics are pre-existing-Wdeprecated-declarationswarnings.Not established: no MSVC host here, so the MSVC side is unchanged-by-inspection (it accepted the old form, and a named local is not a behaviour change). Windows CI is the check.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-12-03T13:44:57Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
fb53bccℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T13:59:33Z.
Review: APPROVED
Independently reviewed
fb53bcc1. The named D3D12_RESOURCE_DESC stays alive through GetCopyableFootprints. In a minimal harness using the actual SDK types and exact call, the Clang 20.1.8 frontend rejected the original expression with address-of-temporary (exit 1) and accepted the revision (exit 0). I also built the full startup_indirect_draw_indexed target in MSVC Debug and ranctest --preset dev --no-tests=error -j 1 -V -R '^startup_mesh86_present_(warp|hardware)$': 2/2 passed, including draw, skip and refusal. Windows 11 build 26300, debug layer enabled, WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656.