Commit Graph

5744 Commits

Author SHA1 Message Date
ff094ce885 Merge pull request #639 from FJBP-code 2026-11-21 20:39:03 -05:00
b0bac8d51c Merge pull request #633 from Kam471 2026-11-21 20:39:02 -05:00
f2b280dfea Merge pull request #632 from nicolas 2026-11-21 20:39:02 -05:00
13d68c1358 Merge pull request #630 from 73N1X 2026-11-21 20:39:02 -05:00
c0a93d29f0 Merge pull request #628 from SirAmong 2026-11-21 20:39:01 -05:00
23020c40cb Merge pull request #622 from SirAmong 2026-11-21 20:38:59 -05:00
d11e39bb39 Merge pull request #599 from LuanFreitas 2026-11-21 20:38:54 -05:00
2452a5b89a Merge pull request #575 from IAmNotSiob 2026-11-21 20:38:53 -05:00
ef3e7747f4 Merge pull request #562 from Vonsek 2026-11-21 20:38:52 -05:00
d10c2e50cc Merge pull request #555 from NRXM 2026-11-21 20:38:51 -05:00
2370a37be1 Merge pull request #394 from Tomgamer 2026-11-21 20:38:42 -05:00
46722d8e77 docs: record the packs.rpf full-export result at 917e9b9
Full rpf9dump models export of packs.rpf at the new pin: ok=24,034 fail=0 skip=0 in 263 s, 0 embedded textures. The manifest and OBJs are local; only the counts are recorded.
2026-11-22 01:38:29 +00:00
a3c633c8b4 Merge origin/main into d3d-46-copy-compare base for D24 work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:38:22 +01:00
ad1150a4be Test: d3d12_vulkan_device_test compares only what D3D12 fixes about GetResourceTiling, sample counts and null-rect resolves
The tiling comparison required the same standard/packed mip split as the host. D3D11.3 functional spec 5.9.2.8.5
(D3D12_PACKED_MIP_INFO) only requires that a mip filling a tile in every dimension stays standard; a smaller mip
"may or may not be packed, depending on the IHV". Measured on one laptop: an RTX 5070 packs from the first mip
below the tile (as the layer does), a Radeon 880M keeps one or two more standard, WARP packs nothing. The test
failed with 24 mismatches on an AMD or WARP host. It now checks the tile shape, that no mip filling a tile is
packed (layer and host), and the tile counts of the mips both sides keep standard; the split itself is printed.

With that fixed, the same test failed further down on those hosts for host-specific answers:
- depth/colour sample counts a software host (WARP, 16x) offers but the Vulkan GPU's limits lack are skipped;
- a null source rectangle in ResolveSubresourceRegion is the whole source; the Radeon 880M and WARP do not resolve
  it that way, so where a host disagrees with its own whole-source rectangle the layer is held to that result.

The host is picked with LEONIDA_HOST_ADAPTER through d3d12_copy_compare.h (D3D-46).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:37:32 +01:00
4c5ce1a945 Merge remote-tracking branch 'origin/main' into tiling-host-split
# Conflicts:
#	docs/d3d12_vulkan.md
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/src/vulkan_replay.h
2026-11-22 02:35:17 +01:00
3816356e05 third_party: bump rpf9-explorer to 917e9b9 and decode packs.rpf dictionary children
The 48557ea pin predates the merged model-layout recovery, the packs.rpf drawable-dictionary roots, the TTPF compact/array/cubemap/volume layouts and the external skeleton reader. Re-pin to upstream 917e9b9.

rpf9dump now passes e.ResourceDrawableOffset to RageModelDecoder.Decode; without it every dictionary child would decode as the first child. The manifest also records Drawable so a row can be traced to its dictionary offset.

Measured on the 1.0.2.1 package with .NET 8.0.428: a fresh packs.rpf scan recovers 24,034 models (23,720 dictionary children plus 314 fragments) from 23,838 candidates, against 314 at the old pin. docs/models.md keeps the 48557ea/c3708fb table as the control and adds the new packs.rpf result; docs/design.md notes the other archives were not re-counted at the new pin. Build: 0 warnings, 0 errors.
2026-11-22 01:35:02 +00:00
248ca96b4d docs: textures.md next steps point at what is left (PROC-18)
The list still sent people to work that was done or is in review:
- step 1: the BC6H/BC7 rebuilders are in #576, not on main yet, so it says so
  and notes that steps 1 and 3 stay open until it merges;
- step 2: the compact layout rule and multi-slice layouts are already upstream
  in rpf9-explorer; only the BCPack decoder is left (ASSET-44);
