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.
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>
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.
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>
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>
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
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.
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>
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>
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.
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>
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>
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.
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>
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>