Commit Graph

180 Commits

Author SHA1 Message Date
b489866751 Merge pull request #3945 from kotorvr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:47 -05:00
784f4019f8 Merge pull request #3916 from Emma
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:32 -05:00
0872f090e8 Merge pull request #3878 from mariuslozo-boop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/README.md
2026-11-22 23:09:09 -05:00
8996e20228 Merge pull request #3350 from Jeremy Goldberg
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/README.md
2026-11-22 23:07:21 -05:00
336733ccc5 Merge pull request #2490 from Nolan Cotter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:42 -05:00
8f12d8c2f5 Merge pull request #2022 from AlxcBTW
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:12 -05:00
fa5f26db8e Merge origin/main: DXGI device fields coexist with the console-ABI device state 2026-11-22 20:39:59 -07:00
1674b1be52 Merge origin/main into buffer-formats-all-v2
Conflicts: tools/rdna2spirv.py (main's x_round state next to this branch's fmt_enc_fn, and the
function types of both: both kept), docs/design.md (main's rows, our Typed buffer loads sentence
re-applied), tests/test_shader_checks.py (TOTAL: main's 13 plus cs_fmt_all = 14, and both mock
branches kept; 75 tests pass).

Main's typed-buffer work that overlaps (aa2988cc: byte size of the format from one table, SHADER-429:
DST_SEL=1 on out-of-bounds typed loads) merged without conflict and takes this branch's formats from
Gen.FORMATS. Ten tests in test_mutations, test_cmp_class_f64, test_loop_ballot_barrier and
test_vcmp16_opsel fail on origin/main itself, with and without this branch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:39:02 +01:00
c5da97fb52 docs: D3D12.X console ABI — vtable slots, fields and record encodings
Collects the console-side ABI facts the d3d12_xs shim must reproduce:
device/queue/list/heap/resource slot tables (both measured layouts and
the fence-based detection rule between them), the command-list object's
field layout and inline record encodings, descriptor-table and root-
argument wire formats, the unified-memory address model, and the
present path. Sibling-layer findings are marked unverified here; slots
the package's own DLLs confirm are marked as such.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-22 16:41:17 -07:00
d2dbb0b690 tools: hello_pixels draws a synthetic quad through vk_harness
The package-free complement to first_light: hand-written SPIR-V
assembly (no GLSL compiler, spirv-as only), a generated VKH_DRAW_MESH
quad, RGBA32F readback to PPM and a zlib-only PNG, and a --check oracle
(coverage + 7 probe pixels against the pattern's closed form) exercised
by tests/test_hello_pixels.py without a GPU. Measured end to end on
Mesa llvmpipe 20.1.2 at 512x512.

Assisted-by: Devin
2026-11-22 16:41:15 -07:00
bb052d8575 loader: don't bind shim-owned imports to host namesakes; document import routing 2026-11-22 16:40:52 -07:00
75b2ea486c docs: catalogue the console library surface and shim coverage 2026-11-22 16:40:46 -07:00
3b598a9be4 docs(first-light): distinguish UV and textured draw defaults
Refs: #3350
2026-11-22 17:50:46 -05:00
f8259cc4b8 docs/models.md: levels.rpf fragments, bone-bound and triangles from a full export
The e293917 re-count table marked the levels.rpf fragment, bone-bound
and triangle cells (and the mesh, vertex and embedded-texture figures)
"not independently reproduced": levels.rpf had a recovery count from
count.exe but no rpf9dump manifest.

A full `rpf9dump models` export of levels.rpf at e293917 reproduces the
recovery count to the row (235,330 candidates, 71 not recovered,
343,327 entries, fail=0; Drawable set on 130,239, null on 213,088) and
gives 50,731 fragments, 59,544 bone-bound, 2,509,947,536 triangles,
3,854,587 meshes, 2,364,218,711 vertices and 1,293 embedded textures.
The same counting reproduces the data.rpf row from a fresh export.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:27:00 +00:00
9cf2350779 Merge origin/main into asset-303-awc-chunk-bd
main gained the 0xbd cue-record decoder in rsc8_audio.py (4cf7e3e7). The
section in docs/audio_config.md now points at docs/rsc8_audio.md for the
record layout and keeps what is specific to the music banks; a test holds
awc_markers.events() to rsc8_audio.decode_marker_records().

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 00:25:57 +02:00
3302d4ec81 docs(first-light): clarify shader selection in the index and CLI
Refs: #3350
2026-11-22 17:23:28 -05:00
4de3ef8587 docs, tools: document AWC tag 0xBD marker events, add awc_markers.py (ASSET-303)
docs/audio_config.md gains the measured 16-byte event layout of AWC tag 0xBD,
whole-corpus counts and the event-type table (hashes and counts only).
tools/awc_markers.py reports those counts from an archive, a bank or a folder
of banks; tests/test_awc_markers.py covers it with hand-built banks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 00:19:16 +02:00
87d608fef2 tools: compare XCL's synthetic test title under gta6rt and under XCL
tools/xcl_compare.py starts XCL's fake console executable under gta6rt --run
and under XCL, records each check's result, the unimplemented imports it hit,
and the thread stacks of a hung check (cdb), restarts after a hang with that
check skipped, and writes report.json; --gui shows the checks live. It holds
no XCL code: it only runs binaries from a separate XCL checkout.

docs/xcl_compare.md has the licence boundary, how to run it, and the first
result (XCL 50/50, gta6rt 5 pass, 43 fail, 2 hang), with each difference
mapped to an open item or recorded as a lead. Both hangs are the documented
deadlock of XTaskQueueTerminate(wait = true) from a manual queue's
dispatching thread, not a runtime bug.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:12:53 +01:00
d2eb26814d Merge pull request #3808 from Jeremy Goldberg 2026-11-22 17:03:55 -05:00
ba8652685f Merge pull request #3530 from Joao vitor alves
# Conflicts:
#	docs/README.md
2026-11-22 17:02:33 -05:00
1d468c1b32 Merge pull request #3493 from bobcatchris 2026-11-22 17:02:17 -05:00
210f16943b docs(rendering): trace an authored material through its draw passes
Refs: #3574, #2519, #3544
2026-11-22 16:45:48 -05:00
dac28e6b19 Fix what the round-42 merges broke (tests and docs)
- shader_disasm: prune stale listings against every input, not the --skip-existing remainder (a resumed run
  deleted every listing it had just reused).
- progress_dashboard: a drive-letter path is never inside the repository off Windows (it printed user names);
  its own read_text helper is read_utf8, so the encoding check does not take it for pathlib's.
- Translator tests follow this round's rules: desc_lookup's BroadcastFirst in the typed-load condition walker;
  resinfo sizes are 0 past the last level and a 2D depth word is 0 (SHADER-388); SHADER-315 constant folding in
  the perm and i16 tests; #2089's structured wave64 emulation.
- test_semantic_translator_use: 57 oracle-only files merged before it are DEBT; test_spirv_tools_required is
  allowed (CI meta-test).
- Test fixes: image_fuzz fake writes the programs, preflight follows c506d00c's loader hint rule, feature_scan
  reads the first line of a pytest-decorated message, w64_graphics wording.
- docs: rows merged again in design.md, README.md, d3d12_vulkan.md; GameInput table rebuilt from #3172's rows;
  orphan rows in models.md and embedded_shaders.md; repeated bullets; anchors; a flag not on main.
- Repo rules: stdout guard on 14 programs; LF writes; csv lineterminator in bink_play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:14:54 -05:00
feee3e6c1f Real-shader sandbox: placed props through a translated VS/PS pair
vk_sandbox draws the props around a point with one translated game VS/PS
pair chosen by signature and descriptor layout: a real camera through the
VS constants, DiffuseTex albedo through the bindless set and the PS's own
S#, depth, and a fly/walk/drive window. tools/sandbox.py packs the scene
(tools/sandbox_scene.py), picks the pair and runs it; --check prints
counts only. docs/sandbox.md has the table layout and the measurements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PiKMETzszqwfnV8QQyzocY
2026-11-22 17:48:57 -03:00
a13c6c5d04 docs: record the 8x RDNA1/RADV validation farm methodology 2026-11-22 20:40:59 +00:00
536e987681 Merge origin/main (round 41) into buffer-formats-all-v2
Conflicts in docs/design.md (main's Buffer format stores row kept, the "and the formats of the
Typed buffer formats row" suffix and the Typed buffer formats row added once) and
tests/test_shader_checks.py: TOTAL counts main's 12 fixtures (three mesh, ps_tex, ps_imgatomic, five
compute, ps_ssharp, vs_base_ids) plus cs_fmt_all, so + 13.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 21:23:18 +01:00
f9763f5886 Merge pull request #3246 from andretuta 2026-11-22 15:16:09 -05:00
4a3f0497ec Merge pull request #3217 from NiiRoZz
# Conflicts:
#	docs/shader_inputs.md
2026-11-22 15:15:49 -05:00
96b1b82d3e Merge pull request #3157 from NiiRoZz
# Conflicts:
#	docs/README.md
2026-11-22 15:15:17 -05:00
4a209d7bd1 Merge pull request #3071 from Jeremy Goldberg 2026-11-22 15:14:33 -05:00
94ff85fdf7 Merge pull request #2784 from SuarezPM 2026-11-22 15:11:58 -05:00
7b7ada0e7b Merge pull request #2758 from Mohamed-Leo
# Conflicts:
#	docs/i18n/README.md
2026-11-22 15:11:40 -05:00
bcfedd79ee Merge pull request #2473 from Vonsek
# Conflicts:
#	docs/README.md
#	docs/d3d12_vulkan.md
#	docs/embedded_shaders.md
2026-11-22 15:10:53 -05:00
217e2f4631 PROC-148: document the ACES LUT bakes' and sky passes' inputs
Move @Silliana's notes from #1896 and #1897 into docs/shader_inputs.md,
checked against the ten postfx_aces bakes and the sky_scattering /
scattering_transmittance_system passes (offsets and counts only).

- ACES: the quasi-log addressing holds in all four QuasiLog bakes. The
  RRT spline is a constant table in the program, not an input. The
  tone-curve spline at +0x00 is in reference c9 order. Only the
  TonemapOnly bakes' second spline at +0x70 is points-first, and +0x118
  picks between the two. +0x13C selects per-channel vs luminance mode.
  It does not switch the curve off.
- Sky: Transmittance, then MultipleScattering (samples one table), then
  SkyAtmosphereLUT / SkyView (sample two). The +0xD0 dword in SkyView and
  MultipleScattering picks RGB9E5-packed or float output descriptors.
  It does not skip the stores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:04:51 +01:00
330f0d3013 PROC-147: document the studio-shot lighting shader's inputs
docs/shader_inputs.md lists what PS_STUDIOSHOT_PBR_MATERIAL_STANDARD_LIGHTING
needs from its inputs, as a first check for a dark frame or a device-lost:
the 512-byte light records, the fixed eight-light loop, the plane count in
the top byte of +0x4C, the profile table's intensity skip and the shadow
strength byte at +0x73. Reported by @Silliana in #1892; offsets confirmed
against the shader, with two corrections to #1892 (the count is at +0x4C,
and the +0x40 low-24-bit test disables one factor, not the light).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:04:16 +01:00
456b0bcd33 PROC-147: document the studio-shot lighting shader's inputs
docs/shader_inputs.md lists what PS_STUDIOSHOT_PBR_MATERIAL_STANDARD_LIGHTING
needs from its inputs, as a first check for a dark frame or a device-lost:
the 512-byte light records, the fixed eight-light loop, the plane count in
the top byte of +0x4C, the profile table's intensity skip and the shadow
strength byte at +0x73. Reported by @Silliana in #1892; offsets confirmed
against the shader, with two corrections to #1892 (the count is at +0x4C,
and the +0x40 low-24-bit test disables one factor, not the light).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:04:11 +01:00
993eedb376 docs: document deferred G-buffer layout and declared output signatures (PROC-146) 2026-11-22 16:51:02 -03:00
15f5b2fbc0 Fix what the round-41 merges broke
- tests/semantic: BaseVertex/BaseInstance read 0 in the wave interpreter; the LDS MockGens follow
  SHADER-309 (lds_bound, lds_access, lds_atomic); abs emission tests load their operand, since
  SHADER-315 folds scalar ALU on constants.
