Commit Graph

3974 Commits

Author SHA1 Message Date
2be1e08271 Merge PR #9549 2026-11-23 17:07:14 -05:00
a30edd1ad5 Merge PR #9538 2026-11-23 17:06:58 -05:00
3d1387b3b9 Merge PR #9531 2026-11-23 17:06:48 -05:00
1c4026d554 Merge PR #9527 2026-11-23 17:06:41 -05:00
2004b2c1df Merge PR #9517 2026-11-23 17:06:29 -05:00
e0c51b8aa5 Merge PR #9501 2026-11-23 17:06:04 -05:00
8dd1b1d5ed Merge PR #9500 2026-11-23 17:06:02 -05:00
9c2dc0a26c Merge PR #9499 2026-11-23 17:06:01 -05:00
51ccd2f1c5 Merge PR #9496 2026-11-23 17:05:56 -05:00
85441c34fb xbox_present: one [d3d12-trace] line per PresentX, with its outcome
The queue proxy's PresentX slot is past the PC chain, so nothing recorded
a present: a --trace-d3d12 run of a frame loop could not say how many
frames were presented, or whether one was refused. XboxPresentation::PresentX
now writes one line per call through d3d12_trace::result (ok or failed).

xbox_present_test captures the trace around a blank present and a refused
three-plane call and checks for exactly those two lines.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
2026-11-23 15:27:18 -06:00
57d08d2fd6 d3d12: 8-bit sRGB UAV textures are mutable UNORM images where the sRGB format has no storage
The host runtime sizes and creates R8G8B8A8_UNORM_SRGB and B8G8R8A8_UNORM_SRGB textures with
ALLOW_UNORDERED_ACCESS (RTX 4090 617.42 and WARP). The layer created their image in the sRGB format with
STORAGE usage, which most GPUs lack, so it refused them: a retail title sizes a 2048x2048, 12-mip
R8G8B8A8_UNORM_SRGB render target with unordered access through device slot 25, got UINT64_MAX and
stopped on its 32-bit size check.

