verify_translation_completeness compares only the number of entries, so on a
resumed shader stage an index left by other inputs with as many entries as the
carve passed for this folder's finished translation and no step ran.
A shader keeps its carved file's stem through unpacking, disassembly and
translation, so the stage now compares the index's names with the carve's: on
resume a stranger drops the index and its shard plan and translates again, and
after a translation a stranger fails the stage and removes the index and its
shard plan, so that a later run of the pipelines stage alone does not take the
index as finished and the next run of this stage does not merge the same parts
again. The names are checked before the counts. The disk-space check no longer
counts such a folder as reusable.
The index is read with read_translation_index and the carve with shader_stems,
as the other steps read them (a UTF-8 BOM included).
The fixture in test_make_game_empty_translation.py named its carved shader
"shader" and its translated one "shader_0"; it now uses one name.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
Two points from the review of old upstream PR 4578:
- A Cancel pressed before the process's Started event arrived set `cancelled` but had no pid to stop, and
Started then stored the pid without looking, so the command ran on. Started now stops it when Cancel came
first (launcher/src/app.rs).
- tests/test_docs_cli_flags.py was red: launcher/README.md quotes cargo's `--all-targets` and the test runner's
`--ignored` and `--nocapture`, which no scanned source names. They join FOREIGN, the other programs' flags the
docs quote.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/rdna2spirv.py: main's d16 "destination is also read" check (now
DST_ALSO_READ, plus buffer_load_format_d16_hi_x) gains the PR's flat_load_
prefix. docs/design.md: main's 8/16-bit global row is kept and the PR's
"Flat memory" row follows it.
Co-authored-by: tiagonogueiraa-bit <360313680+tiagonogueiraa-bit@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in the x_memory_order docstring (tools/rdna2spirv.py): main already
ignores ds_nop (80417b9c4), so the PR's part still new is ordering
image_sample, image_gather4 and image_bvh; its docstring is kept. The PR's
parity test probe gains x_one_lane, which main's Gen.x_memory_order reads.
Co-authored-by: totonii <totonicontato@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply published_mode(out_file) to temporary listing before atomic replacement,
and restore write permission (0o600) before unlinking in finally block
when replace fails, preventing Windows PermissionError [WinError 5] and
stranded temporary files.
agent: yes
AI-assisted: yes
Apply published_mode(asm/spv) to temporary files before atomic replacement,
and restore write permission (0o600) before directory cleanup in exception block
when replace fails, preventing Windows PermissionError [WinError 5] and
stranded temporary files.
agent: yes
AI-assisted: yes
Apply published_mode(spv) to temporary staged SPV before atomic replacement,
and restore write permission (0o600) before directory cleanup in exception block
when replace fails, preventing Windows PermissionError [WinError 5] and
stranded temporary files.
agent: yes
AI-assisted: yes
Apply published_mode(out) to staged manifest file before atomic replacement,
and restore write permission (0o600) before TemporaryDirectory cleanup in
exception block when replace fails, preventing Windows PermissionError [WinError 5]
and stranded temporary files.
agent: yes
AI-assisted: yes
Apply published_mode(path) to temporary cache file before atomic replacement,
and restore write permission (0o600) before unlink in exception block when
replace fails, preventing Windows PermissionError [WinError 5] and stranded
temporary cache files.
agent: yes
AI-assisted: yes
Round 9b translator fixes for rendering correctness and Mandy d3d12/ parity:
1. Unconditional CS & MS LDS OOB bounds (Mandy 21633b328 parity):
- Record g.lds_declared from PSV0.shared for MS and RSRC2.LDS_SIZE for CS.
- Whenever g.lds_declared > 0 (opt-out --no-lds-bounds), set
g.lds_dwords = g.lds_bound = min(g.lds_declared, 16384) so every LDS
read, write, sub-dword, wide, and atomic op goes through lds_access()
(OOB reads return 0, OOB writes/atomics dropped instead of wrapping).
2. PS DB_SHADER_CONTROL bit 12 EarlyFragmentTests (Mandy f33940415/bf479a3cd):
- Add fssm_header.db_shader_control() reading u32 at E + 0x138 (0x24C for
rec = 0xB0; 3,023/12,101 corpus PS have bit 12 DEPTH_BEFORE_SHADER set).
- Emit OpExecutionMode %main EarlyFragmentTests (opt-out --no-early-depth)
and record early_depth in shader_meta when bit 12 is set and the PS does
not export depth/stencil (no exp mrtz, DB_SHADER_CONTROL & 0x7 == 0, no
OSG1 SV_Depth*/SV_StencilRef).
3. Defensive mesh epilogue & PS helper-lane quad swizzle:
- MeshEXT and --mesh-compute epilogues explicitly write CullPrimitiveEXT =
true (1) and (0, 0, 0) when %mli < %msp and !%ms_has_prim.
- Lower quad-local ds_swizzle_b32 in PS via OpGroupNonUniformQuadBroadcast /
OpGroupNonUniformQuadSwap (GroupNonUniformQuad capability) so Vulkan 2x2
helper invocations participate on AMD RADV while EXEC-masked lanes still
read 0.
Verified: compileall, check_no_game_data.py, 6,674/6,674 semantic tests (0
failures), 200/200 corpus slice (200/200 spirv-val), plus targeted LDS MS
(5/5), LDS CS (60/60), early-depth PS (120/120), and PS quad-swizzle (50/50)
corpus slices (100% spirv-val). AI-assisted.
PlainStageLogs passed a command's raw bytes to sys.stdout.buffer. A Windows console's buffer takes UTF-8, so
non-ASCII text a command wrote in its own code page showed U+FFFD on screen, where main's --no-tui (the command
inheriting the console) shows it right. Measured in a console with OEM 850 / ANSI 1252: a child writing cp850
"n\xc6o par\x83metro" showed "n\ufffdo par\ufffdmetro".
- run() decodes the output once as it arrives (an incremental decoder, so a character split between two reads
stays whole) and sends that text to the console, encoded for sys.stdout with errors="replace", and to the log;
- the encoding is the one the caller names with run(..., encoding=), else what a text-mode pipe decodes with, as
on the board.
Three new tests: the caller's encoding on the console and in the log, a UTF-8 character split between reads, and
a character the console's code page lacks.