Commit Graph

8 Commits

Author SHA1 Message Date
b17397f0dd tests: derive every test's scratch folder from test_temp_dir::temp_dir, not GetTempPath (TEST-TEMPDIR-STRIPPED-ENV)
With TMP, TEMP and USERPROFILE all unset, GetTempPathW returns C:\Windows\, and the throwing create_directories/copy_file/ofstream on C:\Windows\leonida_* aborts with 0xc0000409 before the test body runs. runtime/test/test_temp_dir.h grows one entry, testfiles::temp_dir(): LEONIDA_TEST_DIR when set, the current directory when the temp environment is stripped (Windows), else the standard temp resolution. Fifty-two test files and the tiny_game fixture that called GetTempPathA/W or temp_directory_path directly now use it; d3d12_queue_handover_test.cpp also checks the _sopen_s result in capture_stderr instead of silently returning empty stderr. One runtime source function needed the same fallback because tests exercise it: tls_host_clone_dir in runtime/src/pe_loader.cpp (the loader_tls tests). Rebased onto current main after its D3D-448 additions to d3d12_mesh_test.cpp (3-way; the mesh test keeps both). Verification on a Windows VM: stripped environment - the previously crashing d3d12 tests exit 77 (no usable Vulkan device) instead of aborting, file_system_test runs all 505 checks and loader_test all 95 with zero failures; normal environment - identical outcomes; LEONIDA_TEST_DIR honored under a fully stripped environment (the scratch folder observed mid-run inside it, cleaned up after the pass). The finding is whoalin1's (coordination issue #14, 02:37:44Z).

AI-assisted.
2026-11-28 19:01:06 +00:00
73105b16a7 Merge pull request #4132 from mrp1no
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:11:34 -05:00
3adda29e8f d3d12_conservative_raster: --warp-msaa4 keeps a host oracle failure a failure (review)
@tupacfan04's review: --warp-msaa4 exists to reproduce WARP's known 4x
coverage discrepancy, and with the previous commit that run turned into
"host not comparable" and exit 0, so the flag no longer asserted anything.
Under --warp-msaa4 a host that fails the oracle now prints "host fails the
oracle" and exits 1, as on main.

LEONIDA_HOST_ADAPTER=warp on the RTX 3060 machine: default run 48 + 24
pairs, exit 0; --warp-msaa4 "coverage (3,4): required=0 allowed=0
actual=1", "scene 0 samples 4 ...: host fails the oracle", exit 1. Native
RTX 3060 host: unchanged, 48 + 48, exit 0 in both modes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:49:01 +01:00
7ab77989aa d3d12_conservative_raster: a host render that fails the oracle is "host not comparable" (TEST-907)
The geometric oracle judges the layer. On one host (RTX 5060 Ti, NVIDIA
621.14, Windows 10) the native D3D12 render itself misses pixel (4,4) of
scene 4, and the test failed although the layer was right, so it could not
serve as a gate there.

The layer's conservative mask still has to pass the oracle (exit 1
otherwise). A host mask that fails it is now printed as "host not
comparable" with the host's normal and conservative pixel counts, how many
normal pixels the conservative render lost, and the layer's count; that
scenario's host-side checks are skipped and the summary counts it.

RTX 3060 (NVIDIA 610.88, Windows 11): 48 + 48 pairs, unchanged. With the
host forced to miss scene 4: 8 scenarios reported, exit 0. With the layer
forced to miss it: exit 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:33:51 +01:00
3af6d905e4 Merge current main into Tier 2 conservative rasterization
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-22 18:06:08 -04:00
b5e9ca4ccc Runtime: expose conservative rasterization Tier 2 with capability gates 2026-11-22 16:20:44 -04:00
b9cc5f9a32 Runtime: support conservative rasterization Tier 1 2026-11-22 16:02:50 -04:00
15b4154142 Runtime: support conservative rasterization Tier 1 2026-11-22 15:57:00 -04:00