- step 5: the multi-slice layouts are done (#520, rpf9-explorer #5 and #6);
  what is left is the submodule pin (BUILD-101).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 20:33:16 -05:00
40e81c248e docs: the permlane FI=0 open question is answered (PROC-19)
shader_validation.md still said v_permlane16/x16 with FI=0 and a source lane
off in EXEC was not measured on AMD hardware and needed an AMD run. It was
measured on RDNA2 and RDNA3.5 (issue #374) and #580 (SHADER-74) implements it:
FI=1 returns the value, FI=0 leaves the destination, FI=0 with BOUND_CTRL
gives 0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 20:32:22 -05:00
99960989cb docs: re-measure the llvmpipe counts in testing.md
Measured on GitHub's ubuntu-24.04 runner (llvmpipe, LLVM 20.1.2) on
main c432cdc, which already carries the wave32 lane-mask skip: 52/88
with 36 skipped, and 37/39 with 2 skipped under LEONIDA_W64_EMULATE=1.
Lists the new skips (ps_scc_mask32, ps_texoff, cs_wqm_w32,
cs_w32_lane_wrap).

AI-assisted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D7JEiKsTUaHQbCTdc4Eghy
2026-11-22 01:30:40 +00:00
2cb28a4239 feat(runtime): clear selected slices of 3D render targets
A volume mip has a single tracked layout, but its color attachment may cover only part of its depth. Use the view to select W slices and keep barriers on the whole mip so clears preserve neighboring slices.
2026-11-22 02:29:34 +01:00
e40bd6563e Merge main into D3D-26: predication and reserved resources on main
main added SetPredication (D3D-18) and reserved resources; both sides are
kept. The predication replay test took part E, so the D3D-26 test is now
part F. An atomic copy recorded under a predicate is counted with the
other copies that Vulkan's conditional rendering cannot skip, and
SetPredication, DiscardResource and the atomic copies are all refused in
a bundle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:29:19 +00:00
49408da618 Merge remote-tracking branch 'origin/main' into claude/d3d-30-fences-timing-7ce86f
# Conflicts:
#	docs/d3d12_vulkan.md
#	runtime/CMakeLists.txt
#	runtime/shims/d3d12_com.h
#	runtime/shims/d3d12_vulkan_device.cpp
2026-11-22 01:28:39 +00:00
f230b0dac2 Merge main (c432cdc) into d3d-25-uav-clears
Conflicts, both sides kept: predication (D3D-18) next to the UAV clear in
command_list.h, vulkan_backend.h and vulkan_replay.h; the D3D-28 tests next to
the UAV clear test; texture_create_info's attachment argument with main's
mutable host-transfer usage.

UAV clears under a predicate: a whole-view texture clear takes the attachment
path, as render-target clears do, so conditional rendering applies; buffer
clears and non-attachment texture clears are transfers and are counted in
unpredicated_copies with the copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:28:38 +00:00
b90a2d0914 D3D-56: add GPU descriptor hash-table micro-benchmark (vk_descriptor_bench) 2026-11-22 02:27:59 +01:00
6d40ad39cc Merge remote-tracking branch 'origin/main' into claude/d3d-24-debug-markers-457bab
# Conflicts:
#	runtime/CMakeLists.txt
#	runtime/shims/d3d12_com.h
#	runtime/src/command_list.h
#	runtime/src/vulkan_replay.h
#	runtime/test/vk_test_device.h
2026-11-22 01:26:57 +00:00
7b1ee4b18b Merge remote-tracking branch 'origin/main' into fuzz-7-w32-lane-select
# Conflicts:
#	tests/semantic/regen_fixtures.py
2026-11-22 01:26:52 +00:00
739ef5df1e Decode the MHIU and PAMH heightmaps: row tables, max/min arrays and Z mapping
Both common.rpf payloads are heightmaps, not square/u16 grids. MHIU is a 2048x2048 single-layer map: u16 width@0x06, height@0x08, then height 8-byte row headers {u16 start, u16 count, i32 offset} and packed u8 heights with a measured default of 23. The two measured payloads fill 1,724/1,727 rows and their spans cover the packed bytes with 0 gaps and 0 overlaps; the old zero prefix is the empty rows' headers. PAMH is the GTA HMAP layout stored little-endian (version 1.2): a row table, width*height max u8 rows and width*height min u8 rows. The old u16 reading interleaved the two arrays. Both scale as min.z + value/255 * (max.z - min.z). Cross-check: MHIU vs PAMH max correlates at r=0.861 and r=0.870 in the natural orientation, with land-mask IoU 0.61. The MHIU 0x28 word is still unidentified and is not called a checksum. Tests are synthetic and cover the row table, the default fill, negative offsets, the max/min split and the 64 KiB stream join.
2026-11-22 01:24:54 +00:00
9c229ed2eb Merge remote-tracking branch 'origin/main' into valu-cvt-flr-rpi
# Conflicts:
#	docs/design.md
2026-11-21 22:24:06 -03:00
0175e92e61 Merge the rebased RGB9E5 dependency and preserve border sampler checks 2026-11-21 22:23:59 -03:00
14d81dd093 SHADER-86: align mem_diff reference with RX 6700 typed-buffer decode
Repeat missing channels, drop the old norm-ulp1/missing-w32 splits, and allow DST_SEL 1 in the fuzzer.
2026-11-21 22:23:22 -03:00
baa6beed3a SHADER-86: match RX 6700 typed buffer decode (repeat, OpFDiv, DST_SEL 1)
Missing channels use c mod n, UNORM/SNORM divide by (2^n-1), and DST_SEL 1 is integer 1 for UINT formats.
2026-11-21 22:23:21 -03:00
b3688332f2 Merge origin/main into fuzz-3-f32-valu (regen_fixtures.py: keep ps_f32_mods and ps_f64_mods)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:22:45 +01:00
e876dd2dba Bind world census shards to their source archive 2026-11-21 18:22:43 -07:00
4250c7728f Runtime: support RGBA8 typeless RTV mip and array ranges (D3D-70) 2026-11-21 21:22:33 -04:00
6f4bd2a9bb Merge remote-tracking branch 'origin/main' into shader-55-56
# Conflicts:
#	docs/design.md
#	tests/spirv_interp.py
#	tools/rdna2spirv.py
2026-11-22 02:22:31 +01:00
0726e3f26b Translator: ds_permute_b32, the forward (scatter) cross-lane permute (SHADER-90)
Each source lane on in EXEC sends its data to lane ((addr + offset) >> 2) mod 32
of its own half (like ds_bpermute_b32); a destination nobody targets gets 0, an
off destination keeps its VDST. Highest-numbered source wins a collision.
Native: per-source shuffles with a ballot guard for missing lanes; wave64
emulation: two buffer rounds and a %x_perm variable.

Tests: tests/semantic/test_ds_permute.py, GPU tests cs_w32_permute and
cs_w64x_permute. Contract row in docs/design.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 20:22:15 -05:00
7a23552d7e Merge remote-tracking branch 'origin/main' into shader-36-gather-wrap
# Conflicts:
#	docs/design.md
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
#	tests/test_shader_checks.py
2026-11-22 02:21:40 +01:00
8521b0b465 Merge origin/main into fuzz-3-f32-valu
spirv_mini_interp.py: keep main's _F32 (sNaN bits, #533) and its vector-aware
RoundEven/Floor/Ceil/Trunc; keep this branch's fma_f32, OpFDiv and
Exp2/Log2/Sqrt/InverseSqrt. regen_fixtures.py: both sides' shaders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:21:00 +01:00
f5f4cb03f7 Merge remote-tracking branch 'upstream/main' into codex/rgb9e5-texture
# Conflicts:
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/src/vulkan_replay.h
#	runtime/test/d3d12_descriptor_test.cpp
2026-11-22 02:20:43 +01:00
49ee5d84b7 Translator: v_cvt_flr_i32_f32 and v_cvt_rpi_i32_f32
Both raised Unsupported. RDNA ISA pseudocode: f32_to_i32(floor(S0)) and
f32_to_i32(floor(S0 + 0.5)), the + 0.5 rounded in binary32. The conversion
saturates as v_cvt_i32_f32 does (#300); only an in-range value reaches
OpConvertFToS.

tests/semantic/test_alu_cvt_flr_rpi.py checks both against a plain-Python
reference; docs/design.md gets a contract row.
2026-11-21 22:19:58 -03:00
78b8239761 docs: G-buffer targets stay 8-bit UNORM; image_load tests need a real T# size (PROC-16)
Two silent failures reported in #603 by @Silliana, written down as reports
(not reproduced here):
- d3d12_vulkan.md section 4.2: the material shaders pack normal/ID data into
  bytes and the lighting shaders unpack them with * 255 and a truncate, so the
  G-buffer targets must keep the game's 8-bit UNORM format.
- testing.md, Known problems: a hand-built descriptor with no real width and
  height makes image_load return zero except at pixel (0,0).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 20:17:48 -05:00
67ac056292 Merge remote-tracking branch 'origin/main' into bpw32-main
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
2026-11-22 02:14:15 +01:00
008560e49d Support B5G5R5A1 sampled textures and two-byte footprints 2026-11-21 22:11:47 -03:00
df0cc483c2 Merge remote-tracking branch 'origin/main' into d3d-46-copy-compare
# Conflicts:
#	runtime/test/d3d12_vulkan_device_test.cpp
2026-11-22 02:11:00 +01:00
c432cdce12 docs: drop table rows duplicated by this round's merges
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:09:38 -05:00
e3787a42c8 Runtime: copy comparison review fixes (D3D-46)
Block-compressed texture-to-texture copies: the box is rounded to whole blocks, must fit the destination's padded mip
(a 16-wide box into a 4-wide mip is invalid_copy again), and the extent is cut only where it reaches an edge and
must satisfy both images (block multiple or at that image's edge), else invalid_copy.

Test: copies between different mips (RGBA8, BC1, BC7) and boxes that do not fit, with the host's refusal compared;
a LEONIDA_HOST_ADAPTER that matches nothing fails the run; D24 without a native format still checks the
bit-preserving copies; the partial copies are ordered after the uploads by a COPY_SOURCE round trip; <cctype>.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:09:29 +01:00
a8fffc8830 Merge pull request #598 from curnpoo 2026-11-21 20:09:29 -05:00
0be27bc38f Merge pull request #597 from Jess-Doit 2026-11-21 20:09:29 -05:00
dcc4c1dceb Merge pull request #590 from AlxcBTW 2026-11-21 20:09:27 -05:00
60e196519b Merge pull request #588 from andretuta 2026-11-21 20:09:27 -05:00