Since #1797 check runs first and then shaders, assets and runtime run
together when selected (they do not depend on each other); pipelines
starts once the translated shaders are ready. The nine translated
quickstarts still described the old check -> shaders -> assets ->
runtime -> pipelines chain. fr is left to RT-946.
(cherry picked from commit 9b03635428)
test_output_outside_the_temp_directory_is_refused expects the tool to
refuse an output path in the repository root, but the tool compares it
with the system temporary directory: a checkout under /tmp or %TEMP%
(the usual sandbox worktree) makes the repository itself 'inside', the
tool writes the cache there and the test fails with 0 != 2. Run the
tool with TMPDIR set to a fresh directory so the check holds wherever
the tree lives, and clean up the output path either way.
(cherry picked from commit 4c23e4f94d931725d26ab2381d0dbe8326e77a75)
test_wine_first_boot_uses_the_packaged_game_and_shader_paths runs on
POSIX only and three assertions failed on macOS: gta6rt.sh resolves its
own path with readlink -f and lets cd settle the game directory, so the
runtime sees /private/var/... while the test expected /var/... (macOS
keeps the temporary directory behind a symlink). The expectations are
now realpath'd, which is a no-op on Linux and on Windows.
(cherry picked from commit 93f77743581ec6ca2a41c4ccadfcf68033f12bfd)
Python 3.14's json decoder is iterative, so a 100,000-level JSAV body no
longer raises RecursionError: parse_jsav accepted it, info printed
JSAV (...), verify said OK and extract died with a 1,027-line traceback
and exit 1 (json.dump recurses). The tests already expected a validation
error and noted that the C decoder's limit differs by platform; the tool
now checks the nesting depth itself (JSON_NESTING_LIMIT = 512, brackets
inside strings ignored) in parse_jsav, in verify's per-block check and in
the packed index, so a malformed save is one error line and exit 2 on
every Python.
(cherry picked from commit 79da3a9161fb0a238ddf4fd5179559bcd69c44a0)
CCS serves both v_cmp (VOPC, where v_cmp_ne_* exists) and the sif shape's
s_cmp, but SOPC has no 'ne' encoding: rdna2spirv correctly refuses
s_cmp_ne_u32 (tests/semantic/test_sopc_validation.py lists it as a
nonexistent mnemonic). One of the six seeded programs then came back as
'translator unsupported: s_cmp_ne_u32' and test_small_fixed_seed_run_is_clean[structured-32]
failed with pass 5 != 6 (dispatch-loop-32 likewise). Map 'ne' to the
real encoding 'lg' at the scalar emission site only; the vector compares
keep v_cmp_ne_*.
(cherry picked from commit 9ccfea42211aa7268ddd5a91ff2b9f0eb20adb1a)
82b87bdd3 opens the destination for writing first, to keep the direct
writer's permission check, and only then stages the report. The test
still expected the old path (stage, inherit 0444, fail in replace_retry,
chmod 0600, unlink) and asserted that chmod happened, so it failed once
the pre-open raises PermissionError: on POSIX and Windows alike nothing
is staged.
Split it: a read-only manifest is refused with the previous report and
the directory unchanged, and a writable manifest whose replace_retry
fails still leaves no staging file.
(cherry picked from commit 2ccc600642cfd4f8252051a46c7cc8e2d7723820)
make_game.fspx_cache_complete only accepts an FSPX translation index
whose compute row carries fspx_code_sha256 (32c010551), which is the
key the runtime looks the program up by. tests/test_bvh_shaders_stage's
fake rdna2spirv.py still wrote a row with just stage, so shaders() ran
fspx_unpack.py and rdna2spirv.py again on every call and the second
stage() assertion failed. The fake now writes the key, as the real
translator does (tests/test_fspx_shaders_stage.py:167).
(cherry picked from commit fafba69e6f1a765234cde07be232727f8088c3a7)
proxy_create_descriptor_heap treated a readable, non-zero word after the PC
description as a console address. A normal 16-byte D3D12_DESCRIPTOR_HEAP_DESC
is almost always followed by readable, non-zero memory, so every ordinary heap
from a proxy device entered the console path and reported garbage as its CPU
handle; the first Create*View then wrote through it.
The console layout also carries a size, and that size is 32 bytes per
descriptor. Requiring it makes the two layouts distinguishable without guessing
at the address: a PC desc's trailing word is whatever the caller happens to
hold next, and it does not encode NumDescriptors * 32.
Measured on Windows 11, MSVC 14.44.35207, RTX 5070 Ti: ctest 278/300 -> 296/300,
22 failed -> 4 failed. d3d12_descriptor exits 139 before and 0 after; the four
remaining failures (root_sig, d3d12_com, d3d12_vulkan_device, d3d12_depth_resolve)
are unrelated shim behaviour and fail either way.
Merged from the TreXito/mangrove copy of the original repository, which carried
contributor pull requests that were never merged here.
Kept: rdna2spirv fixes (ds_append/ds_consume, v_ldexp_f16 under MODE.FP_ROUND,
thread-group SGPR, fma exact), the differential fuzzers (dot, vint, wint, vrel, cvt,
f16misc, salu, mode) with their tests, the exe/import fail-fast and int3 cause tools,
Zen 2 instruction emulation (cpu_emulation.h) and the xapu.dll/chad.dll shims.
Not taken, because they conflict with different implementations already on main:
the D3D12 Xbox-ABI layer, xmem, acphal, loader TLS, f64_diff, DirectStorage (needs the
typed-error zlib inflate), and the copy's own MANGROVE.md and README changes.
A retail title places a 256x256 R32_FLOAT texture through Xbox device slot 133
and then clears it through the value GetGPUVirtualAddress returns, used as a CPU
pointer. The layer answers 0 for a texture, as D3D12 does, so the title wrote
256 KB at address 0. XCL measured the same clear and returns the address the
title placed the resource at (its PR #168).
A slot-133 placed texture still gets its committed fallback image, but records
the title address and reports it from GetGPUVirtualAddress. Ordinary textures
still answer 0 and buffers are unchanged. The pixels do not alias the title's
pages yet, so a write through the address is not uploaded; that is the
page-mapper work and is called out in docs/d3d12_vulkan.md.
Tests: d3d12_existing_heap_test checks that the RENDER_TARGET layout and the
COMMON retry both answer the title address; it exits 0, and gta6rt links.
AI-assisted: DeepSeek V4.1 Flash 1017 (Alibaba Token Plan); coordinated by Qwen4 Max Preview.
3630610ca made the Xbox device proxy call
rt::d3d12::create_console_descriptor_heap directly, but d3d12_xs_device.cpp does
not include d3d12_com.h, so the tree does not compile: C3083 ('d3d12' is not
a namespace) and C2039 at d3d12_xs_device.cpp:1606. Including the header would
pull Vulkan types into xs_proxy_mock_test, which compiles the proxy standalone
and does not link the layer.
The proxy now has set_console_descriptor_heap_handler, the same shape as slot
133's placed-at-VA handler: a ConsoleDescriptorHeapHandler typedef and an atomic
in d3d12_xs_device.h/.cpp, registered by every Vulkan device in its constructor.
Heap creation moves into a Device member so the free helper only unwraps the
device and delegates. The new test gets its own reference from
create_device_proxy, reads the PC heap's CPU start through heap_proxy_real_heap()
instead of the Xbox-ABI proxy, and Ref gains operator->.
Tests: xs_proxy_mock_test and d3d12_console_descriptor_heap_test build and exit
0; gta6rt links.
AI-assisted: DeepSeek V4.1 Flash 1017 (Alibaba Token Plan); coordinated by Qwen4 Max Preview.
ccd36246f added the GDK size checks, but the published field lists leave
SHAPE_XMA_CONTEXT at 60 bytes and SHAPE_PCM_CONTEXT at 28, so acphal.cpp fails
its static_asserts (C2338) and the runtime does not build. Each context has one
trailing reserved word in the GDK layout that the list omits: reserved[11] takes
the XMA context to 64 bytes and reserved[2] the PCM context to 32.
Tests: gta6rt links.
AI-assisted: DeepSeek V4.1 Flash 1017 (Alibaba Token Plan); coordinated by Qwen4 Max Preview.
Seven more test files that fail on main at d083a2c, after #9896:
- test_docs_repeated_lines: tests/semantic/README.md's command block is a fenced block, which the check skips;
its indented form put two lines with the same 40-character opening three lines apart
- test_docs_repo_paths: docs/retail_boot_intel_host.md names #8554's frame-loop notes instead of a path that
is not in the tree
- test_docs_env_vars: runtime/README.md documents LEONIDA_RNG_SEED (runtime/shims/bcrypt_rng.cpp)
- test_docs_design_rows: docs/README.md gets one row each for strand_grooms.md and ped_catalogues.md (two
rows each were merged in), and design.md escapes the pipe in `prim_cnt << 12 \| vtx_cnt`
- test_docs_cli_flags: docs/testing.md passes llvm-mc through LLVM_MC, so `brew --prefix` is no longer read as
a bench_wave64.py flag; pt-PT's quickstart points to the web checker that replaced tools/pc_checker.py
(5125a01), as README.md does; the spirv-opt passes docs/embedded_shaders.md quotes join FOREIGN
- test_bvh_slot_check: bvh_match.model_geometries() yields six fields since the render bucket was added;
unpack the two it needs
- test_joaat_agreement (find_hash_lookup's half): hash over the Latin-1 bytes like hashdict.joaat, as #6254 and
#7820 proposed
Still red, for a separate change: test_joaat_agreement's leonida_mods half (it hashes UTF-8 bytes like
runtime/src/mods.h, so both sides change together), test_f64_conversion and test_f64_output_modifiers (they
expect the output scaling #6314 gated by MODE) and test_bvh_shaders_stage.
Twelve test files failed on main at 2d53a8055 (CI's check and semantic-tests steps, run locally): most are a test
and the code it checks changed by different pull requests in the same merge round. Each fix below is either taken
from a closed pull request that already had it, or restores what an earlier merged change intended.
From closed pull requests:
- test_make_game_resume: FakeProc gets poll(), which translate() now calls (#7018)
- test_make_game_empty_translation: the Exited stub gets poll() and the failed-shard path is checked (#7214)
- test_shader_checks: stub table_fetch_test in the Wave64Checks harness and count it (#7433)
- test_runtime_paths: runtime.yml's path filter lists tools/replace_retry.py, which rdna2spirv.py imports (#7029)
- test_psin_names: patch the same_report_path helpers that report_paths now calls (#8719)
- test_report_source_collision: the fixture is a real Bink 2 header; bink_index refuses other files (#7408)
- test_missing_input_exit_codes: tile_probe checks its inputs before it asks for numpy (#4771)
Restored:
- merge_check: a failed `git show` is an error again (5b88d58); 21016cf brought back the lenient read that
treated it as a new file, while new files are already left out when the diff is read
- rpf_probe: a symlinked --out updates its target again (44d3595); 55d21cc's staged write replaced the link
Updated to the code:
- test_shader_stage_resume: TRANSLATION_SOURCES lists fssm_unpack.py and shader_stage_manifest.py, which the
translator imports; existing work folders translate once more after this
- test_tool_stdout_encoding: the 15 programs merged without the stdout guard get the same block as the others
- test_rdna2spirv_decode: drop the test of decode_any_format, which SHADER-849 replaced with the table decode
that tests/semantic/test_format_decode_table.py checks
Co-authored-by: jewmaster1337 <102986566+jewmaster1337@users.noreply.github.com>
Co-authored-by: TanmaySatyam <248538550+TanmaySatyam@users.noreply.github.com>
Co-authored-by: evilclanker9000 <45567075+evilclanker9000@users.noreply.github.com>
Co-authored-by: slint6614-dev <359954236+slint6614-dev@users.noreply.github.com>
Co-authored-by: BlackNife <108077267+Poussistar@users.noreply.github.com>
Co-authored-by: fiestorra <65175643+fiestorra@users.noreply.github.com>
Co-authored-by: fearkov <289226582+fearkov@users.noreply.github.com>
Co-authored-by: DoubleD17 <48109637+DoubleD17@users.noreply.github.com>