docs: name two Windows environment traps in the build notes #3540

Manually merged
github merged 1 commit from github-bot/gh-3538 into gh-pr/3538/base 2026-11-30 09:03:59 +00:00 AGit
Owner

@⁠KelboLive on GitHub · 2026-11-30 02:32 UTC · original
KelboLive:docs/windows-environment-gotchas → main · +2 −0 · 1 files · 1 commits · merged 2026-11-30 09:02 UTC

Change

Two entries in the existing Windows build notes list, each one a trap that costs a contributor time
because the failure looks like a test bug rather than an environment one:

  • Cached SPIR-V tool paths. find_program takes its hints from <repo>/out/tools/spirv/bin and
    $env:VULKAN_SDK\Bin before PATH, and CMake caches the result, so a tree configured on a host with a
    Vulkan SDK keeps that SDK's spirv-cross after tools/setup-spirv-tools.ps1 has built the pinned one.
    The spirv_minlod_* tests then keep skipping with a message that says the tool lacks MinLod support.
  • Injected D3D overlays. A process-wide injector that loads dxgi.dll makes xmem_shim_exports
    report a failure against a correct xmem.dll, and can stall startup_indirect_mesh_request_hardware.
    Phrased without naming a specific tool, per the note on #3513.

Both follow the section's existing shape: symptom, cause, what to do, and how it was measured.

Verification

python -B tests/docs_links_check.py
# Self-test passed. Checked 179 Markdown files and 718 links.

python -B tests/bidi_controls_check.py
# Self-test passed. Checked 2684 tracked source, script and build/CI files: no bidirectional controls.

The SPIR-V claim was measured on this host rather than inferred from CMakeLists.txt, by running the same
minlod driver against both tools with Vulkan SDK 1.4.363.0 present:

Vulkan SDK 1.4.363.0  Bin/spirv-cross.exe
  SPIRV-Cross threw an exception: MinLod texture operand not supported in HLSL.
  skip: SPIRV-Cross lacks MinLod support; run tools/setup-spirv-tools.ps1
  exit 77

out/tools/spirv/bin/spirv-cross.exe (built by tools/setup-spirv-tools.ps1)
  translates the same module; the test runs its pixel checks
  exit 0

The overlay claim was measured by closing the injector: startup_indirect_mesh_request_hardware passes in
0.49 s with a clean process, and a GetModuleHandleW(L"dxgi.dll") probe already saw dxgi.dll mapped in a
fresh console process while the injector was running.

Scope

Documentation only, no behavior change. Two notes that were considered and left out:

  • The withdrawn #3513 skip. It is not a supported configuration and #3513's review showed it hides the
    regression the check exists to catch, so it does not belong in the build notes.
  • A short (8.3) TEMP used to make startup_run_preset report FAIL: --print output. #3510 merged a fix
    that compares the resolved path; re-checked here with TEMP set to C:\Users\ADMINI~1\..., where the
    fixture now prints OK: 12 preset choices, staging and controls and exits 0. The trap is gone, so it is
    not documented.
**@⁠KelboLive** on GitHub · 2026-11-30 02:32 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3538) `KelboLive:docs/windows-environment-gotchas` → `main` · +2 −0 · 1 files · 1 commits · merged 2026-11-30 09:02 UTC ## Change Two entries in the existing **Windows build notes** list, each one a trap that costs a contributor time because the failure looks like a test bug rather than an environment one: - **Cached SPIR-V tool paths.** `find_program` takes its hints from `<repo>/out/tools/spirv/bin` and `$env:VULKAN_SDK\Bin` before `PATH`, and CMake caches the result, so a tree configured on a host with a Vulkan SDK keeps that SDK's `spirv-cross` after `tools/setup-spirv-tools.ps1` has built the pinned one. The `spirv_minlod_*` tests then keep skipping with a message that says the tool lacks MinLod support. - **Injected D3D overlays.** A process-wide injector that loads `dxgi.dll` makes `xmem_shim_exports` report a failure against a correct `xmem.dll`, and can stall `startup_indirect_mesh_request_hardware`. Phrased without naming a specific tool, per the note on #3513. Both follow the section's existing shape: symptom, cause, what to do, and how it was measured. ## Verification ```powershell python -B tests/docs_links_check.py # Self-test passed. Checked 179 Markdown files and 718 links. python -B tests/bidi_controls_check.py # Self-test passed. Checked 2684 tracked source, script and build/CI files: no bidirectional controls. ``` The SPIR-V claim was measured on this host rather than inferred from `CMakeLists.txt`, by running the same `minlod` driver against both tools with Vulkan SDK 1.4.363.0 present: ``` Vulkan SDK 1.4.363.0 Bin/spirv-cross.exe SPIRV-Cross threw an exception: MinLod texture operand not supported in HLSL. skip: SPIRV-Cross lacks MinLod support; run tools/setup-spirv-tools.ps1 exit 77 out/tools/spirv/bin/spirv-cross.exe (built by tools/setup-spirv-tools.ps1) translates the same module; the test runs its pixel checks exit 0 ``` The overlay claim was measured by closing the injector: `startup_indirect_mesh_request_hardware` passes in 0.49 s with a clean process, and a `GetModuleHandleW(L"dxgi.dll")` probe already saw `dxgi.dll` mapped in a fresh console process while the injector was running. ## Scope Documentation only, no behavior change. Two notes that were considered and left out: - The withdrawn #3513 skip. It is not a supported configuration and #3513's review showed it hides the regression the check exists to catch, so it does not belong in the build notes. - A short (8.3) `TEMP` used to make `startup_run_preset` report `FAIL: --print output`. #3510 merged a fix that compares the resolved path; re-checked here with `TEMP` set to `C:\Users\ADMINI~1\...`, where the fixture now prints `OK: 12 preset choices, staging and controls` and exits 0. The trap is gone, so it is not documented.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 02:34:11 +00:00
github-bot changed target branch from main to gh-pr/3538/base 2026-11-30 09:03:58 +00:00
github manually merged commit 59cbe6b749 into gh-pr/3538/base 2026-11-30 09:03:59 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.