Commit Graph

3 Commits

Author SHA1 Message Date
00131bb85e main keeps its own runtime, tools and tests; the branch's variants stay on port/d3d12-nvidia
After the merge the tree held this branch's older states of files main maintains. Run against main's code,
tests/test_acphal_abi.py and 11 of the 15 translator tests that differed failed, and the C++ runtime would have
been built from two generations of its sources. So that the merge cannot break what main builds and tests:

- runtime/ is main's, file for file (68 files only this branch had are not carried over);
- every file under tools/, tests/ and docs/ that both sides have is main's (80 files);
- ten translator tests only this branch has, which test rules main's translator does not have, and their
  fixtures are left out.

What main gains: d3d12/ (the Rust D3D12 runtime), its launchers and helpers (Launcher.bat, scripts/play*.ps1,
play-linux.sh, port_ctl.py, smooth-motion.ps1, fetch_vkd3d_proton.py, sync_victory.py), mods/example_lua, eleven
notes under docs/, seven tools and the tests that pass with main's code, the README's sections and credits, and
the "Runtime traps" section of AGENTS.md. Everything left out here is on the branch port/d3d12-nvidia.

Checked: compileall; make_game.py --help; check_no_game_data.py over every file this adds to main; the
line-ending, docs-encoding, CI-registration and docs tests; each test file that differs from main, on its own.
Not run: the whole translator suite, the C++ build, cargo over d3d12/ after the merge (d3d12/ is byte for byte the
branch's), CI.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 17:58:38 -05:00
700bb76082 translator: computed EXEC writes (SHADER-1264) and the MIMG tfe status (SHADER-1266)
Four GPU fixtures failed on an RTX 4060 Ti (616.64): the fixtures were in,
the translator half was not.

- A scalar op that reads no lane mask writes a number to exec_lo /
  exec_hi; lane L now takes its bit L mod 32, as a constant does
  (Gen.exec_number_bit). It was tested for non-zero, so s_lshl_b32 /
  s_add_u32 / s_bfm_b32 into exec_lo turned the whole half on:
  cs_w32_exec_computed gave 8192 8192 8192 7682 ..., cs_w64_exec_computed
  8224 8192 16384 16384 .... Bitwise ops that read their operands through
  mask_src are already 0 / ~0 per lane and get no extra code; ops reading a
  lane mask and VALU ops are unchanged. The corpus listings write exec
  halves only with s_mov_b32, s_and/andn2/or/xor_b32 and s_wqm_b32.
- An MIMG read with tfe or lwe returns the fetch status after its data;
  Gen.mimg_status writes 0 there (every texel resident without sparse
  residency), so cs_imgload_tfe and cs_imgload_d16_tfe no longer see the
  1000 they seed it with. No corpus listing uses tfe or lwe.

GPU: all four pass on the RTX 4060 Ti with and without
LEONIDA_W64_EMULATE=1. CPU: tests/semantic/test_exec_computed.py (now with
the wave64 fixture under --wave64-emulate) and the new
tests/semantic/test_mimg_tfe_status.py with the hand-written fixture
image_load_tfe.asm. Contract rows in docs/design.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:56:18 -05:00
717f011a00 GPU fixtures for computed writes to exec_lo / exec_hi (SHADER-1264) 2026-11-23 20:45:50 +01:00