cpu: give every archive texture runner the same app-local WARP #1302
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1309"
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 archielcqp-a11y on 2026-11-24T07:29:10Z.
Change
cpu_archive_texture_gpu_*compares the three runners' traces, and each trace includes the WARP driver line. With an app-local WARP (OFFSCREEN_WARP_DIR), the native reader runs fromarchive_gpu/, which had nod3d10warp.dll, and thepe_maprun is hosted bypython.exe, so both loaded the in-box WARP (10.0.19041). The AOT EXE sits beside the build's copy and loaded WARP 1.0.22, so its trace differed only in the driver line.The build now places the app-local copy in
archive_gpu/through the existingoffscreen_app_local_warphelper, which also removes it when the option is cleared.tests/cpu/archive_check.py --mappedloads the copy beside the native EXE before mapping. Builds without an app-local WARP are unchanged. Same approach as #1108 for the shim tests. Independent problem; no issue.Verification
Commit
1c8ad41on upstreamdc73c29, Windows 10 build 19045, Agility SDK 1.620.2 + WARP 1.0.22 build, debug layer enabled.f05369e, system CFG off:ctest --no-tests=error -R '^cpu_(native_archive|archive)'→ 5/5 passed; native,pe_mapand AOT all reportdriver 1.0.22.0. Before:AOT both trace and statusmismatch (10.0.19041.5794expected,1.0.22.0got).dc73c29, system CFG on (Windows default): native and AOT device lines are bothgpu device Microsoft Basic Render Driver, driver 1.0.22.0, and thepe_map"both" case matches. Thepe_map"truncated" case then fails fast withFAST_FAIL_INVALID_LONGJUMP_TARGET, as reported in #1293; it fails the same way without this change, and also incpu_native_archive_blastandcpu_archive_texture_publication, which this change does not affect.app_local_warp_toggleanddocs_linkspass.Not run: a build without
OFFSCREEN_WARP_DIRon this base; there the helper only removes a stale copy and the mapped host finds nod3d10warp.dllto load.Evidence and follow-up
No new fixture.
docs/experiments.mdgains a paragraph in the archive texture GPU section. Refs #1293 for the remainingpe_maptruncated failure under CFG.Checklist
This change was AI-assisted.
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T07:42:07Z.
Review: COMMENTED
Reviewed at commit
1c8ad4135465fff84740c09da865aac234419168.Code Review
CMakeLists.txt:offscreen_app_local_warp("${OFFSCREEN_WARP_DIR}" "${archive_gpu_dir}")ensures the nativearchive_gpu/archive_texture_reader.exeresolves the same app-locald3d10warp.dllas the lifted AOT executable.tests/cpu/archive_check.py: preloadingnative.with_name("d3d10warp.dll")viactypes.WinDLLwhen present ensures thepe_maphost (python.exe) also binds the same app-local WARP DLL before DXGI initialization, keeping driver-version traces consistent across all three runners.docs/experiments.md: documents the app-local WARP behavior clearly.Verification
1c8ad413):git diff --check origin/main...HEAD: pass/root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: pass (16 Markdown files, 289 links)/root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: pass (1091 files)--target archive_texture_gpu_lifted archive_gpu_reader pe_map):--preset dev):ctest --preset dev -R '^cpu_archive_texture_.*_warp$' --parallel 4 --no-tests=error --output-on-failure— 1/1 passed (cpu_archive_texture_gpu_warp)/O2(--preset release):ctest --preset release -R '^cpu_archive_texture_.*_warp$' --parallel 4 --no-tests=error --output-on-failure— 1/1 passed (cpu_archive_texture_gpu_warp)