Commit Graph

25 Commits

Author SHA1 Message Date
bfba26fbbb Audio: streamed AWC music channels to Ogg Opus
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:28:16 -05:00
a16d58e58e Audio: awc_opus.py repackages AWC Opus streams losslessly as Ogg Opus (end-trimmed); make_game runs it
300 random streams decode with ffmpeg with no errors and match their declared lengths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:27:18 -05:00
b4012a8653 Translator: --shard i/n and --merge for parallel corpus runs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:23:01 -05:00
ec83153070 Translator: typed image_load (uint/sint views by T# FORMAT); GPU-checked
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:22:34 -05:00
250e9ffd77 Build: GPU test tools and vk_pipeline_check in CMake; make_game pipelines stage saves a driver pipeline cache
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:20:53 -05:00
4b76bfb196 vk_pipeline_check: create every translated module (and every compute pipeline) on the real driver; optional pipeline cache
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:20:05 -05:00
cef55f04ae Translator: ray tracing (image_bvh(64)_intersect_ray emulated per RADV's software path), backward far branches
The BVH step is emulated over buffer reads in AMD's node format (box16/box32/triangle), with RADV's
watertight triangle test and sorted box children. GPU-checked with a synthetic BVH (vk_compute_test bvh).
All 64 ray-tracing compute shaders translate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:18:47 -05:00
21c8ae0ab6 Translator: exact wave64 lanes in CS/MS, per-lane constant EXEC halves, exec_hi writes; shader metadata index
- wave64 detected per shader; v_mbcnt and EXEC writes use the hardware lane (LocalInvocationIndex in CS/MS).
- s_mov_b32 exec_lo/exec_hi with a constant now sets each lane from its own bit (any non-zero constant
  used to enable every lane). GPU-checked (cs_exec64).
- spirv/index.json: stage, wave size, capabilities/extensions, Vulkan features, bindings, local size, LDS,
  mesh/GS limits and IO locations per shader, so pipelines can be created up front.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:04:21 -05:00
e8d9227ac2 Typed image stores GPU-checked (vk_store_test: float/uint/sint views via T# FORMAT)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:51:17 -05:00
95447e081e Translator: mesh and geometry shaders, SCC from scalar ALU, general buffer format stores, more CS ops
- Mesh shaders -> VK_EXT_mesh_shader: PSV0 limits/topology/group size, v5 = workgroup index, s3 = wave
  id << 24, NGG exports staged per thread and written after OpSetMeshOutputsEXT (GS_ALLOC_REQ counts).
  GPU-checked (VKH_MESH mode in vk_harness).
- Geometry shaders ($GS_VoxelizeGeneric): LDS-ring inputs/outputs mapped to gl_in / staged slots,
  EMIT/CUT -> OpEmitVertex/OpEndPrimitive. GPU-checked (VKH_GS mode).
- SCC is now set by s_and/or/xor/andn2/orn2/nand/nor/xnor/lshl/lshr_b32 (result != 0),
  s_add/sub_i32 and s_addk_i32 (signed overflow), s_min/max_u32; it was left stale before. GPU-checked.
- buffer_store_format(_d16) encodes every table format (sub-dword elements via atomics); it silently
  stored nothing for most formats before. GPU-checked with vk_compute_test.
- Far branches folded; d16 buffer loads; gather4_l(_o) emulation; gather offsets; 1D/a16 image stores;
  BITMASK_PERM swizzles; f64 add/convert; i24 mul/mad, alignbyte, xnor, ffbh_i32, swap, s_abs, s_bfm,
  64-bit ordered/cmpx compares, 16-bit compares, 8/16-bit global loads, neg() operands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:48:58 -05:00
0cd75fb245 Docs: restore output location note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:54:04 -05:00
df13e7cf33 Docs: drop stale rejection note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:53:57 -05:00
5fa36e3e3f Docs: corpus coverage - all 14,337 VS/PS and 88.9% of CS translate
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:53:48 -05:00
aad2da1db0 Docs: correct model total (155,598)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:44:36 -05:00
c87bf2b5ca Assets: texture pools inside pack/*/data/ttdb; final export counts; drop one-off dump script
make_game.py found only data/ttdb pools; 11 more live in pack/<name>/data/ttdb and now go to
ttpf_pack/<pack>/. All 57 pools exported (308,895 textures, 0 failures) and 160,898 models.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:44:30 -05:00
0082ad5365 rpf9dump: stream manifests (levels.rpf ran out of memory); docs: wave64 and mesh-shader findings
Rows held lazy projections that kept every decoded model alive; 149,811 models on levels.rpf exhausted
memory at the final serialization. Rows are now written as they are produced, to a .partial file renamed
when complete. Design notes record that most shaders are wave64 (32-wide subgroups on NVIDIA) and that
mesh shaders are NGG wave64 with the merged-shader SGPR layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:04:06 -05:00
bd2dd1c874 Translator: compute shaders, LDS, wave-uniform branches, typed image stores; all VS/PS failure groups
- Compute: FSSM word 0x138 is COMPUTE_PGM_RSRC2 (user SGPRs, workgroup-id enables, thread-id VGPRs,
  LDS size), 0x13C..0x144 the group size; checked against 2,689 CS. GPU-checked with vk_compute_test.
- LDS as a Workgroup array (reads/writes/read2/write2/st64/sub-dword/atomics/cmpst), ds_bpermute,
  s_barrier as a workgroup control barrier.
- s_cbranch_vccz/vccnz/execz/execnz decided wave-wide (OpGroupNonUniformAny); v_cmp writes 0 for
  inactive lanes. GPU-checked.
- image_store for 2D/2D array/3D with float/uint/sint views picked from the T# FORMAT at run time.
- Raw barycentric reads via BaryCoordKHR (321 PS), POPS via fragment-shader interlock, image_sample_o
  offsets, fma_f16 op_sel, 64-bit v_cmpx, vcc_lo scalar loads, s_addk to specials, undeclared vertex
  components, normalized-encoding re-anchoring, array image_get_lod/gather4_lz, image_sample_l LOD on
  arrays (was reading the layer).
- Duplicate vector/pointer type declarations merged; vk_harness enables barycentrics/interlock/maintenance8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:59:41 -05:00
145a1824e2 Docs: shader coverage after SDWA fix (13,971 translated, 97.4% of VS/PS)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 17:05:58 -05:00
1ba84a944e README: clone URL
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:48:40 -05:00
061256327e Logo: SlyDevil's VI icon from SteamGridDB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:48:22 -05:00
3374a3db11 README logo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:45:35 -05:00
53bee95d32 Find the user's copy automatically; Build.bat; prerequisite and disk preflight
make_game.py no longer needs --game: it looks for a supported copy in the usual
places (by a few file sizes only), asks when there are several or none, checks
every prerequisite and free space before a long build, and fetches the
rpf9-explorer submodule when git is available. Build.bat runs it by double-click.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:43:22 -05:00
4f1ff7d85b Replace local drive paths with placeholders
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:59:05 -05:00
f1260dcfbf Shader translator: honour SDWA selects; add v_pk_fma_f16, int min3/max3, v_bfe_i32
SDWA src/dst selects were ignored, so 3,826 translated shaders passed
spirv-val but computed wrong values. Sources are now narrowed (with sext())
before neg/abs, and results placed at dst_sel per dst_unused. GPU-checked with
the new synthetic shaders in runtime/test/shaders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:58:36 -05:00
db0dc8bd5e Initial commit: Leonida, build-it-yourself PC port groundwork
Shader pipeline (carve, FSSM unpack, gfx1013 disassembly, RDNA2 to SPIR-V),
asset export via rpf9-explorer's Core (submodule), PE loader and shim
skeleton, and make_game.py, which builds from the user's own copy of the game.
No game data, keys or executables are included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:22:16 -05:00