- test_translate: the dynamic gather sampler is a loaded word, not s16 + 0 (SHADER-315 folds it).
- test_world_build: DDS downscale weights colours by alpha (62804d0d).
- test_fspx_shaders_stage: the fake disassembler writes the listing make_game now checks.
- xgameruntime_test: re-read the package id after clearing the LEONIDA_PACKAGE_ID override.
- docs: one row per topic again in design.md (72 topics) and README.md; one Other languages line;
  embedded_shaders.md keeps one copy of each bullet; animation.md links the heading anchor.
- tools/scripts: character_textures uses report_paths.same_report_path; stdout guard on six programs;
  LF write in vs_input_survey; the cl.exe fallback compiles winhttp_offline.cpp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:30:33 -05:00
b6f97b84be docs(shaders): document SGD5 pass render-state indices
Record the effect-local fixed-function table mapping and the full-corpus discriminator used for PROC-143.

Refs: #2519, #3036, #3047
2026-11-22 14:16:56 -05:00
70c1c54cbf Merge origin/main into buffer-formats-all-v2
Conflicts in tools/rdna2spirv.py and docs/design.md. Main had meanwhile fixed three of the older
stores this branch found (SHADER-358: f16 toward zero; SHADER-364: exact NORM rounding and the
DST_SEL-dependent routing of a two-component format), so the merge keeps main's mem_f16,
encode_norm_bits and 2-component swizzle, applies them to the new SCALED kinds as well, and passes
the swizzled channels into the shared typed-store encode function (Gen.format_encode_call, now 29
parameters). Gen.norm_encode_exact and EXACT_NORM_CODES go: encode_norm_bits does the same job.
The three expectedFailure tests pass now and pin the older stores to the oracle's words; cs_fmt_all's
16_16_SINT store is (x, 0) through its identity-selector V#. design.md keeps one Typed buffer formats
row; test_buffer_store_format's unsupported-format example is BUF_FMT_INVALID (8_USCALED is
supported now).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 19:33:56 +01:00
0d938dedd8 Docs: 51 of the BVH builder's 52 FSSM programs translate on main; one rule (buffer_store_short) left (PROC-120)
Recounted with main 49475796 on the 1.0.2.1 package (counts only): 52/52 unpack,
42 clean and 10 with invalid words in the disassembly, 51 translate and pass
spirv-val. The four rules embedded_shaders.md listed are three since 427c1376
(#1968); Box16Rehydration stops at buffer_store_short (#1864). d3d12_vulkan.md
and the docs index quoted 41/42 and four rules in seven places.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:20:09 +01:00
50e3c60d7d Merge pull request #2681 from Leonardo Guimaraes 2026-11-22 13:17:02 -05:00
f495169092 boot: the first-boot runbook and the two-trace summary
tools/boot_trace.py reads the `--trace` JSONL and the `[d3d12-trace]`
stderr lines and prints the units a first boot needs: modules, unimplemented
imports with their callers, DllMain/TLS results, exceptions with their
stack, the exit, and the D3D12 calls by outcome and first call per method.
It counts debug strings instead of printing them, so a real trace stays on
the player's machine; the tests use synthetic fixtures only.

docs/boot.md is the runbook around it: the Windows and Wine commands, the
LEONIDA_UNIMPLEMENTED and validation switches, the first-failure triage
order, and the Q1-Q22 table mapping each open question to the event to look
for. docs/README.md and runtime/README.md point at both.
2026-11-22 15:16:15 -03:00
c1543e3449 Merge pull request #2552 from Leonida local test 2026-11-22 13:16:07 -05:00
3ff283da6a Merge pull request #2473 from Vonsek
# Conflicts:
#	docs/README.md
#	docs/d3d12_vulkan.md
2026-11-22 13:15:34 -05:00
1918a7d2e1 Merge pull request #2213 from MeNoSkills
# Conflicts:
#	docs/README.md
#	docs/i18n/README.md
#	docs/i18n/it/quickstart.md
2026-11-22 13:13:22 -05:00
4316318cb3 docs: add Arabic community quickstart 2026-11-22 20:13:00 +02:00
79b6daac22 Merge pull request #2063 from sovljanskii
# Conflicts:
#	docs/README.md
#	docs/design.md
2026-11-22 13:12:58 -05:00
ec8ec4c9a4 Fix what the round-40 merges broke
- docs: one row per topic again in design.md (59 topics merged sentence by sentence, keeping every
  number) and README.md (the current models/character rows); one Other languages line.
- docs/i18n: the two Spanish quickstarts had been concatenated; keep #1912's, drop #2277's row.
- make_game: the shader fingerprint covers spirv_asm.py and its tables; LF settings write.
- tools: pe_shader_containers, gamedata_maps and anim_rigs use report_paths.same_report_path (BUILD-589);
  stdout guard on five tools; LF text writes in three; user_sgpr_census tolerates an unreachable --json.
- tests: fspx stage fakes write real carve/unpack indexes (c7408a1f); typed f16 stores round toward zero
  (SHADER-358); test_ci_registration's helper is no longer collected as a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:55:07 -05:00
a3b1719c61 gameinput: report and drive force-feedback and haptic motors through SDL3 haptics (RT-160)
IGameInputDevice answered the force-feedback and haptic half of the API with
nothing: no motors in GameInputDeviceInfo, E_INVALIDARG from
CreateForceFeedbackEffect, false from IsForceFeedbackMotorPoweredOn, a no-op
SetForceFeedbackMotorGain and E_INVALIDARG from SetHapticMotorState. A pad SDL
opens as a haptic device now reports one force-feedback motor with the effect
kinds SDL lists, and a pad with trigger motors reports two haptic motors.

Force feedback goes to SDL_CreateHapticEffect/RunHapticEffect on the poll
thread, so title calls still never touch SDL; the eleven GameInput effect kinds
are SDL's eleven force-feedback effects. The trigger haptic motors play their
one waveform as an intensity on the existing trigger output. A pad with neither
keeps the old answers, and LEONIDA_RUMBLE=0 silences both. gameinput_test drives
all of it through a fake haptic backend, because SDL's virtual joysticks report
no haptics.

AI-assisted.
2026-11-22 18:26:28 +01:00