Such a texture is now a mutable image of the UNORM format of the same order (Format::uint_backed, from
#7604), where the GPU can make that image with both formats listed. Its storage view is UNORM, as every
D3D12 typed UAV of these textures is; RTVs and SRVs are sRGB, so clears and draws encode and sampling
decodes. Multisampled ones are still refused.

d3d12_srgb_uav_test compares with WARP: the retail shape's size alignment and creation, a clear
through the sRGB RTV and one through a UNORM UAV, byte for byte, for RGBA8 and BGRA8. Without the
change it fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:25:05 +01:00
cc01a77eac bench_wave64: add emulated-only mode (BUILD-3860) 2026-11-23 22:24:08 +01:00
9ad6cc8c83 rdna2spirv: decode a run-time FORMAT without a branch (SHADER-849)
A buffer_load_format_* whose format comes from the V# no longer searches a binary tree over the
format codes. One table word per code gives the conversion kind, the channel count and the
four channel widths; one shared function per output component reads that word and picks the
conversion with OpSelect, so the decode has no branch and the module carries one copy of it.

The exact UNORM/SNORM quotient comes from a shared %fmt_norm_bits that reads the width's 64-bit
repeat constant from a table. The fixed-format (MTBUF) path is unchanged.

In a module with one dynamic-format load the decode goes from 3,498 instructions and 306 branch
ops to 565 instructions and no branch, and the module from 250,869 to 56,763 bytes. Every one of
the 128 codes gives the same words as before (tests/semantic/test_format_decode_table.py).

AI-assisted (Claude/MiniMax Code).
2026-11-24 00:23:02 +03:00
4dcb96e44e rdna2spirv: an explicit-LOD sample reads a UINT/SINT image in every dimension (EGEN-SAMPLE-TYPED-DIMS)
image_sample_l/image_sample_lz selected the typed view only for dim:SQ_RSRC_IMG_2D, so a UINT or SINT 2D-array, 3D, cube or 1D image was sampled through the float view and the VGPRs held a converted float instead of the integer texel. The hardware applies the T# FORMAT rule to every dimension, and image_load already reads the uint/sint alias of the dimension's sampled binding there.

The typed path is the existing image_read_typed dispatch, now with the dimension it declares the aliases for (a cube uses its 6-layer 2D-array view) and the typed sampled-image type of that dimension; a float format still samples the float view. tests/semantic/test_sample_typed_dims.py covers the alias and binding each dimension emits, that the float view survives, and spirv-val.
2026-11-23 22:18:01 +01:00
25cd3b9782 docs/i18n/fr: translate CONTRIBUTING.md
French translation of CONTRIBUTING.md at 1ab957b3, with the same
"English is authoritative" note as the French quickstart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:16:39 +01:00
f8867d72f0 valu_fuzz: refuse --gfx10-word3 on GFX12; docs say which mem ops need the sync
Bit 24 of V# word 3 (GFX10 RESOURCE_LEVEL) is WRITE_COMPRESS_ENABLE on GFX12, so
the informational --gfx10-word3 run is refused there. On gfx1200 a vector load
after a store of the same thread needs no wait (--hw-sync none without the
scalar ops: 1,000 of 1,000); the scalar loads need the store wait and s_dcache_inv.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:16:12 -05:00
7e2a9fb050 valu_fuzz: the mem family runs natively on GFX12 (RDNA4)
The gfx12 kernels are the GFX10/GFX11 text respelled (gfx12_lines): a MUBUF
soffset is null instead of the literal 0, which is what made every
buffer_load/store_b* "operands are not valid for this GPU or mode";
s_waitcnt_vscnt, s_waitcnt vmcnt/lgkmcnt and buffer_gl0/gl1_inv become
s_wait_storecnt, s_wait_loadcnt, s_wait_kmcnt and global_inv. The V#s keep
their layout (Mesa gfx12-rsrc.json: word 1 and word 3's fields as on GFX11);
word3() now refuses a family it has no layout for.

RX 9060 XT (gfx1200), AMD 26.11.2: seeds 2-4 x 2,000 programs x wave32 and
wave64, 12,000 of 12,000 match; the negative control catches all 8
perturbations. GFX10, GFX11 and translator text are byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:12:13 -05:00
a2070dfa10 tools: x86-64 -> arm64 recompiler groundwork for the mobile path
tools/x64_recomp.py is the start of the static recompiler the arm64 port
needs: an x86-64 decoder (prefixes/REX, ModRM+SIB, RIP-relative, hi8
regs, immediate forms, groups 1-5/8/15/1A/11) and an arm64 assembler
with label fixups. tools/recomp_census.py counts how much of a PE's
.pdata-declared code the decoder covers. docs/mobile.md records the
route (AOT lift of .text to arm64, macOS first, MoltenVK or SPIRV-Cross
for graphics) and what still blocks iOS.

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

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-23 13:47:00 -07:00
234d657349 mods: the mod manager and four manifest-only examples
tools/leonida_mods.py manages the port's mods folder: create, install,
list, check, enable, disable, pack, remove and a gta6rt launcher, with a
Tkinter window behind Mods.bat on Windows. Packages are plain ZIPs with
mod.json at the top level; the installer refuses paths that climb out of
the package and never touches game data. mods/ ships four archetype-swap
examples, three of them installed disabled.

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

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-23 13:47:00 -07:00
89b6201ebb present: console frame-pacing uncap via LEONIDA_PRESENT_UNCAP
Any non-empty value other than "0" lifts the frame-event cap: a
WaitFrameEventX hands its token out at once (no vblank grid, no latency
throttle) and PresentX presents unsynced, so the frame rate is whatever
the title renders. Registration and suspension keep their errors, an
uncapped frame's statistics report its present time, and the flag
survives suspend/resume. frame_pacer_test covers the grid's removal and
restoration.

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

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-23 13:46:59 -07:00
867d922f09 docs/design.md: 15 contract rows name the existing test that checks them (#6519)
Squash-merged after diff review of PR #6519
2026-11-23 12:54:54 -06:00
718e27ba6a docs: public D3D12.X presentation/device slots and x64 layouts (#6522)
Squash-merged after diff review of PR #6522
2026-11-23 12:54:03 -06:00
8501307cbd docs/d3d12_xs_surface.md: name swizzle_search.py with the other swizzle tools (#6523)
Squash-merged after diff review of PR #6523
2026-11-23 12:53:47 -06:00
7be7c4c839 docs/models: test_skinned_glb runs 24 synthetic tests, not 19 (#6525)
Squash-merged after diff review of PR #6525
2026-11-23 12:53:13 -06:00
789135813a docs/pipeline_check: name tools/spirv_interface.py as the interface reader behind shader_link_check (#6526)
Squash-merged after diff review of PR #6526
2026-11-23 12:52:56 -06:00
427a7ec71c docs/isa_coverage: name tools/rdna2_isa_tables.py, the decoder's opcode and operand tables (EGEN-ISA-TABLES-DOC) (#6530)
Squash-merged after diff review of PR #6530
2026-11-23 12:52:10 -06:00
d5564ef07b Merge remote-tracking branch 'origin/main' into gfx12-fuzz-gate 2026-11-23 19:52:01 +01:00
46492b0219 boot_trace: report discontinuities in numbered D3D12 calls (#6543)
Squash-merged after diff review of PR #6543
2026-11-23 12:49:15 -06:00
8e4dd026b5 docs: record the gfx1201 valu_fuzz and lds_fuzz hardware runs
The valu_fuzz hardware-oracle section gets the per-family gate and the RX
9070 numbers: f16 1,000/1,000 kernels match (500 programs, both wave
sizes), mem refused on gfx12xx with the two AMD clang rejects named, and
gfx1170 assembling both families clean. The lds_fuzz GFX12 bullet now
covers ds_permute_b32 reaching all 64 lanes as well, with the send-
direction measurement, the masked ds_swizzle control, and the 500-program
numbers of the default run.

AI-assisted (GLM-5.3).
2026-11-23 19:48:55 +01:00
12806e56b7 docs/shader_validation: name tools/ab_control_flow.py with the GPU-side runners (EGEN-AB-CTRLFLOW-DOC) (#6545)
Squash-merged after diff review of PR #6545
2026-11-23 12:48:41 -06:00
5fa095b370 docs/design.md: keep one copy of the PAL stage descriptors section (#6552)
Squash-merged after diff review of PR #6552
2026-11-23 12:46:44 -06:00
4cd82fe3fa vs_layout_census: confirm legacy non-NGG VS per PAL hardware stage; measure the 195 ES variants (#6558)
Squash-merged after diff review of PR #6558
2026-11-23 12:45:04 -06:00
c70e673e12 rbf0_encode: fail report export when resources are refused (#6560)
Squash-merged after diff review of PR #6560
2026-11-23 12:44:31 -06:00
a86d7f9508 d3d12: an integrated GPU reports UMA and refuses MEMORY_POOL_L1 heaps, as the host does (#6569)
Squash-merged after diff review of PR #6569
2026-11-23 12:42:09 -06:00
6dda0630bd make_game: --mesh-compute on by itself on Intel's Windows Vulkan driver, whose mesh draws crash (BUILD-2202) (#6789)
Squash-merged after diff review of PR #6789
2026-11-23 12:33:00 -06:00
1599683caf d3d12: reset predication in ClearState and align SetPredication / AtomicCopyBuffer validation (#6815)
Squash-merged after diff review of PR #6815
2026-11-23 12:32:05 -06:00
23060e0877 runtime: xg_xs.dll shim, XGCreateTextureComputer and XGSuggestSwizzleMode as traced E_NOTIMPL (RT-489) (#6891)
Squash-merged after diff review of PR #6891
2026-11-23 12:29:34 -06:00
0980beac2c docs/README.md: index the ped catalogues, strand grooms and mods pages (EGEN-README-UNINDEXED) (#6579)
Squash-merged after diff review of PR #6579
2026-11-23 12:25:15 -06:00
77fa308f9a ps_sweep: reject incomplete readbacks in cross-GPU comparisons (#6586)
Squash-merged after diff review of PR #6586
2026-11-23 11:22:49 -06:00
3ae065426b BUILD-2172: check development CLI flags against each producer (#6590)
Squash-merged after diff review of PR #6590
2026-11-23 11:21:40 -06:00
5074124359 docs/movies: keep one Audio association bullet (EGEN-MOVIES-AUDIO-DUP) (#6593)
Squash-merged after diff review of PR #6593
2026-11-23 11:20:47 -06:00
acccd0f1eb docs/testing: name tools/pc_checker.py as the CPU/GPU/RAM report for #166 (EGEN-PCCHECKER-DOC) (#6594)
Squash-merged after diff review of PR #6594
2026-11-23 11:20:29 -06:00
603d53eb36 ASSET-539: Preserve extra UV sets during ped assembly (#6604)
Squash-merged after diff review of PR #6604
2026-11-23 11:18:11 -06:00
028548ace5 navmesh_nodes: refuse a --out it cannot write before either archive is read (EGEN-NAVMESH-NODES-OUT) (#6608)
Squash-merged after diff review of PR #6608
2026-11-23 11:17:01 -06:00
34969aa207 bcpack_tool: name the paths in the decode refusal as given, not their repr (EGEN-BCPACKTOOL-PATHREPR) (#6618)
Squash-merged after diff review of PR #6618
2026-11-23 11:14:33 -06:00
7761680eac audio_config: read the --names pool as latin-1 bytes, the hash joaat uses (EGEN-AUDIOCONFIG-POOL-LATIN1) (#6619)
Squash-merged after diff review of PR #6619
2026-11-23 11:14:15 -06:00
242968218a docs/testing: note KosmicKrisp nir_to_msl NaN canonicalization in cs_bvh (#6627)
Squash-merged after diff review of PR #6627
2026-11-23 11:12:31 -06:00
f6a00fc4d8 rdna2spirv: --fma khr covers the f64 FMAs (v_div_fmas_f64) with OpFmaKHR on doubles (#6635)
Squash-merged after diff review of PR #6635
2026-11-23 11:10:12 -06:00
c29ad552fb docs/fssm_crosscheck: the repro runs six tests, not four with an expected failure (#6648)
Squash-merged after diff review of PR #6648
2026-11-23 11:06:46 -06:00
0dc7f58e5e d3d12: B5G5R5A1 UAV textures are mutable R16_UINT images where A1R5G5B5 has no storage
A B5G5R5A1_UNORM texture with ALLOW_UNORDERED_ACCESS was refused on a GPU whose
VK_FORMAT_A1R5G5B5_UNORM_PACK16 has no STORAGE_IMAGE (NVIDIA): GetResourceAllocationInfo answered
UINT64_MAX and creation failed. A title's boot creates a 2560x1440 render-target + UAV one and
asserts on that size.

The R9G9B9E5 route generalizes: Format::r9g9b9e5_as_r32_uint becomes Format::uint_backed, the format
a UAV texture stored as a mutable unsigned image is viewed in (E5B9G9R9 for R32_UINT, A1R5G5B5 for
R16_UINT). For B5G5R5A1 the image is R16_UINT with {R16_UINT, A1R5G5B5} listed; its storage view is
R16_UINT in the uint class, SRVs are A1R5G5B5 sampled views, and RTVs and clears go through an
A1R5G5B5 attachment view (ResourceBinding::uint_backed lets replay's color_view_format take it). The
SRV and UAV T#s keep the 1_5_5_5_UNORM format. A shader store still needs the translator to pack
the bits for that view, so CheckFeatureSupport does not advertise the typed UAV yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:06:24 +01:00