Tracking & Static Audit: 45 New Source-Level Bugs + 150 Prioritized Backlog Items [Part 2/2] #1249

Open
opened 2026-11-26 04:24:58 +00:00 by github-bot · 2 comments
Owner

@⁠hyperland956-lgtm on GitHub · 2026-11-24 16:46 UTC · original

Multi-Part Series (2/2): Part 1/2: https://github.com/Marvisak/VIctory/issues/1242 | Part 2/2 (this issue)

24. VIC-BT-024 — resource::track() iterates blocks in index order instead of RPO, missing waterfall offset loads in split_irreducible copies (P1)

  • Location: crates/victory-shader/src/resource.rs lines 172-190, 261-269, 360-385
  • Prior-Work Check: 0% overlap across Marvisak_VIctory (0 hits for offset_at or split_irreducible in resource.rs; #568/#180/#645 address unrelated waterfall/address features).
  • Root Cause: In crates/victory-shader/src/resource.rs, track() (lines 172-190) iterates blocks in raw vector index order for (b, block) in p.blocks.iter().enumerate() rather than reverse postorder (RPO). When a block at a lower index references a descriptor loaded by an s_load in a higher-indexed block (for example, a block cloned and appended to p.blocks by structure::split_irreducible(), or a loop back-edge/reordered CFG block), out.scalar has not yet been populated for that higher-indexed block when the consumer is visited. Similarly, offset_at() (lines 261-269) only checks out.scalar entries populated prior to the current iteration, so waterfall detection misses the load and falls back to a uniform first-lane descriptor load.
  • Edge-Case / Verification Note: Verified in ir.rs and structure.rs that reverse_postorder(&p.blocks) is used by both ir::ssa() and emit::lower::run(), specifically because raw block indices do not guarantee dominance order after CFG transformations or non-linear branch layouts. resource::track() is the only pass still iterating 0..p.blocks.len() linearly while relying on previously-populated maps.
  • Synthetic Reproducer: Construct a shader CFG where block 0 branches to block 2 (containing s_load_dwordx8 from a descriptor table with v_readfirstlane_b32 offset), which branches to block 1 (containing image_sample using that descriptor). Because block 1 is visited before block 2 in resource::track(), out.scalar does not yet contain block 2's load when block 1 is processed.
  • Proposed Fix & Risk: - Fix: Iterate blocks in reverse_postorder(&p.blocks) in resource::track() (and run scalar address collection to a fixed point or in a dedicated pre-pass before descriptor/waterfall resolution so all s_load addresses are populated before any consumer inspects out.scalar).
  • Regression Risk: Low; visiting blocks in RPO (or separating scalar-address collection from descriptor/waterfall resolution) strictly improves dominance coverage without changing valid in-order shaders. (Estimated size: S)

25. VIC-BT-025 — s_buffer_load_dword* adds unaligned base, soffset, and offset before dword-truncating instead of truncating each term independently (P1)

  • Location: crates/victory-shader/src/emit/lower.rs lines 2834-2873
  • Prior-Work Check: Searched all 3,661 VIctory records for s_buffer_load_dword alignment / & ~3 / soffset truncation (0 hits).
  • Root Cause: Measured on both RX 6800 (gfx1030) and gfx1036 hardware (ProjectLeonidaL/leonida design.md:281), s_buffer_load_dword* clears the low 2 bits of base, soffset, and imm_offset individually ((base & ~3) + (soffset & ~3) + (offset & ~3)) before summing: specifically, sOFF = 3 and IMM = 3 resolves to byte offset +0, NOT +4. lower.rs:2834-2873 sums offset + base + extra + soffset first and only truncates/divides by 4 afterward, shifting the loaded dword by +4 bytes whenever the low 2 bits of two terms carry across bit 2.
  • Edge-Case / Verification Note: Alternative hypothesis: constant-buffer addresses and offsets might always be 4-byte aligned. Falsification: byte-addressed structured buffers or packed scalar offsets in soffset can have non-zero low 2 bits; hardware explicitly masks each addend before addition.
  • Synthetic Reproducer: Bind a buffer containing [0x11111111, 0x22222222] at offset 0. Execute s_mov_b32 s4, 3; s_buffer_load_dword s5, s[0:3], s4 offset:3. Hardware loads 0x11111111 (offset (3 & ~3) + (3 & ~3) = 0); VIctory computes (3 + 3) >> 2 = 1 and loads 0x22222222.
  • Proposed Fix & Risk: - Fix: Mask base, soffset, and offset individually with & !3u32 before summing them in lower.rs:2834-2873.
  • Regression Risk: Very low; adds at most two bitwise ANDs on scalar SMEM address calculation. (Estimated size: XS)

26. VIC-BT-026 — s_cbranch_vccz and s_cbranch_vccnz AND vcc with exec instead of testing raw VCC (P1)

  • Location: crates/victory-shader/src/structure.rs lines 1010-1021
  • Prior-Work Check: Searched all 3,661 VIctory records (847 issues/PRs + 2,788 issue comments + 26 review comments) for s_cbranch_vccz, s_cbranch_vccnz, and vcc AND exec in structure.rs (0 hits).
  • Root Cause: structure.rs:1010-1021 evaluates s_cbranch_vccz and s_cbranch_vccnz by computing self.b.and(vcc, exec) before checking whether the mask is all-zero. Per the RDNA2 ISA, s_cbranch_vccz/s_cbranch_vccnz test the full 32-bit/64-bit VCC scalar register (VCC == 0 / VCC != 0) independent of EXEC. Whenever a shader sets bits in VCC for currently inactive lanes (e.g. via s_mov_b32 vcc_lo, ..., s_or_b32 vcc_lo, ..., or a prior v_cmp before narrowing EXEC) and branches on s_cbranch_vccz/vccnz, masking with exec flips the branch direction.
  • Edge-Case / Verification Note: Alternative hypothesis: DXC might always produce VCC via v_cmp under the same EXEC mask immediately preceding s_cbranch_vccz. Falsification: loop-exit patterns save/OR VCC across iterations while narrowing EXEC (s_and_saveexec_b32), or load a wave-wide scalar mask into VCC; a synthetic shader setting vcc_lo = 1 with exec_lo = 2 and executing s_cbranch_vccz takes the wrong branch.
  • Synthetic Reproducer: Assemble a Wave32 compute shader: s_mov_b32 vcc_lo, 1; s_mov_b32 exec_lo, 2; s_cbranch_vccz target. On RDNA2 hardware, VCC != 0 so the branch is NOT taken; VIctory computes vcc & exec == 0 and takes the branch.
  • Proposed Fix & Risk: - Fix: Test the raw vcc lane-mask value directly in structure.rs:1010-1021 without self.b.and(vcc, exec).
  • Regression Risk: Low; matches RDNA2 hardware semantics for scalar VCC branch instructions. (Estimated size: XS)

27. VIC-BT-027 — texture_at() caches failed host textures (host == None) in PLACED_TEXTURES before checking host.is_some() (P1)

  • Location: crates/victory-gpu/src/resource.rs lines 1153-1178
  • Prior-Work Check: 0% overlap across Marvisak_VIctory (0 hits for texture_at caching host == None; #643/#458/#413 address aliasing and LRU eviction).
  • Root Cause: In crates/victory-gpu/src/resource.rs (lines 1153-1178), texture_at() checks PLACED_TEXTURES at line 1155 and immediately returns Some(r as This) on a cache hit. On a cache miss, it calls create_at_address(...) (which returns S_OK even when host_texture() returns None), unconditionally inserts (address, *desc) -> out into PLACED_TEXTURES at line 1176, and only THEN checks resource(out).host.is_some().then_some(out) at line 1177. Thus on failure, the first call returns None, the failed Resource is never released, and every subsequent call hits line 1155 and returns Some(out) with host == None.
  • Edge-Case / Verification Note: Verified that create_at_address returns S_OK when host_texture() fails (it only logs a warning and stores host: None in the Resource), and that placed_texture() in descriptor/host.rs:750 expects texture_at() to return Some only when a usable texture resource was created.
  • Synthetic Reproducer: Call texture_at(addr, &desc) with a ResourceDesc whose host_texture() creation fails (e.g., unsupported format or dimension). Call 1 returns None, yet inserts out into PLACED_TEXTURES; Call 2 with the same (addr, desc) hits line 1155 and returns Some(out) even though resource(out).host is None.
  • Proposed Fix & Risk: - Fix: Check resource(out).host.is_some() BEFORE inserting into PLACED_TEXTURES; if host is None, release out via release(out) and return None.
  • Regression Risk: Low; prevents leaking failed Resource allocations and ensures consistent return semantics across calls. (Estimated size: S)

28. VIC-BT-028 — v_cvt_f32_f16 drops abs/neg and v_cvt_f16_f32 drops clamp on default low-half VOP3 (op_sel == 0) (P1)

  • Location: crates/victory-shader/src/emit/lower.rs lines 4110-4121, 4147-4153 (vs 4486-4504)
  • Prior-Work Check: Searched all 3,661 VIctory records for v_cvt_f32_f16 (0 hits) and v_cvt_f16_f32 clamp (0 hits).
  • Root Cause: lower.rs:4147-4153 matches "v_cvt_f32_f16" if v.opsel == 0, reads the raw integer operand via s(self, 0)?, and passes it straight to legacyF16ToF32—completely dropping VOP3 v.abs and v.neg. Directly above, 4110-4121 matches "v_cvt_f16_f32" if v.opsel == 0 and routes through int(self, r), bypassing v.clamp ([0,1] saturation). The v.opsel != 0 arms at 4486-4504 handle all modifiers properly via half_fsrc and float_result.
  • Edge-Case / Verification Note: Alternative hypothesis: Xbox shaders might never emit VOP3 v_cvt_f32_f16_e64 with abs/neg and op_sel:[0]. Falsification: run a synthetic shader test with v_cvt_f32_f16_e64 v0, -v1 and v_cvt_f16_f32_e64 v0, v1 clamp and check DXIL output.
  • Synthetic Reproducer: Assemble v_cvt_f32_f16_e64 v0, -v1 (v1 = 0x3C00 / +1.0h) -> expected -1.0f (0xBF800000), observed +1.0f (0x3F800000). Assemble v_cvt_f16_f32_e64 v0, v1 clamp (v1 = 2.0f) -> expected 0x3C00, observed 0x4000.
  • Proposed Fix & Risk: - Fix: Remove the two redundant if v.opsel == 0 early arms at 4110-4121 and 4147-4153 so all encodings route through 4486-4504.
  • Regression Risk: Low; unifies code paths already tested for op_sel != 0. (Estimated size: XS)

29. VIC-BT-029 — v_interp_p2_f16 lowering ignores VOP3 op_sel[3] (high destination half), clamp, and omod modifiers (P1)

  • Location: crates/victory-shader/src/emit/lower.rs lines 5541-5559
  • Prior-Work Check: 0% overlap across Marvisak_VIctory (#456 is v_interp_p1lv_f16 raising; #683 comment is v_interp_p1ll_f16 overwriting 32 bits; 0 hits for v_interp_p2_f16 op_sel[3] or clamp/omod).
  • Root Cause: In crates/victory-shader/src/emit/lower.rs (lines 5541-5559), interp() handles v_interp_p2_f16 (decoded as Fields::Valu(v), opcode 0x35a in gfx10/opcodes.rs) by calling self.low_half(inst, reg, lo) unconditionally and writing via self.write(inst, Reg::V(reg), x, None). Unlike valu16_op()/write_half() (lines 4367-4405, 4490-4500), interp() never inspects v.opsel >> 3 & 1 to place the FP16 result in bits [31:16] while preserving bits [15:0], nor does it apply v.clamp (saturate to [0, 1]) or v.omod before converting to f16 via legacyF32ToF16.
  • Edge-Case / Verification Note: Verified in io.rs:362 and gfx10/opcodes.rs:752 that v_interp_p2_f16 is decoded as Fields::Valu(v) with full VOP3 fields (opsel, clamp, omod). On RDNA2, the console compiler routinely packs two 16-bit interpolated channels into a single VGPR by emitting v_interp_p2_f16 vN, ... (op_sel[3]=0) followed by v_interp_p2_f16 vN, ... op_sel:[0,0,0,1] (op_sel[3]=1). With low_half() hardcoded, the second instruction clobbers channel 0 in the low half and leaves channel 1 in the high half stale.
  • Synthetic Reproducer: Translate a pixel shader with a packed FP16 input attribute interpolated via v_interp_p1ll_f16 followed by v_interp_p2_f16 v0, v1, attr0.y, v0 op_sel:[0,0,0,1] (or with clamp). Inspect emitted DXIL: the result is masked into bits [15:0] of v0 instead of [31:16], and no saturate/omod is emitted.
  • Proposed Fix & Risk: - Fix: In interp() (lower.rs:5541-5559), apply v.omod and v.clamp on the f32 value before legacyF32ToF16 when inst.fields is Fields::Valu(v), and write the resulting f16 using self.write_half(inst, lo, None) instead of self.low_half() + self.write().
  • Regression Risk: Low; reuses the existing, tested write_half() and clamp/omod paths already used by all other 16-bit VOP3 VALU instructions. (Estimated size: S)

30. VIC-BT-030 — v_readlane_b32 and v_writelane_b32 do not mask lane index to S1[4:0] (Wave32) / S1[5:0] (Wave64) (P1)

  • Location: crates/victory-shader/src/emit/lower.rs, crates/victory-shader/src/emit/wave.rs lines lower.rs:4205-4232, wave.rs:321-333
  • Prior-Work Check: Searched all 3,661 VIctory records for v_readlane_b32, v_writelane_b32, and lane index masking/wrapping (0 hits).
  • Root Cause: Verified on RDNA2 silicon (ProjectLeonidaL/leonida design.md:265, cs_w32_lane_wrap.asm: lane 40 wraps to lane 8 in Wave32), RDNA2 hardware masks the S1 lane-select operand of v_readlane_b32 and v_writelane_b32 to S1 & 31 in Wave32 and S1 & 63 in Wave64. lower.rs:4205-4232 passes lane unmasked directly into waveReadLaneAt and into lane_id == lane, causing out-of-range lane indices (>= 32 in Wave32 or >= 64 in Wave64) to trigger DXIL UB on v_readlane_b32 and silently drop writes on v_writelane_b32.
  • Edge-Case / Verification Note: Alternative hypothesis: compilers might always emit lane indices < wave_size. Falsification: shaders that compute lane indices from m0 or packed SGPR counters (e.g., upper bits carrying unrelated metadata) rely on hardware 5-bit/6-bit masking; cs_w32_lane_wrap.asm explicitly tests lane 40 -> 8.
  • Synthetic Reproducer: Wave32 compute shader: v_mov_b32 v0, lane_id; s_mov_b32 s0, 40; v_readlane_b32 s1, v0, s0. Hardware returns s1 = 8; VIctory calls waveReadLaneAt(v0, 40) (DXIL UB).
  • Proposed Fix & Risk: - Fix: Mask lane with self.b.and(lane, self.b.i32_const(wave_size - 1)) (31 for Wave32, 63 for Wave64) in both v_readlane_b32 and v_writelane_b32.
  • Regression Risk: Very low; single bitwise AND instruction. (Estimated size: XS)

31. VIC-BT-031 — v_writelane_b32 gates its destination write with EXEC, silently dropping SGPR spills to inactive lanes (P1)

  • Location: crates/victory-shader/src/emit/lower.rs lines 4217-4232
  • Prior-Work Check: Searched all 3,661 VIctory records for v_writelane_b32 and EXEC / guard (0 hits; #320 is CFG structurization and #659 is mesh v5).
  • Root Cause: Per the RDNA2 ISA, v_writelane_b32 ignores EXEC completely so the compiler can spill SGPRs into any lane of a dedicated spill VGPR even inside divergent control flow where the target lane's EXEC bit is 0. lower.rs:4217-4232 writes the selected value using int(self, r) which applies the current EXEC guard, silently dropping the write whenever the target lane is inactive and corrupting the spilled SGPR when restored later via v_readlane_b32.
  • Edge-Case / Verification Note: Alternative hypothesis: DXC might only spill SGPRs to lane 0 when lane 0 is active. Falsification: divergent if/else branches where lane 0 takes the else path routinely spill SGPRs inside the then branch (where EXEC[0] == 0) using v_writelane_b32.
  • Synthetic Reproducer: Wave32 compute shader: v_mov_b32 v5, 0; s_mov_b32 exec_lo, 0xFFFFFFFE; v_writelane_b32 v5, 0xCAFEBABE, 0; v_readlane_b32 s0, v5, 0. Hardware restores s0 = 0xCAFEBABE; VIctory drops the write because EXEC[0] == 0 and restores s0 = 0.
  • Proposed Fix & Risk: - Fix: Write the select(lane_id == masked_lane, src0, old_vdst) result unconditionally to vdst in lower.rs:4217-4232, bypassing the EXEC guard.
  • Regression Risk: Low; matches RDNA2 ISA where v_writelane_b32 is explicitly non-EXEC-masked. (Estimated size: XS)

32. VIC-BT-032 — xgameruntime.rs & COM HLE vtables: Slot 0 (QueryInterface) wired to missing::<0> returning E_NOTIMPL across all GDK and DirectStorage COM objects (P1)

  • Location: crates/victory-hle/src/modules/xgameruntime.rs, crates/victory-hle/src/modules/dstorage.rs, crates/victory-hle/src/modules/xasync.rs, crates/victory-hle/src/modules/xuser.rs, crates/victory-hle/src/modules/xgamesave.rs lines dstorage.rs:239,264,299,986; xasync.rs:991; xuser.rs:273; xgamesave.rs:908
  • Prior-Work Check: Verified 0 hits across Marvisak_VIctory corpus for missing::<0> or xgameruntime QueryInterface.
  • Root Cause: Every COM vtable in dstorage.rs and all xgameruntime provider modules sets slot 0 to xgameruntime::missing::<0>, which logs an unimplemented warning and returns E_NOTIMPL (0x80004001) without inspecting riid or zeroing *out.
  • Edge-Case / Verification Note: GDK C thunks obtain interfaces via QueryApiImpl rather than QI, but DirectStorage C++ callers (using ComPtr / As()) and any COM identity check invoke slot 0 directly.
  • Synthetic Reproducer: Call slot 0 (QueryInterface) on the factory returned by DStorageGetFactory with IID_IUnknown or FACTORY GUID; returns E_NOTIMPL instead of S_OK.
  • Proposed Fix & Risk: - Fix: Add a shared query_interface helper on Object / Instance that checks null out (E_POINTER), accepts IID_IUnknown and registered IIDs (calling AddRef and returning S_OK), and otherwise sets *out = null and returns E_NOINTERFACE.
  • Regression Risk: Low; standardizes COM compliance across all HLE vtables. (Estimated size: M)

33. VIC-BT-033 — xgameui.rs: dialog::procedure dereferences GWLP_USERDATA without null check on WM_COMMAND (P1)

  • Location: crates/victory-hle/src/modules/xgameui.rs lines 216-229
  • Prior-Work Check: Verified 0 hits across Marvisak_VIctory corpus for gwlp_userdata / WM_COMMAND null deref.
  • Root Cause: At xgameui.rs:217, the WM_COMMAND arm unconditionally executes let entry = &mut *(wm::GetWindowLongPtrW(dialog, wm::GWLP_USERDATA) as *mut Entry); before even checking whether LOWORD(wparam) is IDOK or IDCANCEL. In Rust, creating &mut *null_ptr is immediate UB regardless of whether entry is later used.
  • Edge-Case / Verification Note: In many dialog runs WM_INITDIALOG arrives before user-triggered IDOK/IDCANCEL, but child control notifications (EN_UPDATE/EN_CHANGE) or messages sent during dialog creation routinely trigger WM_COMMAND with GWLP_USERDATA == 0, which already creates an invalid &mut Entry reference at line 217 before matching _ => return 0.
  • Synthetic Reproducer: Invoke dialog::procedure(hwnd, WM_COMMAND, EN_CHANGE << 16 | EDIT, 0) when GWLP_USERDATA is 0; immediately forms &mut *(0 as *mut Entry) (UB / debug panic / crash).
  • Proposed Fix & Risk: - Fix: Check let ptr = wm::GetWindowLongPtrW(dialog, wm::GWLP_USERDATA) as *mut Entry; if ptr.is_null() { return 0; } (and only dereference inside the IDOK arm).
  • Regression Risk: Low; eliminates guaranteed UB on early WM_COMMAND notifications. (Estimated size: S)

34. VIC-BT-034 — xpackage.rs: XPackageUnregisterInstallationProgressChanged (slot 0x50) wired to missing::<10> returning HRESULT instead of bool (P1)

  • Location: crates/victory-hle/src/modules/xpackage.rs lines 270-284
  • Prior-Work Check: Verified 0 hits across Marvisak_VIctory corpus for XPackageUnregisterInstallationProgressChanged or xpackage slot 0x50.
  • Root Cause: xpackage.rs implements XPackageRegisterInstallationProgressChanged at vtable slot 9 (0x48) returning a live registration token, but wires slot 10 (0x50, XPackageUnregisterInstallationProgressChanged(token, wait) -> bool) to missing::<10> (line 282), which returns HRESULT E_NOTIMPL (0x80004001).
  • Edge-Case / Verification Note: On x64, low byte AL of 0x80004001 happens to be 0x01 (true), masking immediate failure in callers that only test boolean truthiness, but it leaves any future callback registration state uncleaned and emits spurious unimplemented-slot warnings during normal teardown.
  • Synthetic Reproducer: Call vtable slot 0x48 on XPackage to obtain a token, then call slot 0x50 with (this, token, true); missing::<10> fires and returns 0x80004001.
  • Proposed Fix & Risk: - Fix: Implement unregister_progress(_: This, _token: u64, _wait: bool) -> bool { true } (matching xgame.rs/xnetworking.rs) and wire it to vtable slot 10 (0x50) in xpackage.rs.
  • Regression Risk: Low; trivial ABI-correct implementation matching paired registration slot. (Estimated size: S)

35. VIC-BT-035 — Host::execute() calls ID3D12CommandQueue::ExecuteCommandLists with 0 lists when runs is empty (P2)

  • Location: crates/victory-gpu/src/host.rs, crates/victory-gpu/src/queue.rs lines host.rs:500-543; queue.rs:114-128
  • Prior-Work Check: 0% overlap across Marvisak_VIctory (0 hits for runs.is_empty or ExecuteCommandLists with 0 lists).
  • Root Cause: In crates/victory-gpu/src/queue.rs (lines 114-128), execute() collects host_lists via filter_map and calls host.execute(&host_lists) without checking whether host_lists.is_empty(). In host.rs (lines 500-543), Host::execute() builds an empty lists Vec and (when diagnostics timing is off) sets groups = [&lists[..]] containing a single empty slice &[], then calls self.queue.ExecuteCommandLists(&[]) at line 532. D3D12 specifies that NumCommandLists must be >= 1, causing debug-layer errors and undefined behavior on some drivers/vkd3d-proton.
  • Edge-Case / Verification Note: Checked both #[cfg(feature = "diagnostics")] and non-diagnostics branches of host.rs:515-527: in non-diagnostics (release) builds, groups = [&lists[..]] ALWAYS has length 1 even when lists is empty, so self.queue.ExecuteCommandLists(&[]) is guaranteed to execute.
  • Synthetic Reproducer: Call ID3D12CommandQueue::ExecuteCommandLists(0, non_null_ptr) on a Windows host build with the D3D12 debug layer enabled: Host::execute() invokes queue.ExecuteCommandLists(&[]) with NumCommandLists == 0.
  • Proposed Fix & Risk: - Fix: Return early at the top of Host::execute() when runs.is_empty() (and skip ExecuteCommandLists if lists.is_empty()).
  • Regression Risk: None; early return on empty submissions is strictly safer and eliminates unnecessary fence stalls. (Estimated size: S)

36. VIC-BT-036 — XMemAllocatePhysicalPages never recycles freed page numbers (monotonic next_page growth) (P2)

  • Location: crates/victory-hle/src/modules/xmem.rs lines 433-464
  • Prior-Work Check: Searched all 3,661 VIctory records for next_page and XMemFreePhysicalPages recycling (0 hits).
  • Root Cause: XMemAllocatePhysicalPages monotonically bumps physical.next_page += n * FRAMES, while XMemFreePhysicalPages removes entries from physical.pages without recycling the page numbers. If a title packs (number >> 4) into a 21-bit field (as documented at 448-450), cumulative streaming churn exceeding 128 GiB wraps/truncates page numbers even with low peak live memory.
  • Edge-Case / Verification Note: Alternative hypothesis: short runs (<15 min) may not churn 128 GiB of physical pages. Falsification: unit test looping XMemAllocatePhysicalPages/XMemFreePhysicalPages proves unbounded next_page growth past 1 << 25.
  • Synthetic Reproducer: Synthetic Rust unit test calling XMemAllocatePhysicalPages(2) + XMemFreePhysicalPages(2) 1,048,577 times -> number >> 4 >= (1 << 21) while live pages == 0.
  • Proposed Fix & Risk: - Fix: Add a free_pages: Vec<usize> (or interval free-list) in Physical populated by XMemFreePhysicalPages and popped before incrementing next_page.
  • Regression Risk: Low; page numbers are opaque handles once freed. (Estimated size: S)

37. VIC-BT-037 — dstorage.rs: open_file clobbers GetLastError() via heap allocation before last_os_error() and omits FILE_SHARE_WRITE | FILE_SHARE_DELETE (P2)

  • Location: crates/victory-hle/src/modules/dstorage.rs lines 125-143
  • Prior-Work Check: Verified 0 hits across Marvisak_VIctory corpus for dstorage last_os_error / file_share.
  • Root Cause: In dstorage.rs:125-143, open_file calls super::files::CreateFileW with share mode FILE_SHARE_READ (1) only, then immediately allocates a UTF-8 String (lines 135-138) BEFORE checking handle as isize == -1 and reading std::io::Error::last_os_error() (line 140).
  • Edge-Case / Verification Note: The Windows heap allocator does not always overwrite LastError on every allocation, making the error-code corruption intermittent, and read-only archive files do not trigger sharing violations unless also opened for write/delete.
  • Synthetic Reproducer: Call IDStorageFactoryX::OpenFile on a path already opened with GENERIC_READ | GENERIC_WRITE + FILE_SHARE_READ | FILE_SHARE_WRITE; fails with ERROR_SHARING_VIOLATION. On failure under heap pressure, last_os_error() reads post-allocation LastError.
  • Proposed Fix & Risk: - Fix: Capture std::io::Error::last_os_error() immediately after handle as isize == -1 before formatting name, and pass FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE (7) to CreateFileW.
  • Regression Risk: Low; standard Win32 best practice. (Estimated size: S)

38. VIC-BT-038 — image_get_resinfo returns 1 instead of 0 for unused depth channels on 1D / 2D / 1D-Array views (P2)

  • Location: crates/victory-shader/src/emit/lower.rs lines 5811-5826
  • Prior-Work Check: Issue #720 only reports Cube array size returning 1; unused 1D/2D/1DArray depth channel returning 1 instead of 0 is unreported.
  • Root Cause: Line 5821-5822 returns one (1) whenever !present[ch]. Native RDNA2 (gfx1036, Leonida/tools/image_query_probe.py) returns 0 for unused depth words on 2D and 1D/1D-array views.
  • Edge-Case / Verification Note: Alternative hypothesis: HLSL Texture2D.GetDimensions never reads channel 2. Falsification: raw RDNA2 shaders issuing image_get_resinfo dmask:0xF inspect channel 2 to distinguish 2D (0) vs 3D/Array (>0).
  • Synthetic Reproducer: image_get_resinfo v[0:3], v0, s[0:7] dmask:0xF on a 2D SRV -> expected v2 == 0, observed v2 == 1.
  • Proposed Fix & Risk: - Fix: Return 0 for ch < 3 && !present[ch], retaining 1 only for ch == 3 && uav.
  • Regression Risk: Very low. (Estimated size: XS)

39. VIC-BT-039 — net.rs: resolvable() blocks the local machine's own hostname (gethostname) with WSAHOST_NOT_FOUND (P2)

  • Location: crates/victory-hle/src/modules/net.rs lines 179-192
  • Prior-Work Check: Verified 0 hits across Marvisak_VIctory corpus for gethostname / resolvable.
  • Root Cause: resolvable() in net.rs:179-192 only permits empty strings, 'localhost', and literal loopback IPs (127.0.0.0/8, ::1). Any other hostname, including the local computer's own hostname returned by gethostname(), is rejected with WSAHOST_NOT_FOUND.
  • Edge-Case / Verification Note: Offline blocking is intended to prevent DNS leaks and external connections, not to break local-interface discovery via the machine's own hostname.
  • Synthetic Reproducer: Call gethostname(&mut buf) and pass buf to getaddrinfo(); net.rs rejects it with WSAHOST_NOT_FOUND.
  • Proposed Fix & Risk: - Fix: Cache the local hostname (from gethostname / COMPUTERNAME) and allow case-insensitive matches in resolvable() (optionally returning loopback if strict offline isolation is desired).
  • Regression Risk: Low; prevents false-positive blocks on local-only networking initialization. (Estimated size: S)
  • Location: crates/victory-hle/src/modules/storage.rs lines 90-102
  • Prior-Work Check: Verified 0 hits across Marvisak_VIctory corpus for storage.rs symlink / used_bytes.
  • Root Cause: used_bytes() at storage.rs:90-102 calls e.metadata() (which dereferences symlinks and Windows directory junctions) instead of e.file_type() (which reports reparse points as is_symlink() without traversing them), and recursively calls used_bytes(&e.path()) without a cycle guard.
  • Edge-Case / Verification Note: Normal titles do not intentionally create junction loops inside PLS, but user-configured junctions or symlinked save directories are common on Windows PCs.
  • Synthetic Reproducer: Create a Windows directory junction (mklink /J) inside the title's PLS directory pointing to its parent directory and call XPersistentLocalStorageGetSpaceInfo; process overflows the stack.
  • Proposed Fix & Risk: - Fix: Check let Ok(ft) = e.file_type() and skip entries where ft.is_symlink() (and iterate using an explicit stack rather than recursion), mirroring xcl's pls_used_bytes().
  • Regression Risk: Low; prevents stack overflow and keeps quota accounting confined to in-tree files. (Estimated size: S)

41. VIC-BT-041 — v_fma_mixlo_f16 / v_fma_mixhi_f16 double-rounds through binary32 instead of single-rounding to binary16 (P2)

  • Location: crates/victory-shader/src/emit/lower.rs lines 4071-4098
  • Prior-Work Check: Searched all 3,661 VIctory records for v_fma_mix. PR #683 covers missing old-dst fallback; PR #661 covers VOP3P neg; PR #78 covers inline constants; none address binary32->binary16 double rounding.
  • Root Cause: Line 4071 computes fmad to binary32 then narrows via legacyF32ToF16. Native RDNA2 (gfx1036) hardware measurements (Leonida/tools/fma_mix_probe.py) proved hardware rounds the exact a*b + c once, directly to binary16, differing by 1 f16 ULP on all 7 midpoint tie classes.
  • Edge-Case / Verification Note: Alternative hypothesis: 1 f16 ULP rarely causes visible artifacts except in precision-sensitive lighting/normal packing. Falsification: fma_mix_probe.py tie inputs (1.0*1.0 + (2^-11 + 2^-30) -> 0x3C01 hw vs 0x3C00 double-rounded).
  • Synthetic Reproducer: Synthetic shader: v_fma_mixlo_f16 on a=1.0, b=1.0, c=0x3A000001 -> expected 0x3C01, observed 0x3C00.
  • Proposed Fix & Risk: - Fix: Implement round-to-odd in binary32 (exact fmad + error term sticky bit) prior to legacyF32ToF16.
  • Regression Risk: Low; pure arithmetic precision improvement. (Estimated size: M)

42. VIC-BT-042 — v_mad_f16 / v_mac_f16 conflated with fused v_fma_f16 and double-rounded through binary32 (P2)

  • Location: crates/victory-shader/src/emit/lower.rs lines 4538-4541
  • Prior-Work Check: Searched all 3,661 VIctory records for v_mad_f16 / v_mac_f16 (0 hits).
  • Root Cause: Line 4541 lowers both unfused (v_mad_f16/v_mac_f16) and fused (v_fma_f16/v_fmac_f16) ops identically to binary32 fmad + legacyF32ToF16. Unfused v_mad_f16 must round a * b to binary16 before adding acc; fused v_fma_f16 must single-round to binary16.
  • Edge-Case / Verification Note: Alternative hypothesis: minimal visual impact outside half-precision lighting/accumulation loops. Falsification: a = 256.0h, b = 256.0h, c = -65504.0h overflows a*b to +inf in unfused v_mad_f16 (+inf), whereas fused v_fma_f16 yields 32.0h.
  • Synthetic Reproducer: v_mad_f16 with a = 256.0h, b = 256.0h, c = -65504.0h -> expected +inf (0x7C00), observed 32.0h (0x5000).
  • Proposed Fix & Risk: - Fix: For v_mad_f16/v_mac_f16, round a * b through legacyF32ToF16 -> legacyF16ToF32 before adding acc; for v_fma_f16/v_fmac_f16, apply round-to-odd before narrowing.
  • Regression Risk: Low. (Estimated size: S)

43. VIC-BT-043 — v_mad_f32 / v_mac_f32 / v_mad_legacy_f32 omit unconditional subnormal flush before and after omod (P2)

  • Location: crates/victory-shader/src/emit/lower.rs lines 3925-3960
  • Prior-Work Check: Searched all 3,661 VIctory records for v_mad_f32 denorm. PR #682 only handles 0 * denorm = 0 in legacy_mul; does not flush subnormals in v_mad_f32/v_mac_f32 or around omod.
  • Root Cause: Measured on native RDNA1 (gfx1010, RX 5600 XT, Leonida/tools/mad_denorm_probe.py, 48/48 cases), v_mad_f32, v_mac_f32, and v_mad_legacy_f32 unconditionally flush subnormal inputs, products, sums, and omod outputs regardless of MODE.denorm32.
  • Edge-Case / Verification Note: Alternative hypothesis: many D3D12 drivers flush f32 denorms by default in DXIL. Falsification: SM 6.2+ / NVIDIA drivers preserve f32 denorms on certain ops, causing (1.5*2^-126 - 2^-126) mul:2 to return FLT_MIN instead of +0.0.
  • Synthetic Reproducer: Synthetic v_mad_f32 v0, 1.5, 0x00800000, -0x00800000 mul:2 -> expected +0.0, observed 0x00800000 when denorms are kept.
  • Proposed Fix & Risk: - Fix: Flush f32 subnormals before and after omod in v_mad*/v_mac*.
  • Regression Risk: Low. (Estimated size: S)

44. VIC-BT-044 — write_f omod (mul:2/mul:4/div:2) preserves -0.0 instead of flushing -0.0 to +0.0 per RDNA2 hardware (P2)

  • Location: crates/victory-shader/src/emit/lower.rs lines 1792-1799
  • Prior-Work Check: Searched all 3,661 VIctory records for omod and -0.0 / flush (0 hits).
  • Root Cause: Measured on RDNA2 silicon (Kajcsi/G6Recomp docs/shaders.md:764,1060; ProjectLeonidaL/leonida shader_validation.md:1970), applying VOP3 output modifiers omod (mul:2, mul:4, div:2) to -0.0 flushes the sign bit to +0.0. lower.rs:1792-1799 emits plain IEEE FMul(val, 2.0/4.0/0.5), which preserves -0.0, breaking downstream sign-bit checks, v_cmp_class, or copysign / v_min_f32 tie-breakers.
  • Edge-Case / Verification Note: Alternative hypothesis: -0.0 vs +0.0 rarely affects rendering outputs. Falsification: normal-map oct-encoding, shadow-map sign bits, and v_min_f32/v_max_f32 (where -0.0 < +0.0 on RDNA2) observe the sign of zero directly.
  • Synthetic Reproducer: Assemble v_add_f32_e64 v0, -0.0, -0.0 mul:2. On RDNA2 hardware, v0 == 0x00000000 (+0.0); VIctory produces 0x80000000 (-0.0).
  • Proposed Fix & Risk: - Fix: When omod != 0 in write_f, flush -0.0 to +0.0 (e.g. select(bitcast(res) == 0x80000000, +0.0, res) or FAdd(res, +0.0) under strict float semantics).
  • Regression Risk: Very low; gated strictly on omod != 0. (Estimated size: XS)

45. VIC-BT-045 — xsystem.rs: XSystemGetAnalyticsInfo reports family as 'Xbox' instead of GDK-documented 'Windows.Xbox' (P2)

  • Location: crates/victory-hle/src/modules/xsystem.rs lines 105-115
  • Prior-Work Check: Verified 0 hits across Marvisak_VIctory corpus for Windows.Xbox.
  • Root Cause: analytics_info() at xsystem.rs:109 sets family: text("Xbox"). Per Microsoft GDK documentation for XSystemAnalyticsInfo::family (and matching xcl's xgameruntime/mod.rs:278), Xbox consoles report "Windows.Xbox".
  • Edge-Case / Verification Note: Titles that only inspect form ("Xbox Series X" / "Xbox Series S") or XSystemGetDeviceType() are unaffected, but engines using family for platform branching expect "Windows.Xbox".
  • Synthetic Reproducer: Call ANALYTICS_VTABLE slot 0x18 (analytics_info) and inspect info.family; returns "Xbox\0" instead of "Windows.Xbox\0".
  • Proposed Fix & Risk: - Fix: Change family: text("Xbox") to family: text("Windows.Xbox") at xsystem.rs:109 and update unit test coverage.
  • Regression Risk: Low; matches documented Xbox GDK return value. (Estimated size: S)

3. Prioritized Existing Canonical Backlog (150 Open Issues & Active PRs)

Deduplicated so open PRs targeting an open issue are grouped under the canonical issue rather than counted twice. Ranked by priority (P0 asset loading / rendering / crashes → P1 Wave32 / CPU / VRAM / shader & tiling correctness → P2 sync / audio / performance → P3 hardening / tests).

# Priority Canonical Related Open PRs Size Title
1 P0 #71 #185;#189;#279;#346;#436;#439;#454;#483;#550;#562;#635;#638 L NVIDIA RTX 5070 Ti: world hang (DEVICE_HUNG) on 97c78d1 is not one program, not loops, not barriers; 77 compute pipelines refused
2 P0 #181 #244;#284;#357;#358;#359;#412;#447;#591 XS Tests: victory-shader tests crash (0xC0000005) when several tests use WARP devices in parallel
3 P0 #97 #189;#279;#281;#334;#457;#483 XS Host GPU device removed on RTX 4070 (diag build, DRED) - many shaders fail to translate
4 P0 #471 #472;#484;#501;#602 XS World load dies at the commit limit (18.0 GB private, 48.8 of 49.0 GB system commit)
5 P0 #144 #151;#259;#491 L Wine + vkd3d-proton on NVIDIA: the driver crashes in vkCreateComputePipelines while the world loads (0xc000001d / 0xc0000005, earlier stack overflows)
6 P0 #264 #334;#352;#483 L NVIDIA RTX 5070 Ti Laptop: device hung entering world (vertex buffer left in UAV state) + wave64 shaders refused
7 P0 #170 #190;#235;#347 L Wine/vkd3d: indirect execution is dropped because the argument clamp cannot be compiled there; rewriting its HLSL does not help
8 P0 #23 #224;#538;#561 XS Title stops at startup when Windows can't commit a 6.5 GB XMemVirtualAlloc (paging file too small, os error 1455)
9 P0 #557 #575;#609 L World entry after #336: device removed reading freed streaming textures (page fault inside freed texture 1024x1024)
10 P0 #407 #472;#501 L GPU: one address space for title memory, instead of copying it (arena over a CPU-visible heap)
11 P0 #304 #427;#575 L [Crash / TDR] Host GPU device removed (0x887A0006) ~55s after Mission 1 title card on RX 9070 XT
12 P0 #125 #145;#269 XS Shaders: mask ops in a pixel/vertex program never read the high ballot half, so a 64-lane host wave loses lanes 32-63
13 P0 #622 #623;#648 L Windows 10 + RTX 4070 SUPER: three verified fixes get the title past Game Init into the render loop
14 P0 #610 #615;#695 XS Diagnostics: VICTORY_D3D12_WARP=0 still selects the software adapter
15 P0 #400 #436;#440 XS World on an RTX 5070 Ti: where the ~0.8 s per frame go, and four open copy PRs measured against main
16 P0 #106 #213;#558 XS Crash with 0xc000001d (illegal instruction): game uses AMD-only CLZERO, unsupported on Intel CPUs
17 P0 #8 #12;#704 L RTX 3080 Ti: first-chance 0x80000003 at title+0x2237178 before any window — menus never reached here
18 P0 #103 #213;#558 XS Crash: 0xc000001d (STATUS_ILLEGAL_INSTRUCTION) at +0x4ecc84a on Intel Core i3-10100F
19 P0 #102 #213;#558 XS GTA VI crashes with 0xC000001D on Xeon E5-2630 v4
20 P0 #653 #694 L World load removes the host D3D12 device — on the real GPU (0x887A0006) and on WARP (0x887A0005)
21 P0 #468 #537 L NVIDIA RTX 4060 Laptop: world is black (114 compute pipelines refused with E_INVALIDARG), then GPU fault after ~2 min
22 P0 #392 #581 L NVIDIA (RTX 3080): device removed on null/unsupported views during world load — two fixes + one open hang
23 P0 #325 #500 L RTX 4090: 1 fps in the first cutscene, then host GPU hang (DXGI_ERROR_DEVICE_HUNG)
24 P0 #548 #588 XS RTX 3070 Ti: DXGI_ERROR_DEVICE_HUNG in the world; debug layer reports a title buffer in UAV state used as vertex buffer
25 P0 #508 #568 L GPU: writing unbound UAVs removes the device on an RDNA3 iGPU
26 P0 #199 #334 L NVIDIA RTX 4070 SUPER: D3D12 resource state validation failure when binding title buffer as vertex buffer
27 P0 #598 #626 XS Crash 0xc0000005 on world load due to unsupported root signature flags (c01/c00)
28 P0 #714 #346 XS Linux (Proton + vkd3d-proton, Strix Halo RADV): GPU page fault (texture read) 1.5–4 min in, DRED never reports because the title's own hang check exits first
29 P0 #386 #409 XS RTX 5090 test: GetCopyableFootprints returns different row sizes and base offsets than native D3D12
30 P0 #3 #189 L compute shaders fallback
31 P0 #289 #538 XS Crash right after "audio DSP connected": title memsets unmapped address 0x217800 (len 0x2173a0)
32 P0 #155 #193 L Structured buffers: runtime stride channel (design + anchors)
33 P0 #108 #558 XS Title crashes on CPUs without CLWB support (STATUS_ILLEGAL_INSTRUCTION 0xc000001d)
34 P0 #210 #558 M 0xc000001d Illegal instruction (CLWB) crash on AMD Ryzen 7
35 P0 #630 #648 L Cross-project site map: the title's two deliberate self-kills, the 8-GB int3, and the cold-run sentinel family (exe hash e95020b2…)
36 P0 #85 #189 L Intel host support (CLWB/CLZERO/MONITORX/SSE4a emulation) + GPU hang on NVIDIA at the language screen
37 P0 #29 #130 XS RX 9070 XT (RDNA4, Adrenalin 26.11.2): first-boot menus 30 fps for 4 min, no device loss (NVIDIA hangs do not reproduce)
38 P0 #59 — XS RX 9060 XT (RDNA4) / Host GPU device removed (DXGI_ERROR_DEVICE_HUNG) with page fault at 0x1a00b0000 in world
39 P0 #732 — XS What's needed right now to get the game further?
40 P0 #578 #578 L GPU: refuse wave64 mesh and compute programs on hosts without 64-lane waves
41 P0 #700 — M GPU: a command-list 64-bit memory wait lets the consumer read before its producer writes
42 P0 #493 #493 L GPU: bind root SRVs as one-view tables bounded to their host copy
43 P0 #413 #413 XS GPU: materialize bindless ResourceDescriptorHeap views, refreshing only changed slots
44 P0 #89 #89 XS gpu: packed 16-bit render targets are R8G8B8A8 where the GPU cannot render to them
45 P0 #177 #177 XS Shaders: key heap handles by element type (atomic on a float-read UAV)
46 P0 #180 #180 L Shaders: twin descriptor loads and quad gradients for compute samples
47 P0 #758 — M A texture that once received a GPU copy ignores later writes to its memory
48 P0 #597 — L DXGI_ERROR_DEVICE_HUNG (0x887A0006) at world load on 9070xt; many compute shaders fail to translate
49 P0 #340 — XS Feature request: experimental Linux/Wine support and compatibility documentation
50 P0 #571 #571 XS Shaders: LDS byte and half accesses
51 P0 #628 #628 L Shaders: lower ds_min_f32 / ds_max_f32 (and _rtn) with RDNA2's NaN rules
52 P0 #539 #539 XS Shaders: 64-bit image atomics
53 P0 #489 #489 L Shaders: spill-table loads read the arguments as they were on entry (stacked on #302)
54 P0 #453 #453 XS Shaders: pixel barycentrics through SV_Barycentrics (values and computed interpolation)
55 P0 #431 #431 L GPU: free host textures only after running submissions, and make them on first use
56 P0 #747 — L NVIDIA capped view heap: 2^16 dynamic slots starve world tables; 2^18 removes the indirect/mesh drops
57 P0 #707 #707 XS Shaders: lower tbuffer_store_format_* that need no conversion
58 P0 #683 #683 L Shaders: zero unavailable mixed-precision FMA halves
59 P0 #586 #586 L Shaders: honor the mesh allocation request counts
60 P0 #573 #573 L Shaders: lower ds_bpermute_b32
61 P0 #458 #458 L Fix GPU hangs, memory leak, and mesh shader exports; render intro cre…
62 P0 #305 #305 XS Shaders: lower 64-bit image atomics
63 P0 #192 #192 L Shaders: replace single-wave Wave64 LDS lockstep with barriers and lower 32-lane swizzle/DPP at WaveSize(32)
64 P0 #786 — L [GFX10] Device Removed (0x887A0006) after untranslatable compute shaders — GTA 6 Scarlett-Master
65 P0 #783 — XS GPU: a copy that meets an unmapped page retries in 64 KiB kernel calls (2 300-2 500 a world frame); one query per region is 2.3x cheaper
66 P0 #742 — XS Windows 10: unwinds_like_the_system_walk fails about half the time (RtlCaptureStackBackTrace returns no frames)
67 P0 #698 — XS World load on NVIDIA with no device removal: title breakpoint (0x80000003) after ~6.7 min, INSTANCE_LIST pool full (45000/45000)
68 P0 #619 — L RTX 3060 (8 GB): DXGI_ERROR_DEVICE_HUNG in world load (mesh 1da1eb9822214321, pixel ef9b757c9c1e4b26, command 1733/2145)
69 P0 #596 #596 XS Shaders: lower v_cvt_pknorm_{i16,u16}_{f32,f16} with exact rounding
70 P0 #178 #178 XS GPU: compile the indirect-argument clamp with DXC when D3DCompile refuses it (Wine/Proton)
71 P0 #752 — XS Linux on AMD: got in-game on a 9070 XT, here's what each crash was
72 P0 #708 #708 XS fix(config): keep the data directory out of the cache root
73 P0 #688 #688 L GPU: take back the dynamic descriptor slots of lists that ran when a heap runs short
74 P0 #592 #592 XS Shaders: second rows of packed 16-bit pixel inputs
75 P0 #469 #469 XS GPU: give depth targets their unordered access through a twin texture
76 P0 #465 #465 XS Shaders: lower v_dot2_f32_f16 and v_dot2c_f32_f16
77 P0 #452 #452 XS Shaders: spin-wait loops stop after 4096 iterations; loop limit in release builds
78 P0 #444 — M IMPORTANT! Creating a decentralized chat for communication and coordination. Stage 1
79 P0 #309 #309 L Shaders: forward SGPRs reloaded from VGPR lanes as the spilled value
80 P0 #298 #298 L Shaders: lane masks spilled to VGPR lanes and read back
81 P0 #211 #211 XS GPU: composite multiple PresentX planes (fixes Series S black UI/menus)
82 P0 #785 — XS Placed buffer-to-texture copy reads stale data after a same-list GPU write
83 P0 #778 — L [NVIDIA RTX 3070] World TDR traced to wave64 mesh shaders (DRED per run); #578 removes the hang, world then renders black
84 P0 #776 — XS GPU: write-watch askings repeat over nested buffers (120-180 ms a world frame); a fix is on a branch
85 P0 #771 — XS Resource-backed texture UAV clears are missing from command lists
86 P0 #736 — M Shaders: #612 stops 323 previously validated programs from translating
87 P0 #606 #606 L Shaders: ds_swizzle_b32 offsets from 0xC000 are the rotate and FFT modes
88 P0 #605 #605 XS Shaders: v_cvt_rpi_i32_f32 rounds the exact sum; v_cvt_flr/rpi_i32_f32 saturate a NaN by its sign
89 P0 #595 #595 L GPU: run submissions asynchronously on a host fence timeline
90 P0 #584 #584 XS Shaders: clamp ResourceDescriptorHeap and SamplerDescriptorHeap indices to host limits
91 P0 #542 #542 XS Shaders: keep buffer offsets below 2 GiB (NVIDIA + vkd3d-proton world device loss)
92 P0 #533 — XS Series X mode crashes at loading artwork on RX 6700 XT, including with WARP
93 P0 #504 #504 XS GPU: handle depth/stencil copy footprints
94 P0 #496 — L Black world and host GPU reset (DXGI_ERROR_DEVICE_HUNG) on NVIDIA at the first cutscene; 343 shaders don't translate
95 P0 #379 #379 XS Shaders: lower v_div_fixup_f16
96 P0 #318 #318 XS Shader: pack a16 image addresses as the hardware does; image_sample_d_cl
97 P0 #223 #223 L Shaders: translate for the host's wave sizes
98 P0 #218 #218 XS APU: decode-convert and PCM rate conversion
99 P0 #202 #202 XS GPU: skip unmapped regions after a failed bulk read into host memory
100 P0 #169 #169 XS Shaders: tbuffer_load_format_d16 loads pack two 16-bit channels per VGPR
101 P0 #164 #164 XS Shaders: integer memory atomics and sub-dword buffer accesses
102 P0 #138 #138 XS Shaders: gradient samples on cube images
103 P0 #116 #116 XS Shaders: byte and halfword LDS reads and writes
104 P0 #73 #73 XS Shaders: support image_sample_b with a16 and _cl LOD-clamp variants
105 P0 #784 — L After the start screen: 1841 draws/frame but a frozen frame — captured frames show the title's own dark background, not a black screen
106 P0 #750 — L Shader resource tracking: redundant masked write after a per-lane descriptor join is refused (synthetic repro on #566)
107 P0 #728 — L Patch (fork): lower 64-bit image atomics, SMEM descriptor size reads, and spilled lane masks (+657 PSOs on RTX 5060 Ti)
108 P0 #725 — XS Shaders: glc loads aren't marked globally coherent, so cross-workgroup waits may never see the write
109 P0 #724 — XS Shaders: one heap descriptor gets an SRV handle for its loads and a UAV handle for its stores
110 P0 #660 #660 L Shaders: drop a wave64 mask whose low dword is seen with two high dwords
111 P0 #643 #643 XS GPU: share live host textures across aliased addresses and canonicalize view descriptors
112 P0 #642 #642 XS GPU: translate enhanced texture barriers in ID3D12GraphicsCommandList7::Barrier
113 P0 #625 — L [NVIDIA RTX 3060 Ti] GPU hang (0x887A0006) ~50s after entering world / first mission subtitles
114 P0 #563 #563 XS Shaders: cube samples with gradients, and image_sample_d_cl
115 P0 #530 #530 XS GPU diagnostics: show one of the title's render targets in the window
116 P0 #522 #522 L HLE: validate null package identifier in XPackage methods
117 P0 #486 #486 XS shader: opt the test binaries into an app-local Agility SDK runtime
118 P0 #470 #470 XS shader: lower wave prefixes of min and max
119 P0 #437 #437 XS Shaders: preserve raw scalar buffer loads on NVIDIA
120 P0 #422 #422 XS Shaders: narrow f32 to f16 to nearest even, as the console does
121 P0 #417 — L Boot -> account picker -> Rockstar logo -> start screen at a stable 30 fps (RX 7900 XTX / 9800X3D); 5 WARN lines worth a look
122 P0 #416 #416 XS shader: implement v_cvt_f32_f64 instruction lowering
123 P0 #404 #404 XS shader: lower v_permlanex16_b32
124 P0 #394 — L Linux support: is there interest, and can I help test?
125 P0 #326 #326 L Shaders: DXBC/DXIL parser and sampler/SP3 robustness fixes
126 P0 #322 #322 XS GPU: copy into title memory without asking for its region first
127 P0 #319 #319 XS GPU: end a late flip wait on the tick it missed, not the next
128 P0 #265 #265 XS Shaders: private (scratch) memory as a per-lane array
129 P0 #197 #197 XS Input: apply VICTORY_KEYS to a connected host pad too
130 P0 #168 #168 XS Shaders: SCC of s_min, s_max and s_lshl1-4_add_u32 as the ISA sets it
131 P0 #115 #115 XS Census: report directory traversal failures
132 P0 #109 #109 XS Shaders: rebuild a cube image descriptor for code that reads its dwords
133 P0 #99 — XS Access violation at +0x4e33a92 while the first mission intro prestreams (Windows 10, RTX 4080)
134 P0 #24 #24 L GPU: run indirect mesh dispatches (DispatchMeshX) through indirect execution
135 P0 #834 — XS Wine/Proton: title stops itself (0x80000003 at +0x4dcbc9d) ~19 s into boot; one-page MapViewOfFile3 calls get slower with every view
136 P0 #811 — L HLE: OLEAUT32 ordinals 4/6 (imported by vccorlib140.dll) have no binding
137 P0 #793 — XS Core: policy::resolve fails on trailing .. and skips .. folding under Windows \\?\ verbatim prefixes (fix on a fork)
138 P0 #761 — L docs/architecture.md still lists BCPack as planned
139 P0 #645 #645 L Shaders: trace multi-term, scaled, masked, and phi-joined addresses in resource tracking
140 P0 #621 #621 L Shaders: read explicit packed input padding as zero
141 P0 #613 #613 XS HLE: serialize device callbacks across delivery threads
142 P0 #587 #587 L Shaders: guard mesh output bounds, init all primitives, and omit sync on divergent s_barrier
143 P0 #569 #569 XS Shaders: biased samples with 16-bit coordinates
144 P0 #554 #554 L Shaders: one interpolation mode per signature row
145 P0 #515 #515 XS GPU: ask for written pages allocation by allocation when a range spans several
146 P0 #492 #492 XS GPU: substitute R9G9B9E5_SHAREDEXP render targets and UAVs with R16G16B16A16_FLOAT
147 P0 #461 #461 XS GPU: keep the initial pipeline of new command lists
148 P0 #438 #438 L CI: native Apple Silicon builds and synthetic offline shader tests
149 P0 #387 #387 L GPU: preserve execution ordering for buffer copies
150 P0 #333 #333 L Shaders: keep native root parameters inside the SGPRs, clamp the thread-id count, and name each blob refusal

Continue Series: Part 1/2: https://github.com/Marvisak/VIctory/issues/1242 | Part 2/2 (this issue)

**@⁠hyperland956-lgtm** on GitHub · 2026-11-24 16:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/1249) > **Multi-Part Series (2/2):** Part 1/2: `https://github.com/Marvisak/VIctory/issues/1242` | **Part 2/2 (this issue)** #### 24. `VIC-BT-024` — resource::track() iterates blocks in index order instead of RPO, missing waterfall offset loads in split_irreducible copies (`P1`) - **Location:** `crates/victory-shader/src/resource.rs` lines `172-190, 261-269, 360-385` - **Prior-Work Check:** 0% overlap across Marvisak_VIctory (0 hits for offset_at or split_irreducible in resource.rs; #568/#180/#645 address unrelated waterfall/address features). - **Root Cause:** In crates/victory-shader/src/resource.rs, track() (lines 172-190) iterates blocks in raw vector index order `for (b, block) in p.blocks.iter().enumerate()` rather than reverse postorder (RPO). When a block at a lower index references a descriptor loaded by an s_load in a higher-indexed block (for example, a block cloned and appended to p.blocks by structure::split_irreducible(), or a loop back-edge/reordered CFG block), out.scalar has not yet been populated for that higher-indexed block when the consumer is visited. Similarly, offset_at() (lines 261-269) only checks out.scalar entries populated prior to the current iteration, so waterfall detection misses the load and falls back to a uniform first-lane descriptor load. - **Edge-Case / Verification Note:** Verified in ir.rs and structure.rs that reverse_postorder(&p.blocks) is used by both ir::ssa() and emit::lower::run(), specifically because raw block indices do not guarantee dominance order after CFG transformations or non-linear branch layouts. resource::track() is the only pass still iterating `0..p.blocks.len()` linearly while relying on previously-populated maps. - **Synthetic Reproducer:** Construct a shader CFG where block 0 branches to block 2 (containing s_load_dwordx8 from a descriptor table with v_readfirstlane_b32 offset), which branches to block 1 (containing image_sample using that descriptor). Because block 1 is visited before block 2 in resource::track(), out.scalar does not yet contain block 2's load when block 1 is processed. - **Proposed Fix & Risk:** - **Fix:** Iterate blocks in reverse_postorder(&p.blocks) in resource::track() (and run scalar address collection to a fixed point or in a dedicated pre-pass before descriptor/waterfall resolution so all s_load addresses are populated before any consumer inspects out.scalar). - **Regression Risk:** Low; visiting blocks in RPO (or separating scalar-address collection from descriptor/waterfall resolution) strictly improves dominance coverage without changing valid in-order shaders. (Estimated size: `S`) #### 25. `VIC-BT-025` — s_buffer_load_dword* adds unaligned base, soffset, and offset before dword-truncating instead of truncating each term independently (`P1`) - **Location:** `crates/victory-shader/src/emit/lower.rs` lines `2834-2873` - **Prior-Work Check:** Searched all 3,661 VIctory records for `s_buffer_load_dword` alignment / `& ~3` / `soffset` truncation (0 hits). - **Root Cause:** Measured on both RX 6800 (`gfx1030`) and `gfx1036` hardware (`ProjectLeonidaL/leonida` `design.md:281`), `s_buffer_load_dword*` clears the low 2 bits of `base`, `soffset`, and `imm_offset` individually (`(base & ~3) + (soffset & ~3) + (offset & ~3)`) before summing: specifically, `sOFF = 3` and `IMM = 3` resolves to byte offset `+0`, NOT `+4`. `lower.rs:2834-2873` sums `offset + base + extra + soffset` first and only truncates/divides by 4 afterward, shifting the loaded dword by +4 bytes whenever the low 2 bits of two terms carry across bit 2. - **Edge-Case / Verification Note:** Alternative hypothesis: constant-buffer addresses and offsets might always be 4-byte aligned. Falsification: byte-addressed structured buffers or packed scalar offsets in `soffset` can have non-zero low 2 bits; hardware explicitly masks each addend before addition. - **Synthetic Reproducer:** Bind a buffer containing `[0x11111111, 0x22222222]` at offset 0. Execute `s_mov_b32 s4, 3; s_buffer_load_dword s5, s[0:3], s4 offset:3`. Hardware loads `0x11111111` (offset `(3 & ~3) + (3 & ~3) = 0`); VIctory computes `(3 + 3) >> 2 = 1` and loads `0x22222222`. - **Proposed Fix & Risk:** - **Fix:** Mask `base`, `soffset`, and `offset` individually with `& !3u32` before summing them in `lower.rs:2834-2873`. - **Regression Risk:** Very low; adds at most two bitwise ANDs on scalar SMEM address calculation. (Estimated size: `XS`) #### 26. `VIC-BT-026` — s_cbranch_vccz and s_cbranch_vccnz AND vcc with exec instead of testing raw VCC (`P1`) - **Location:** `crates/victory-shader/src/structure.rs` lines `1010-1021` - **Prior-Work Check:** Searched all 3,661 VIctory records (847 issues/PRs + 2,788 issue comments + 26 review comments) for `s_cbranch_vccz`, `s_cbranch_vccnz`, and `vcc` AND `exec` in `structure.rs` (0 hits). - **Root Cause:** `structure.rs:1010-1021` evaluates `s_cbranch_vccz` and `s_cbranch_vccnz` by computing `self.b.and(vcc, exec)` before checking whether the mask is all-zero. Per the RDNA2 ISA, `s_cbranch_vccz`/`s_cbranch_vccnz` test the full 32-bit/64-bit `VCC` scalar register (`VCC == 0` / `VCC != 0`) independent of `EXEC`. Whenever a shader sets bits in `VCC` for currently inactive lanes (e.g. via `s_mov_b32 vcc_lo, ...`, `s_or_b32 vcc_lo, ...`, or a prior `v_cmp` before narrowing `EXEC`) and branches on `s_cbranch_vccz`/`vccnz`, masking with `exec` flips the branch direction. - **Edge-Case / Verification Note:** Alternative hypothesis: DXC might always produce `VCC` via `v_cmp` under the same `EXEC` mask immediately preceding `s_cbranch_vccz`. Falsification: loop-exit patterns save/OR `VCC` across iterations while narrowing `EXEC` (`s_and_saveexec_b32`), or load a wave-wide scalar mask into `VCC`; a synthetic shader setting `vcc_lo = 1` with `exec_lo = 2` and executing `s_cbranch_vccz` takes the wrong branch. - **Synthetic Reproducer:** Assemble a Wave32 compute shader: `s_mov_b32 vcc_lo, 1; s_mov_b32 exec_lo, 2; s_cbranch_vccz target`. On RDNA2 hardware, `VCC != 0` so the branch is NOT taken; VIctory computes `vcc & exec == 0` and takes the branch. - **Proposed Fix & Risk:** - **Fix:** Test the raw `vcc` lane-mask value directly in `structure.rs:1010-1021` without `self.b.and(vcc, exec)`. - **Regression Risk:** Low; matches RDNA2 hardware semantics for scalar VCC branch instructions. (Estimated size: `XS`) #### 27. `VIC-BT-027` — texture_at() caches failed host textures (host == None) in PLACED_TEXTURES before checking host.is_some() (`P1`) - **Location:** `crates/victory-gpu/src/resource.rs` lines `1153-1178` - **Prior-Work Check:** 0% overlap across Marvisak_VIctory (0 hits for texture_at caching host == None; #643/#458/#413 address aliasing and LRU eviction). - **Root Cause:** In crates/victory-gpu/src/resource.rs (lines 1153-1178), texture_at() checks `PLACED_TEXTURES` at line 1155 and immediately returns `Some(r as This)` on a cache hit. On a cache miss, it calls `create_at_address(...)` (which returns S_OK even when `host_texture()` returns None), unconditionally inserts `(address, *desc) -> out` into `PLACED_TEXTURES` at line 1176, and only THEN checks `resource(out).host.is_some().then_some(out)` at line 1177. Thus on failure, the first call returns None, the failed Resource is never released, and every subsequent call hits line 1155 and returns `Some(out)` with `host == None`. - **Edge-Case / Verification Note:** Verified that `create_at_address` returns `S_OK` when `host_texture()` fails (it only logs a warning and stores `host: None` in the `Resource`), and that `placed_texture()` in `descriptor/host.rs:750` expects `texture_at()` to return `Some` only when a usable texture resource was created. - **Synthetic Reproducer:** Call texture_at(addr, &desc) with a ResourceDesc whose host_texture() creation fails (e.g., unsupported format or dimension). Call 1 returns None, yet inserts `out` into PLACED_TEXTURES; Call 2 with the same (addr, desc) hits line 1155 and returns Some(out) even though `resource(out).host` is None. - **Proposed Fix & Risk:** - **Fix:** Check `resource(out).host.is_some()` BEFORE inserting into `PLACED_TEXTURES`; if `host` is None, release `out` via `release(out)` and return None. - **Regression Risk:** Low; prevents leaking failed Resource allocations and ensures consistent return semantics across calls. (Estimated size: `S`) #### 28. `VIC-BT-028` — v_cvt_f32_f16 drops abs/neg and v_cvt_f16_f32 drops clamp on default low-half VOP3 (op_sel == 0) (`P1`) - **Location:** `crates/victory-shader/src/emit/lower.rs` lines `4110-4121, 4147-4153 (vs 4486-4504)` - **Prior-Work Check:** Searched all 3,661 VIctory records for `v_cvt_f32_f16` (0 hits) and `v_cvt_f16_f32` clamp (0 hits). - **Root Cause:** `lower.rs:4147-4153` matches `"v_cvt_f32_f16" if v.opsel == 0`, reads the raw integer operand via `s(self, 0)?`, and passes it straight to `legacyF16ToF32`—completely dropping VOP3 `v.abs` and `v.neg`. Directly above, `4110-4121` matches `"v_cvt_f16_f32" if v.opsel == 0` and routes through `int(self, r)`, bypassing `v.clamp` (`[0,1]` saturation). The `v.opsel != 0` arms at `4486-4504` handle all modifiers properly via `half_fsrc` and `float_result`. - **Edge-Case / Verification Note:** Alternative hypothesis: Xbox shaders might never emit VOP3 `v_cvt_f32_f16_e64` with `abs`/`neg` and `op_sel:[0]`. Falsification: run a synthetic shader test with `v_cvt_f32_f16_e64 v0, -v1` and `v_cvt_f16_f32_e64 v0, v1 clamp` and check DXIL output. - **Synthetic Reproducer:** Assemble `v_cvt_f32_f16_e64 v0, -v1` (`v1 = 0x3C00` / `+1.0h`) -> expected `-1.0f` (`0xBF800000`), observed `+1.0f` (`0x3F800000`). Assemble `v_cvt_f16_f32_e64 v0, v1 clamp` (`v1 = 2.0f`) -> expected `0x3C00`, observed `0x4000`. - **Proposed Fix & Risk:** - **Fix:** Remove the two redundant `if v.opsel == 0` early arms at `4110-4121` and `4147-4153` so all encodings route through `4486-4504`. - **Regression Risk:** Low; unifies code paths already tested for `op_sel != 0`. (Estimated size: `XS`) #### 29. `VIC-BT-029` — v_interp_p2_f16 lowering ignores VOP3 op_sel[3] (high destination half), clamp, and omod modifiers (`P1`) - **Location:** `crates/victory-shader/src/emit/lower.rs` lines `5541-5559` - **Prior-Work Check:** 0% overlap across Marvisak_VIctory (#456 is v_interp_p1lv_f16 raising; #683 comment is v_interp_p1ll_f16 overwriting 32 bits; 0 hits for v_interp_p2_f16 op_sel[3] or clamp/omod). - **Root Cause:** In crates/victory-shader/src/emit/lower.rs (lines 5541-5559), interp() handles v_interp_p2_f16 (decoded as Fields::Valu(v), opcode 0x35a in gfx10/opcodes.rs) by calling self.low_half(inst, reg, lo) unconditionally and writing via self.write(inst, Reg::V(reg), x, None). Unlike valu16_op()/write_half() (lines 4367-4405, 4490-4500), interp() never inspects v.opsel >> 3 & 1 to place the FP16 result in bits [31:16] while preserving bits [15:0], nor does it apply v.clamp (saturate to [0, 1]) or v.omod before converting to f16 via legacyF32ToF16. - **Edge-Case / Verification Note:** Verified in io.rs:362 and gfx10/opcodes.rs:752 that v_interp_p2_f16 is decoded as Fields::Valu(v) with full VOP3 fields (opsel, clamp, omod). On RDNA2, the console compiler routinely packs two 16-bit interpolated channels into a single VGPR by emitting v_interp_p2_f16 vN, ... (op_sel[3]=0) followed by v_interp_p2_f16 vN, ... op_sel:[0,0,0,1] (op_sel[3]=1). With low_half() hardcoded, the second instruction clobbers channel 0 in the low half and leaves channel 1 in the high half stale. - **Synthetic Reproducer:** Translate a pixel shader with a packed FP16 input attribute interpolated via v_interp_p1ll_f16 followed by v_interp_p2_f16 v0, v1, attr0.y, v0 op_sel:[0,0,0,1] (or with clamp). Inspect emitted DXIL: the result is masked into bits [15:0] of v0 instead of [31:16], and no saturate/omod is emitted. - **Proposed Fix & Risk:** - **Fix:** In interp() (lower.rs:5541-5559), apply v.omod and v.clamp on the f32 value before legacyF32ToF16 when inst.fields is Fields::Valu(v), and write the resulting f16 using self.write_half(inst, lo, None) instead of self.low_half() + self.write(). - **Regression Risk:** Low; reuses the existing, tested write_half() and clamp/omod paths already used by all other 16-bit VOP3 VALU instructions. (Estimated size: `S`) #### 30. `VIC-BT-030` — v_readlane_b32 and v_writelane_b32 do not mask lane index to S1[4:0] (Wave32) / S1[5:0] (Wave64) (`P1`) - **Location:** `crates/victory-shader/src/emit/lower.rs, crates/victory-shader/src/emit/wave.rs` lines `lower.rs:4205-4232, wave.rs:321-333` - **Prior-Work Check:** Searched all 3,661 VIctory records for `v_readlane_b32`, `v_writelane_b32`, and lane index masking/wrapping (0 hits). - **Root Cause:** Verified on RDNA2 silicon (`ProjectLeonidaL/leonida` `design.md:265`, `cs_w32_lane_wrap.asm`: lane 40 wraps to lane 8 in Wave32), RDNA2 hardware masks the `S1` lane-select operand of `v_readlane_b32` and `v_writelane_b32` to `S1 & 31` in Wave32 and `S1 & 63` in Wave64. `lower.rs:4205-4232` passes `lane` unmasked directly into `waveReadLaneAt` and into `lane_id == lane`, causing out-of-range lane indices (`>= 32` in Wave32 or `>= 64` in Wave64) to trigger DXIL UB on `v_readlane_b32` and silently drop writes on `v_writelane_b32`. - **Edge-Case / Verification Note:** Alternative hypothesis: compilers might always emit lane indices `< wave_size`. Falsification: shaders that compute lane indices from `m0` or packed SGPR counters (e.g., upper bits carrying unrelated metadata) rely on hardware 5-bit/6-bit masking; `cs_w32_lane_wrap.asm` explicitly tests lane `40 -> 8`. - **Synthetic Reproducer:** Wave32 compute shader: `v_mov_b32 v0, lane_id; s_mov_b32 s0, 40; v_readlane_b32 s1, v0, s0`. Hardware returns `s1 = 8`; VIctory calls `waveReadLaneAt(v0, 40)` (DXIL UB). - **Proposed Fix & Risk:** - **Fix:** Mask `lane` with `self.b.and(lane, self.b.i32_const(wave_size - 1))` (31 for Wave32, 63 for Wave64) in both `v_readlane_b32` and `v_writelane_b32`. - **Regression Risk:** Very low; single bitwise AND instruction. (Estimated size: `XS`) #### 31. `VIC-BT-031` — v_writelane_b32 gates its destination write with EXEC, silently dropping SGPR spills to inactive lanes (`P1`) - **Location:** `crates/victory-shader/src/emit/lower.rs` lines `4217-4232` - **Prior-Work Check:** Searched all 3,661 VIctory records for `v_writelane_b32` and `EXEC` / `guard` (0 hits; #320 is CFG structurization and #659 is mesh v5). - **Root Cause:** Per the RDNA2 ISA, `v_writelane_b32` ignores `EXEC` completely so the compiler can spill SGPRs into any lane of a dedicated spill VGPR even inside divergent control flow where the target lane's `EXEC` bit is `0`. `lower.rs:4217-4232` writes the selected value using `int(self, r)` which applies the current `EXEC` `guard`, silently dropping the write whenever the target lane is inactive and corrupting the spilled SGPR when restored later via `v_readlane_b32`. - **Edge-Case / Verification Note:** Alternative hypothesis: DXC might only spill SGPRs to lane 0 when lane 0 is active. Falsification: divergent `if/else` branches where lane 0 takes the `else` path routinely spill SGPRs inside the `then` branch (where `EXEC[0] == 0`) using `v_writelane_b32`. - **Synthetic Reproducer:** Wave32 compute shader: `v_mov_b32 v5, 0; s_mov_b32 exec_lo, 0xFFFFFFFE; v_writelane_b32 v5, 0xCAFEBABE, 0; v_readlane_b32 s0, v5, 0`. Hardware restores `s0 = 0xCAFEBABE`; VIctory drops the write because `EXEC[0] == 0` and restores `s0 = 0`. - **Proposed Fix & Risk:** - **Fix:** Write the `select(lane_id == masked_lane, src0, old_vdst)` result unconditionally to `vdst` in `lower.rs:4217-4232`, bypassing the `EXEC` `guard`. - **Regression Risk:** Low; matches RDNA2 ISA where `v_writelane_b32` is explicitly non-EXEC-masked. (Estimated size: `XS`) #### 32. `VIC-BT-032` — xgameruntime.rs & COM HLE vtables: Slot 0 (QueryInterface) wired to missing::<0> returning E_NOTIMPL across all GDK and DirectStorage COM objects (`P1`) - **Location:** `crates/victory-hle/src/modules/xgameruntime.rs, crates/victory-hle/src/modules/dstorage.rs, crates/victory-hle/src/modules/xasync.rs, crates/victory-hle/src/modules/xuser.rs, crates/victory-hle/src/modules/xgamesave.rs` lines `dstorage.rs:239,264,299,986; xasync.rs:991; xuser.rs:273; xgamesave.rs:908` - **Prior-Work Check:** Verified 0 hits across Marvisak_VIctory corpus for missing::<0> or xgameruntime QueryInterface. - **Root Cause:** Every COM vtable in dstorage.rs and all xgameruntime provider modules sets slot 0 to xgameruntime::missing::<0>, which logs an unimplemented warning and returns E_NOTIMPL (0x80004001) without inspecting riid or zeroing *out. - **Edge-Case / Verification Note:** GDK C thunks obtain interfaces via QueryApiImpl rather than QI, but DirectStorage C++ callers (using ComPtr<IDStorageQueueX> / As()) and any COM identity check invoke slot 0 directly. - **Synthetic Reproducer:** Call slot 0 (QueryInterface) on the factory returned by DStorageGetFactory with IID_IUnknown or FACTORY GUID; returns E_NOTIMPL instead of S_OK. - **Proposed Fix & Risk:** - **Fix:** Add a shared query_interface helper on Object / Instance<T> that checks null out (E_POINTER), accepts IID_IUnknown and registered IIDs (calling AddRef and returning S_OK), and otherwise sets *out = null and returns E_NOINTERFACE. - **Regression Risk:** Low; standardizes COM compliance across all HLE vtables. (Estimated size: `M`) #### 33. `VIC-BT-033` — xgameui.rs: dialog::procedure dereferences GWLP_USERDATA without null check on WM_COMMAND (`P1`) - **Location:** `crates/victory-hle/src/modules/xgameui.rs` lines `216-229` - **Prior-Work Check:** Verified 0 hits across Marvisak_VIctory corpus for gwlp_userdata / WM_COMMAND null deref. - **Root Cause:** At xgameui.rs:217, the WM_COMMAND arm unconditionally executes `let entry = &mut *(wm::GetWindowLongPtrW(dialog, wm::GWLP_USERDATA) as *mut Entry);` before even checking whether LOWORD(wparam) is IDOK or IDCANCEL. In Rust, creating `&mut *null_ptr` is immediate UB regardless of whether `entry` is later used. - **Edge-Case / Verification Note:** In many dialog runs WM_INITDIALOG arrives before user-triggered IDOK/IDCANCEL, but child control notifications (EN_UPDATE/EN_CHANGE) or messages sent during dialog creation routinely trigger WM_COMMAND with GWLP_USERDATA == 0, which already creates an invalid `&mut Entry` reference at line 217 before matching `_ => return 0`. - **Synthetic Reproducer:** Invoke dialog::procedure(hwnd, WM_COMMAND, EN_CHANGE << 16 | EDIT, 0) when GWLP_USERDATA is 0; immediately forms `&mut *(0 as *mut Entry)` (UB / debug panic / crash). - **Proposed Fix & Risk:** - **Fix:** Check `let ptr = wm::GetWindowLongPtrW(dialog, wm::GWLP_USERDATA) as *mut Entry; if ptr.is_null() { return 0; }` (and only dereference inside the IDOK arm). - **Regression Risk:** Low; eliminates guaranteed UB on early WM_COMMAND notifications. (Estimated size: `S`) #### 34. `VIC-BT-034` — xpackage.rs: XPackageUnregisterInstallationProgressChanged (slot 0x50) wired to missing::<10> returning HRESULT instead of bool (`P1`) - **Location:** `crates/victory-hle/src/modules/xpackage.rs` lines `270-284` - **Prior-Work Check:** Verified 0 hits across Marvisak_VIctory corpus for XPackageUnregisterInstallationProgressChanged or xpackage slot 0x50. - **Root Cause:** xpackage.rs implements XPackageRegisterInstallationProgressChanged at vtable slot 9 (0x48) returning a live registration token, but wires slot 10 (0x50, XPackageUnregisterInstallationProgressChanged(token, wait) -> bool) to missing::<10> (line 282), which returns HRESULT E_NOTIMPL (0x80004001). - **Edge-Case / Verification Note:** On x64, low byte AL of 0x80004001 happens to be 0x01 (true), masking immediate failure in callers that only test boolean truthiness, but it leaves any future callback registration state uncleaned and emits spurious unimplemented-slot warnings during normal teardown. - **Synthetic Reproducer:** Call vtable slot 0x48 on XPackage to obtain a token, then call slot 0x50 with (this, token, true); missing::<10> fires and returns 0x80004001. - **Proposed Fix & Risk:** - **Fix:** Implement unregister_progress(_: This, _token: u64, _wait: bool) -> bool { true } (matching xgame.rs/xnetworking.rs) and wire it to vtable slot 10 (0x50) in xpackage.rs. - **Regression Risk:** Low; trivial ABI-correct implementation matching paired registration slot. (Estimated size: `S`) #### 35. `VIC-BT-035` — Host::execute() calls ID3D12CommandQueue::ExecuteCommandLists with 0 lists when runs is empty (`P2`) - **Location:** `crates/victory-gpu/src/host.rs, crates/victory-gpu/src/queue.rs` lines `host.rs:500-543; queue.rs:114-128` - **Prior-Work Check:** 0% overlap across Marvisak_VIctory (0 hits for runs.is_empty or ExecuteCommandLists with 0 lists). - **Root Cause:** In crates/victory-gpu/src/queue.rs (lines 114-128), execute() collects `host_lists` via filter_map and calls `host.execute(&host_lists)` without checking whether `host_lists.is_empty()`. In host.rs (lines 500-543), Host::execute() builds an empty `lists` Vec and (when diagnostics timing is off) sets `groups = [&lists[..]]` containing a single empty slice `&[]`, then calls `self.queue.ExecuteCommandLists(&[])` at line 532. D3D12 specifies that `NumCommandLists` must be >= 1, causing debug-layer errors and undefined behavior on some drivers/vkd3d-proton. - **Edge-Case / Verification Note:** Checked both `#[cfg(feature = "diagnostics")]` and non-diagnostics branches of host.rs:515-527: in non-diagnostics (release) builds, `groups = [&lists[..]]` ALWAYS has length 1 even when `lists` is empty, so `self.queue.ExecuteCommandLists(&[])` is guaranteed to execute. - **Synthetic Reproducer:** Call ID3D12CommandQueue::ExecuteCommandLists(0, non_null_ptr) on a Windows host build with the D3D12 debug layer enabled: Host::execute() invokes queue.ExecuteCommandLists(&[]) with NumCommandLists == 0. - **Proposed Fix & Risk:** - **Fix:** Return early at the top of Host::execute() when `runs.is_empty()` (and skip `ExecuteCommandLists` if `lists.is_empty()`). - **Regression Risk:** None; early return on empty submissions is strictly safer and eliminates unnecessary fence stalls. (Estimated size: `S`) #### 36. `VIC-BT-036` — XMemAllocatePhysicalPages never recycles freed page numbers (monotonic next_page growth) (`P2`) - **Location:** `crates/victory-hle/src/modules/xmem.rs` lines `433-464` - **Prior-Work Check:** Searched all 3,661 VIctory records for `next_page` and `XMemFreePhysicalPages` recycling (0 hits). - **Root Cause:** `XMemAllocatePhysicalPages` monotonically bumps `physical.next_page += n * FRAMES`, while `XMemFreePhysicalPages` removes entries from `physical.pages` without recycling the page numbers. If a title packs `(number >> 4)` into a 21-bit field (as documented at `448-450`), cumulative streaming churn exceeding 128 GiB wraps/truncates page numbers even with low peak live memory. - **Edge-Case / Verification Note:** Alternative hypothesis: short runs (<15 min) may not churn 128 GiB of physical pages. Falsification: unit test looping `XMemAllocatePhysicalPages`/`XMemFreePhysicalPages` proves unbounded `next_page` growth past `1 << 25`. - **Synthetic Reproducer:** Synthetic Rust unit test calling `XMemAllocatePhysicalPages(2)` + `XMemFreePhysicalPages(2)` 1,048,577 times -> `number >> 4 >= (1 << 21)` while live pages == 0. - **Proposed Fix & Risk:** - **Fix:** Add a `free_pages: Vec<usize>` (or interval free-list) in `Physical` populated by `XMemFreePhysicalPages` and popped before incrementing `next_page`. - **Regression Risk:** Low; page numbers are opaque handles once freed. (Estimated size: `S`) #### 37. `VIC-BT-037` — dstorage.rs: open_file clobbers GetLastError() via heap allocation before last_os_error() and omits FILE_SHARE_WRITE | FILE_SHARE_DELETE (`P2`) - **Location:** `crates/victory-hle/src/modules/dstorage.rs` lines `125-143` - **Prior-Work Check:** Verified 0 hits across Marvisak_VIctory corpus for dstorage last_os_error / file_share. - **Root Cause:** In dstorage.rs:125-143, open_file calls super::files::CreateFileW with share mode FILE_SHARE_READ (1) only, then immediately allocates a UTF-8 String (lines 135-138) BEFORE checking `handle as isize == -1` and reading `std::io::Error::last_os_error()` (line 140). - **Edge-Case / Verification Note:** The Windows heap allocator does not always overwrite LastError on every allocation, making the error-code corruption intermittent, and read-only archive files do not trigger sharing violations unless also opened for write/delete. - **Synthetic Reproducer:** Call IDStorageFactoryX::OpenFile on a path already opened with GENERIC_READ | GENERIC_WRITE + FILE_SHARE_READ | FILE_SHARE_WRITE; fails with ERROR_SHARING_VIOLATION. On failure under heap pressure, last_os_error() reads post-allocation LastError. - **Proposed Fix & Risk:** - **Fix:** Capture `std::io::Error::last_os_error()` immediately after `handle as isize == -1` before formatting `name`, and pass `FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE` (7) to CreateFileW. - **Regression Risk:** Low; standard Win32 best practice. (Estimated size: `S`) #### 38. `VIC-BT-038` — image_get_resinfo returns 1 instead of 0 for unused depth channels on 1D / 2D / 1D-Array views (`P2`) - **Location:** `crates/victory-shader/src/emit/lower.rs` lines `5811-5826` - **Prior-Work Check:** Issue #720 only reports Cube array size returning 1; unused 1D/2D/1DArray depth channel returning 1 instead of 0 is unreported. - **Root Cause:** Line `5821-5822` returns `one` (`1`) whenever `!present[ch]`. Native RDNA2 (`gfx1036`, `Leonida/tools/image_query_probe.py`) returns `0` for unused depth words on 2D and 1D/1D-array views. - **Edge-Case / Verification Note:** Alternative hypothesis: HLSL `Texture2D.GetDimensions` never reads channel 2. Falsification: raw RDNA2 shaders issuing `image_get_resinfo dmask:0xF` inspect channel 2 to distinguish 2D (`0`) vs 3D/Array (`>0`). - **Synthetic Reproducer:** `image_get_resinfo v[0:3], v0, s[0:7] dmask:0xF` on a 2D SRV -> expected `v2 == 0`, observed `v2 == 1`. - **Proposed Fix & Risk:** - **Fix:** Return `0` for `ch < 3 && !present[ch]`, retaining `1` only for `ch == 3 && uav`. - **Regression Risk:** Very low. (Estimated size: `XS`) #### 39. `VIC-BT-039` — net.rs: resolvable() blocks the local machine's own hostname (gethostname) with WSAHOST_NOT_FOUND (`P2`) - **Location:** `crates/victory-hle/src/modules/net.rs` lines `179-192` - **Prior-Work Check:** Verified 0 hits across Marvisak_VIctory corpus for gethostname / resolvable. - **Root Cause:** resolvable() in net.rs:179-192 only permits empty strings, 'localhost', and literal loopback IPs (127.0.0.0/8, ::1). Any other hostname, including the local computer's own hostname returned by gethostname(), is rejected with WSAHOST_NOT_FOUND. - **Edge-Case / Verification Note:** Offline blocking is intended to prevent DNS leaks and external connections, not to break local-interface discovery via the machine's own hostname. - **Synthetic Reproducer:** Call gethostname(&mut buf) and pass buf to getaddrinfo(); net.rs rejects it with WSAHOST_NOT_FOUND. - **Proposed Fix & Risk:** - **Fix:** Cache the local hostname (from gethostname / COMPUTERNAME) and allow case-insensitive matches in resolvable() (optionally returning loopback if strict offline isolation is desired). - **Regression Risk:** Low; prevents false-positive blocks on local-only networking initialization. (Estimated size: `S`) #### 40. `VIC-BT-040` — storage.rs: used_bytes() follows symlinks and Windows directory junctions via e.metadata(), risking infinite recursion or quota escape (`P2`) - **Location:** `crates/victory-hle/src/modules/storage.rs` lines `90-102` - **Prior-Work Check:** Verified 0 hits across Marvisak_VIctory corpus for storage.rs symlink / used_bytes. - **Root Cause:** used_bytes() at storage.rs:90-102 calls `e.metadata()` (which dereferences symlinks and Windows directory junctions) instead of `e.file_type()` (which reports reparse points as `is_symlink()` without traversing them), and recursively calls `used_bytes(&e.path())` without a cycle guard. - **Edge-Case / Verification Note:** Normal titles do not intentionally create junction loops inside PLS, but user-configured junctions or symlinked save directories are common on Windows PCs. - **Synthetic Reproducer:** Create a Windows directory junction (`mklink /J`) inside the title's PLS directory pointing to its parent directory and call XPersistentLocalStorageGetSpaceInfo; process overflows the stack. - **Proposed Fix & Risk:** - **Fix:** Check `let Ok(ft) = e.file_type()` and skip entries where `ft.is_symlink()` (and iterate using an explicit stack rather than recursion), mirroring xcl's pls_used_bytes(). - **Regression Risk:** Low; prevents stack overflow and keeps quota accounting confined to in-tree files. (Estimated size: `S`) #### 41. `VIC-BT-041` — v_fma_mixlo_f16 / v_fma_mixhi_f16 double-rounds through binary32 instead of single-rounding to binary16 (`P2`) - **Location:** `crates/victory-shader/src/emit/lower.rs` lines `4071-4098` - **Prior-Work Check:** Searched all 3,661 VIctory records for `v_fma_mix`. PR #683 covers missing old-dst fallback; PR #661 covers VOP3P neg; PR #78 covers inline constants; none address binary32->binary16 double rounding. - **Root Cause:** Line `4071` computes `fmad` to binary32 then narrows via `legacyF32ToF16`. Native RDNA2 (`gfx1036`) hardware measurements (`Leonida/tools/fma_mix_probe.py`) proved hardware rounds the exact `a*b + c` **once**, directly to binary16, differing by 1 f16 ULP on all 7 midpoint tie classes. - **Edge-Case / Verification Note:** Alternative hypothesis: 1 f16 ULP rarely causes visible artifacts except in precision-sensitive lighting/normal packing. Falsification: `fma_mix_probe.py` tie inputs (`1.0*1.0 + (2^-11 + 2^-30)` -> `0x3C01` hw vs `0x3C00` double-rounded). - **Synthetic Reproducer:** Synthetic shader: `v_fma_mixlo_f16` on `a=1.0, b=1.0, c=0x3A000001` -> expected `0x3C01`, observed `0x3C00`. - **Proposed Fix & Risk:** - **Fix:** Implement round-to-odd in binary32 (exact `fmad` + error term sticky bit) prior to `legacyF32ToF16`. - **Regression Risk:** Low; pure arithmetic precision improvement. (Estimated size: `M`) #### 42. `VIC-BT-042` — v_mad_f16 / v_mac_f16 conflated with fused v_fma_f16 and double-rounded through binary32 (`P2`) - **Location:** `crates/victory-shader/src/emit/lower.rs` lines `4538-4541` - **Prior-Work Check:** Searched all 3,661 VIctory records for `v_mad_f16` / `v_mac_f16` (0 hits). - **Root Cause:** Line `4541` lowers both unfused (`v_mad_f16`/`v_mac_f16`) and fused (`v_fma_f16`/`v_fmac_f16`) ops identically to binary32 `fmad` + `legacyF32ToF16`. Unfused `v_mad_f16` must round `a * b` to binary16 before adding `acc`; fused `v_fma_f16` must single-round to binary16. - **Edge-Case / Verification Note:** Alternative hypothesis: minimal visual impact outside half-precision lighting/accumulation loops. Falsification: `a = 256.0h, b = 256.0h, c = -65504.0h` overflows `a*b` to `+inf` in unfused `v_mad_f16` (`+inf`), whereas fused `v_fma_f16` yields `32.0h`. - **Synthetic Reproducer:** `v_mad_f16` with `a = 256.0h, b = 256.0h, c = -65504.0h` -> expected `+inf` (`0x7C00`), observed `32.0h` (`0x5000`). - **Proposed Fix & Risk:** - **Fix:** For `v_mad_f16`/`v_mac_f16`, round `a * b` through `legacyF32ToF16` -> `legacyF16ToF32` before adding `acc`; for `v_fma_f16`/`v_fmac_f16`, apply round-to-odd before narrowing. - **Regression Risk:** Low. (Estimated size: `S`) #### 43. `VIC-BT-043` — v_mad_f32 / v_mac_f32 / v_mad_legacy_f32 omit unconditional subnormal flush before and after omod (`P2`) - **Location:** `crates/victory-shader/src/emit/lower.rs` lines `3925-3960` - **Prior-Work Check:** Searched all 3,661 VIctory records for `v_mad_f32` denorm. PR #682 only handles `0 * denorm = 0` in `legacy_mul`; does not flush subnormals in `v_mad_f32`/`v_mac_f32` or around `omod`. - **Root Cause:** Measured on native RDNA1 (`gfx1010`, RX 5600 XT, `Leonida/tools/mad_denorm_probe.py`, 48/48 cases), `v_mad_f32`, `v_mac_f32`, and `v_mad_legacy_f32` unconditionally flush subnormal inputs, products, sums, and `omod` outputs regardless of `MODE.denorm32`. - **Edge-Case / Verification Note:** Alternative hypothesis: many D3D12 drivers flush f32 denorms by default in DXIL. Falsification: SM 6.2+ / NVIDIA drivers preserve f32 denorms on certain ops, causing `(1.5*2^-126 - 2^-126) mul:2` to return `FLT_MIN` instead of `+0.0`. - **Synthetic Reproducer:** Synthetic `v_mad_f32 v0, 1.5, 0x00800000, -0x00800000 mul:2` -> expected `+0.0`, observed `0x00800000` when denorms are kept. - **Proposed Fix & Risk:** - **Fix:** Flush f32 subnormals before and after `omod` in `v_mad*`/`v_mac*`. - **Regression Risk:** Low. (Estimated size: `S`) #### 44. `VIC-BT-044` — write_f omod (mul:2/mul:4/div:2) preserves -0.0 instead of flushing -0.0 to +0.0 per RDNA2 hardware (`P2`) - **Location:** `crates/victory-shader/src/emit/lower.rs` lines `1792-1799` - **Prior-Work Check:** Searched all 3,661 VIctory records for `omod` and `-0.0` / `flush` (0 hits). - **Root Cause:** Measured on RDNA2 silicon (`Kajcsi/G6Recomp` `docs/shaders.md:764,1060`; `ProjectLeonidaL/leonida` `shader_validation.md:1970`), applying VOP3 output modifiers `omod` (`mul:2`, `mul:4`, `div:2`) to `-0.0` flushes the sign bit to `+0.0`. `lower.rs:1792-1799` emits plain IEEE `FMul(val, 2.0/4.0/0.5)`, which preserves `-0.0`, breaking downstream sign-bit checks, `v_cmp_class`, or `copysign` / `v_min_f32` tie-breakers. - **Edge-Case / Verification Note:** Alternative hypothesis: `-0.0` vs `+0.0` rarely affects rendering outputs. Falsification: normal-map oct-encoding, shadow-map sign bits, and `v_min_f32`/`v_max_f32` (where `-0.0 < +0.0` on RDNA2) observe the sign of zero directly. - **Synthetic Reproducer:** Assemble `v_add_f32_e64 v0, -0.0, -0.0 mul:2`. On RDNA2 hardware, `v0 == 0x00000000` (`+0.0`); VIctory produces `0x80000000` (`-0.0`). - **Proposed Fix & Risk:** - **Fix:** When `omod != 0` in `write_f`, flush `-0.0` to `+0.0` (e.g. `select(bitcast(res) == 0x80000000, +0.0, res)` or `FAdd(res, +0.0)` under strict float semantics). - **Regression Risk:** Very low; gated strictly on `omod != 0`. (Estimated size: `XS`) #### 45. `VIC-BT-045` — xsystem.rs: XSystemGetAnalyticsInfo reports family as 'Xbox' instead of GDK-documented 'Windows.Xbox' (`P2`) - **Location:** `crates/victory-hle/src/modules/xsystem.rs` lines `105-115` - **Prior-Work Check:** Verified 0 hits across Marvisak_VIctory corpus for Windows.Xbox. - **Root Cause:** analytics_info() at xsystem.rs:109 sets `family: text("Xbox")`. Per Microsoft GDK documentation for XSystemAnalyticsInfo::family (and matching xcl's xgameruntime/mod.rs:278), Xbox consoles report "Windows.Xbox". - **Edge-Case / Verification Note:** Titles that only inspect `form` ("Xbox Series X" / "Xbox Series S") or XSystemGetDeviceType() are unaffected, but engines using `family` for platform branching expect "Windows.Xbox". - **Synthetic Reproducer:** Call ANALYTICS_VTABLE slot 0x18 (analytics_info) and inspect info.family; returns "Xbox\0" instead of "Windows.Xbox\0". - **Proposed Fix & Risk:** - **Fix:** Change `family: text("Xbox")` to `family: text("Windows.Xbox")` at xsystem.rs:109 and update unit test coverage. - **Regression Risk:** Low; matches documented Xbox GDK return value. (Estimated size: `S`) ## 3. Prioritized Existing Canonical Backlog (150 Open Issues & Active PRs) Deduplicated so open PRs targeting an open issue are grouped under the canonical issue rather than counted twice. Ranked by priority (`P0` asset loading / rendering / crashes → `P1` Wave32 / CPU / VRAM / shader & tiling correctness → `P2` sync / audio / performance → `P3` hardening / tests). | # | Priority | Canonical | Related Open PRs | Size | Title | |---:|---|---|---|---|---| | 1 | **P0** | [#71](https://git.gtahub.st/github/Marvisak--VIctory/issues/71) | #185;#189;#279;#346;#436;#439;#454;#483;#550;#562;#635;#638 | `L` | NVIDIA RTX 5070 Ti: world hang (DEVICE_HUNG) on 97c78d1 is not one program, not loops, not barriers; 77 compute pipelines refused | | 2 | **P0** | [#181](https://git.gtahub.st/github/Marvisak--VIctory/issues/181) | #244;#284;#357;#358;#359;#412;#447;#591 | `XS` | Tests: victory-shader tests crash (0xC0000005) when several tests use WARP devices in parallel | | 3 | **P0** | [#97](https://git.gtahub.st/github/Marvisak--VIctory/issues/97) | #189;#279;#281;#334;#457;#483 | `XS` | Host GPU device removed on RTX 4070 (diag build, DRED) - many shaders fail to translate | | 4 | **P0** | [#471](https://git.gtahub.st/github/Marvisak--VIctory/issues/471) | #472;#484;#501;#602 | `XS` | World load dies at the commit limit (18.0 GB private, 48.8 of 49.0 GB system commit) | | 5 | **P0** | [#144](https://git.gtahub.st/github/Marvisak--VIctory/issues/144) | #151;#259;#491 | `L` | Wine + vkd3d-proton on NVIDIA: the driver crashes in vkCreateComputePipelines while the world loads (0xc000001d / 0xc0000005, earlier stack overflows) | | 6 | **P0** | [#264](https://git.gtahub.st/github/Marvisak--VIctory/issues/264) | #334;#352;#483 | `L` | NVIDIA RTX 5070 Ti Laptop: device hung entering world (vertex buffer left in UAV state) + wave64 shaders refused | | 7 | **P0** | [#170](https://git.gtahub.st/github/Marvisak--VIctory/issues/170) | #190;#235;#347 | `L` | Wine/vkd3d: indirect execution is dropped because the argument clamp cannot be compiled there; rewriting its HLSL does not help | | 8 | **P0** | [#23](https://git.gtahub.st/github/Marvisak--VIctory/issues/23) | #224;#538;#561 | `XS` | Title stops at startup when Windows can't commit a 6.5 GB XMemVirtualAlloc (paging file too small, os error 1455) | | 9 | **P0** | [#557](https://git.gtahub.st/github/Marvisak--VIctory/issues/557) | #575;#609 | `L` | World entry after #336: device removed reading freed streaming textures (page fault inside freed texture 1024x1024) | | 10 | **P0** | [#407](https://git.gtahub.st/github/Marvisak--VIctory/issues/407) | #472;#501 | `L` | GPU: one address space for title memory, instead of copying it (arena over a CPU-visible heap) | | 11 | **P0** | [#304](https://git.gtahub.st/github/Marvisak--VIctory/issues/304) | #427;#575 | `L` | [Crash / TDR] Host GPU device removed (0x887A0006) ~55s after Mission 1 title card on RX 9070 XT | | 12 | **P0** | [#125](https://git.gtahub.st/github/Marvisak--VIctory/issues/125) | #145;#269 | `XS` | Shaders: mask ops in a pixel/vertex program never read the high ballot half, so a 64-lane host wave loses lanes 32-63 | | 13 | **P0** | [#622](https://git.gtahub.st/github/Marvisak--VIctory/issues/622) | #623;#648 | `L` | Windows 10 + RTX 4070 SUPER: three verified fixes get the title past Game Init into the render loop | | 14 | **P0** | [#610](https://git.gtahub.st/github/Marvisak--VIctory/issues/610) | #615;#695 | `XS` | Diagnostics: VICTORY_D3D12_WARP=0 still selects the software adapter | | 15 | **P0** | [#400](https://git.gtahub.st/github/Marvisak--VIctory/issues/400) | #436;#440 | `XS` | World on an RTX 5070 Ti: where the ~0.8 s per frame go, and four open copy PRs measured against main | | 16 | **P0** | [#106](https://git.gtahub.st/github/Marvisak--VIctory/issues/106) | #213;#558 | `XS` | Crash with 0xc000001d (illegal instruction): game uses AMD-only CLZERO, unsupported on Intel CPUs | | 17 | **P0** | [#8](https://git.gtahub.st/github/Marvisak--VIctory/issues/8) | #12;#704 | `L` | RTX 3080 Ti: first-chance 0x80000003 at title+0x2237178 before any window — menus never reached here | | 18 | **P0** | [#103](https://git.gtahub.st/github/Marvisak--VIctory/issues/103) | #213;#558 | `XS` | Crash: 0xc000001d (STATUS_ILLEGAL_INSTRUCTION) at +0x4ecc84a on Intel Core i3-10100F | | 19 | **P0** | [#102](https://git.gtahub.st/github/Marvisak--VIctory/issues/102) | #213;#558 | `XS` | GTA VI crashes with 0xC000001D on Xeon E5-2630 v4 | | 20 | **P0** | [#653](https://git.gtahub.st/github/Marvisak--VIctory/issues/653) | #694 | `L` | World load removes the host D3D12 device — on the real GPU (0x887A0006) and on WARP (0x887A0005) | | 21 | **P0** | [#468](https://git.gtahub.st/github/Marvisak--VIctory/issues/468) | #537 | `L` | NVIDIA RTX 4060 Laptop: world is black (114 compute pipelines refused with E_INVALIDARG), then GPU fault after ~2 min | | 22 | **P0** | [#392](https://git.gtahub.st/github/Marvisak--VIctory/issues/392) | #581 | `L` | NVIDIA (RTX 3080): device removed on null/unsupported views during world load — two fixes + one open hang | | 23 | **P0** | [#325](https://git.gtahub.st/github/Marvisak--VIctory/issues/325) | #500 | `L` | RTX 4090: 1 fps in the first cutscene, then host GPU hang (DXGI_ERROR_DEVICE_HUNG) | | 24 | **P0** | [#548](https://git.gtahub.st/github/Marvisak--VIctory/issues/548) | #588 | `XS` | RTX 3070 Ti: DXGI_ERROR_DEVICE_HUNG in the world; debug layer reports a title buffer in UAV state used as vertex buffer | | 25 | **P0** | [#508](https://git.gtahub.st/github/Marvisak--VIctory/issues/508) | #568 | `L` | GPU: writing unbound UAVs removes the device on an RDNA3 iGPU | | 26 | **P0** | [#199](https://git.gtahub.st/github/Marvisak--VIctory/issues/199) | #334 | `L` | NVIDIA RTX 4070 SUPER: D3D12 resource state validation failure when binding title buffer as vertex buffer | | 27 | **P0** | [#598](https://git.gtahub.st/github/Marvisak--VIctory/issues/598) | #626 | `XS` | Crash 0xc0000005 on world load due to unsupported root signature flags (c01/c00) | | 28 | **P0** | [#714](https://git.gtahub.st/github/Marvisak--VIctory/issues/714) | #346 | `XS` | Linux (Proton + vkd3d-proton, Strix Halo RADV): GPU page fault (texture read) 1.5–4 min in, DRED never reports because the title's own hang check exits first | | 29 | **P0** | [#386](https://git.gtahub.st/github/Marvisak--VIctory/issues/386) | #409 | `XS` | RTX 5090 test: GetCopyableFootprints returns different row sizes and base offsets than native D3D12 | | 30 | **P0** | [#3](https://git.gtahub.st/github/Marvisak--VIctory/issues/3) | #189 | `L` | compute shaders fallback | | 31 | **P0** | [#289](https://git.gtahub.st/github/Marvisak--VIctory/issues/289) | #538 | `XS` | Crash right after "audio DSP connected": title memsets unmapped address 0x217800 (len 0x2173a0) | | 32 | **P0** | [#155](https://git.gtahub.st/github/Marvisak--VIctory/issues/155) | #193 | `L` | Structured buffers: runtime stride channel (design + anchors) | | 33 | **P0** | [#108](https://git.gtahub.st/github/Marvisak--VIctory/issues/108) | #558 | `XS` | Title crashes on CPUs without CLWB support (STATUS_ILLEGAL_INSTRUCTION 0xc000001d) | | 34 | **P0** | [#210](https://git.gtahub.st/github/Marvisak--VIctory/issues/210) | #558 | `M` | 0xc000001d Illegal instruction (CLWB) crash on AMD Ryzen 7 | | 35 | **P0** | [#630](https://git.gtahub.st/github/Marvisak--VIctory/issues/630) | #648 | `L` | Cross-project site map: the title's two deliberate self-kills, the 8-GB int3, and the cold-run sentinel family (exe hash e95020b2…) | | 36 | **P0** | [#85](https://git.gtahub.st/github/Marvisak--VIctory/issues/85) | #189 | `L` | Intel host support (CLWB/CLZERO/MONITORX/SSE4a emulation) + GPU hang on NVIDIA at the language screen | | 37 | **P0** | [#29](https://git.gtahub.st/github/Marvisak--VIctory/issues/29) | #130 | `XS` | RX 9070 XT (RDNA4, Adrenalin 26.11.2): first-boot menus 30 fps for 4 min, no device loss (NVIDIA hangs do not reproduce) | | 38 | **P0** | [#59](https://git.gtahub.st/github/Marvisak--VIctory/issues/59) | — | `XS` | RX 9060 XT (RDNA4) / Host GPU device removed (DXGI_ERROR_DEVICE_HUNG) with page fault at 0x1a00b0000 in world | | 39 | **P0** | [#732](https://git.gtahub.st/github/Marvisak--VIctory/issues/732) | — | `XS` | What's needed right now to get the game further? | | 40 | **P0** | [#578](https://git.gtahub.st/github/Marvisak--VIctory/pulls/578) | #578 | `L` | GPU: refuse wave64 mesh and compute programs on hosts without 64-lane waves | | 41 | **P0** | [#700](https://git.gtahub.st/github/Marvisak--VIctory/issues/700) | — | `M` | GPU: a command-list 64-bit memory wait lets the consumer read before its producer writes | | 42 | **P0** | [#493](https://git.gtahub.st/github/Marvisak--VIctory/pulls/493) | #493 | `L` | GPU: bind root SRVs as one-view tables bounded to their host copy | | 43 | **P0** | [#413](https://git.gtahub.st/github/Marvisak--VIctory/pulls/413) | #413 | `XS` | GPU: materialize bindless ResourceDescriptorHeap views, refreshing only changed slots | | 44 | **P0** | [#89](https://git.gtahub.st/github/Marvisak--VIctory/pulls/89) | #89 | `XS` | gpu: packed 16-bit render targets are R8G8B8A8 where the GPU cannot render to them | | 45 | **P0** | [#177](https://git.gtahub.st/github/Marvisak--VIctory/pulls/177) | #177 | `XS` | Shaders: key heap handles by element type (atomic on a float-read UAV) | | 46 | **P0** | [#180](https://git.gtahub.st/github/Marvisak--VIctory/pulls/180) | #180 | `L` | Shaders: twin descriptor loads and quad gradients for compute samples | | 47 | **P0** | [#758](https://git.gtahub.st/github/Marvisak--VIctory/issues/758) | — | `M` | A texture that once received a GPU copy ignores later writes to its memory | | 48 | **P0** | [#597](https://git.gtahub.st/github/Marvisak--VIctory/issues/597) | — | `L` | DXGI_ERROR_DEVICE_HUNG (0x887A0006) at world load on 9070xt; many compute shaders fail to translate | | 49 | **P0** | [#340](https://git.gtahub.st/github/Marvisak--VIctory/issues/340) | — | `XS` | Feature request: experimental Linux/Wine support and compatibility documentation | | 50 | **P0** | [#571](https://git.gtahub.st/github/Marvisak--VIctory/pulls/571) | #571 | `XS` | Shaders: LDS byte and half accesses | | 51 | **P0** | [#628](https://git.gtahub.st/github/Marvisak--VIctory/pulls/628) | #628 | `L` | Shaders: lower ds_min_f32 / ds_max_f32 (and _rtn) with RDNA2's NaN rules | | 52 | **P0** | [#539](https://git.gtahub.st/github/Marvisak--VIctory/pulls/539) | #539 | `XS` | Shaders: 64-bit image atomics | | 53 | **P0** | [#489](https://git.gtahub.st/github/Marvisak--VIctory/pulls/489) | #489 | `L` | Shaders: spill-table loads read the arguments as they were on entry (stacked on #302) | | 54 | **P0** | [#453](https://git.gtahub.st/github/Marvisak--VIctory/pulls/453) | #453 | `XS` | Shaders: pixel barycentrics through SV_Barycentrics (values and computed interpolation) | | 55 | **P0** | [#431](https://git.gtahub.st/github/Marvisak--VIctory/pulls/431) | #431 | `L` | GPU: free host textures only after running submissions, and make them on first use | | 56 | **P0** | [#747](https://git.gtahub.st/github/Marvisak--VIctory/issues/747) | — | `L` | NVIDIA capped view heap: 2^16 dynamic slots starve world tables; 2^18 removes the indirect/mesh drops | | 57 | **P0** | [#707](https://git.gtahub.st/github/Marvisak--VIctory/pulls/707) | #707 | `XS` | Shaders: lower tbuffer_store_format_* that need no conversion | | 58 | **P0** | [#683](https://git.gtahub.st/github/Marvisak--VIctory/pulls/683) | #683 | `L` | Shaders: zero unavailable mixed-precision FMA halves | | 59 | **P0** | [#586](https://git.gtahub.st/github/Marvisak--VIctory/pulls/586) | #586 | `L` | Shaders: honor the mesh allocation request counts | | 60 | **P0** | [#573](https://git.gtahub.st/github/Marvisak--VIctory/pulls/573) | #573 | `L` | Shaders: lower ds_bpermute_b32 | | 61 | **P0** | [#458](https://git.gtahub.st/github/Marvisak--VIctory/pulls/458) | #458 | `L` | Fix GPU hangs, memory leak, and mesh shader exports; render intro cre… | | 62 | **P0** | [#305](https://git.gtahub.st/github/Marvisak--VIctory/pulls/305) | #305 | `XS` | Shaders: lower 64-bit image atomics | | 63 | **P0** | [#192](https://git.gtahub.st/github/Marvisak--VIctory/pulls/192) | #192 | `L` | Shaders: replace single-wave Wave64 LDS lockstep with barriers and lower 32-lane swizzle/DPP at WaveSize(32) | | 64 | **P0** | [#786](https://git.gtahub.st/github/Marvisak--VIctory/issues/786) | — | `L` | [GFX10] Device Removed (0x887A0006) after untranslatable compute shaders — GTA 6 Scarlett-Master | | 65 | **P0** | [#783](https://git.gtahub.st/github/Marvisak--VIctory/issues/783) | — | `XS` | GPU: a copy that meets an unmapped page retries in 64 KiB kernel calls (2 300-2 500 a world frame); one query per region is 2.3x cheaper | | 66 | **P0** | [#742](https://git.gtahub.st/github/Marvisak--VIctory/issues/742) | — | `XS` | Windows 10: unwinds_like_the_system_walk fails about half the time (RtlCaptureStackBackTrace returns no frames) | | 67 | **P0** | [#698](https://git.gtahub.st/github/Marvisak--VIctory/issues/698) | — | `XS` | World load on NVIDIA with no device removal: title breakpoint (0x80000003) after ~6.7 min, INSTANCE_LIST pool full (45000/45000) | | 68 | **P0** | [#619](https://git.gtahub.st/github/Marvisak--VIctory/issues/619) | — | `L` | RTX 3060 (8 GB): DXGI_ERROR_DEVICE_HUNG in world load (mesh 1da1eb9822214321, pixel ef9b757c9c1e4b26, command 1733/2145) | | 69 | **P0** | [#596](https://git.gtahub.st/github/Marvisak--VIctory/pulls/596) | #596 | `XS` | Shaders: lower v_cvt_pknorm_{i16,u16}_{f32,f16} with exact rounding | | 70 | **P0** | [#178](https://git.gtahub.st/github/Marvisak--VIctory/pulls/178) | #178 | `XS` | GPU: compile the indirect-argument clamp with DXC when D3DCompile refuses it (Wine/Proton) | | 71 | **P0** | [#752](https://git.gtahub.st/github/Marvisak--VIctory/issues/752) | — | `XS` | Linux on AMD: got in-game on a 9070 XT, here's what each crash was | | 72 | **P0** | [#708](https://git.gtahub.st/github/Marvisak--VIctory/pulls/708) | #708 | `XS` | fix(config): keep the data directory out of the cache root | | 73 | **P0** | [#688](https://git.gtahub.st/github/Marvisak--VIctory/pulls/688) | #688 | `L` | GPU: take back the dynamic descriptor slots of lists that ran when a heap runs short | | 74 | **P0** | [#592](https://git.gtahub.st/github/Marvisak--VIctory/pulls/592) | #592 | `XS` | Shaders: second rows of packed 16-bit pixel inputs | | 75 | **P0** | [#469](https://git.gtahub.st/github/Marvisak--VIctory/pulls/469) | #469 | `XS` | GPU: give depth targets their unordered access through a twin texture | | 76 | **P0** | [#465](https://git.gtahub.st/github/Marvisak--VIctory/pulls/465) | #465 | `XS` | Shaders: lower v_dot2_f32_f16 and v_dot2c_f32_f16 | | 77 | **P0** | [#452](https://git.gtahub.st/github/Marvisak--VIctory/pulls/452) | #452 | `XS` | Shaders: spin-wait loops stop after 4096 iterations; loop limit in release builds | | 78 | **P0** | [#444](https://git.gtahub.st/github/Marvisak--VIctory/issues/444) | — | `M` | IMPORTANT! Creating a decentralized chat for communication and coordination. Stage 1 | | 79 | **P0** | [#309](https://git.gtahub.st/github/Marvisak--VIctory/pulls/309) | #309 | `L` | Shaders: forward SGPRs reloaded from VGPR lanes as the spilled value | | 80 | **P0** | [#298](https://git.gtahub.st/github/Marvisak--VIctory/pulls/298) | #298 | `L` | Shaders: lane masks spilled to VGPR lanes and read back | | 81 | **P0** | [#211](https://git.gtahub.st/github/Marvisak--VIctory/pulls/211) | #211 | `XS` | GPU: composite multiple PresentX planes (fixes Series S black UI/menus) | | 82 | **P0** | [#785](https://git.gtahub.st/github/Marvisak--VIctory/issues/785) | — | `XS` | Placed buffer-to-texture copy reads stale data after a same-list GPU write | | 83 | **P0** | [#778](https://git.gtahub.st/github/Marvisak--VIctory/issues/778) | — | `L` | [NVIDIA RTX 3070] World TDR traced to wave64 mesh shaders (DRED per run); #578 removes the hang, world then renders black | | 84 | **P0** | [#776](https://git.gtahub.st/github/Marvisak--VIctory/issues/776) | — | `XS` | GPU: write-watch askings repeat over nested buffers (120-180 ms a world frame); a fix is on a branch | | 85 | **P0** | [#771](https://git.gtahub.st/github/Marvisak--VIctory/issues/771) | — | `XS` | Resource-backed texture UAV clears are missing from command lists | | 86 | **P0** | [#736](https://git.gtahub.st/github/Marvisak--VIctory/issues/736) | — | `M` | Shaders: #612 stops 323 previously validated programs from translating | | 87 | **P0** | [#606](https://git.gtahub.st/github/Marvisak--VIctory/pulls/606) | #606 | `L` | Shaders: ds_swizzle_b32 offsets from 0xC000 are the rotate and FFT modes | | 88 | **P0** | [#605](https://git.gtahub.st/github/Marvisak--VIctory/pulls/605) | #605 | `XS` | Shaders: v_cvt_rpi_i32_f32 rounds the exact sum; v_cvt_flr/rpi_i32_f32 saturate a NaN by its sign | | 89 | **P0** | [#595](https://git.gtahub.st/github/Marvisak--VIctory/pulls/595) | #595 | `L` | GPU: run submissions asynchronously on a host fence timeline | | 90 | **P0** | [#584](https://git.gtahub.st/github/Marvisak--VIctory/pulls/584) | #584 | `XS` | Shaders: clamp ResourceDescriptorHeap and SamplerDescriptorHeap indices to host limits | | 91 | **P0** | [#542](https://git.gtahub.st/github/Marvisak--VIctory/pulls/542) | #542 | `XS` | Shaders: keep buffer offsets below 2 GiB (NVIDIA + vkd3d-proton world device loss) | | 92 | **P0** | [#533](https://git.gtahub.st/github/Marvisak--VIctory/issues/533) | — | `XS` | Series X mode crashes at loading artwork on RX 6700 XT, including with WARP | | 93 | **P0** | [#504](https://git.gtahub.st/github/Marvisak--VIctory/pulls/504) | #504 | `XS` | GPU: handle depth/stencil copy footprints | | 94 | **P0** | [#496](https://git.gtahub.st/github/Marvisak--VIctory/issues/496) | — | `L` | Black world and host GPU reset (DXGI_ERROR_DEVICE_HUNG) on NVIDIA at the first cutscene; 343 shaders don't translate | | 95 | **P0** | [#379](https://git.gtahub.st/github/Marvisak--VIctory/pulls/379) | #379 | `XS` | Shaders: lower v_div_fixup_f16 | | 96 | **P0** | [#318](https://git.gtahub.st/github/Marvisak--VIctory/pulls/318) | #318 | `XS` | Shader: pack a16 image addresses as the hardware does; image_sample_d_cl | | 97 | **P0** | [#223](https://git.gtahub.st/github/Marvisak--VIctory/pulls/223) | #223 | `L` | Shaders: translate for the host's wave sizes | | 98 | **P0** | [#218](https://git.gtahub.st/github/Marvisak--VIctory/pulls/218) | #218 | `XS` | APU: decode-convert and PCM rate conversion | | 99 | **P0** | [#202](https://git.gtahub.st/github/Marvisak--VIctory/pulls/202) | #202 | `XS` | GPU: skip unmapped regions after a failed bulk read into host memory | | 100 | **P0** | [#169](https://git.gtahub.st/github/Marvisak--VIctory/pulls/169) | #169 | `XS` | Shaders: tbuffer_load_format_d16 loads pack two 16-bit channels per VGPR | | 101 | **P0** | [#164](https://git.gtahub.st/github/Marvisak--VIctory/pulls/164) | #164 | `XS` | Shaders: integer memory atomics and sub-dword buffer accesses | | 102 | **P0** | [#138](https://git.gtahub.st/github/Marvisak--VIctory/pulls/138) | #138 | `XS` | Shaders: gradient samples on cube images | | 103 | **P0** | [#116](https://git.gtahub.st/github/Marvisak--VIctory/pulls/116) | #116 | `XS` | Shaders: byte and halfword LDS reads and writes | | 104 | **P0** | [#73](https://git.gtahub.st/github/Marvisak--VIctory/pulls/73) | #73 | `XS` | Shaders: support image_sample_b with a16 and _cl LOD-clamp variants | | 105 | **P0** | [#784](https://git.gtahub.st/github/Marvisak--VIctory/issues/784) | — | `L` | After the start screen: 1841 draws/frame but a frozen frame — captured frames show the title's own dark background, not a black screen | | 106 | **P0** | [#750](https://git.gtahub.st/github/Marvisak--VIctory/issues/750) | — | `L` | Shader resource tracking: redundant masked write after a per-lane descriptor join is refused (synthetic repro on #566) | | 107 | **P0** | [#728](https://git.gtahub.st/github/Marvisak--VIctory/issues/728) | — | `L` | Patch (fork): lower 64-bit image atomics, SMEM descriptor size reads, and spilled lane masks (+657 PSOs on RTX 5060 Ti) | | 108 | **P0** | [#725](https://git.gtahub.st/github/Marvisak--VIctory/issues/725) | — | `XS` | Shaders: glc loads aren't marked globally coherent, so cross-workgroup waits may never see the write | | 109 | **P0** | [#724](https://git.gtahub.st/github/Marvisak--VIctory/issues/724) | — | `XS` | Shaders: one heap descriptor gets an SRV handle for its loads and a UAV handle for its stores | | 110 | **P0** | [#660](https://git.gtahub.st/github/Marvisak--VIctory/pulls/660) | #660 | `L` | Shaders: drop a wave64 mask whose low dword is seen with two high dwords | | 111 | **P0** | [#643](https://git.gtahub.st/github/Marvisak--VIctory/pulls/643) | #643 | `XS` | GPU: share live host textures across aliased addresses and canonicalize view descriptors | | 112 | **P0** | [#642](https://git.gtahub.st/github/Marvisak--VIctory/pulls/642) | #642 | `XS` | GPU: translate enhanced texture barriers in ID3D12GraphicsCommandList7::Barrier | | 113 | **P0** | [#625](https://git.gtahub.st/github/Marvisak--VIctory/issues/625) | — | `L` | [NVIDIA RTX 3060 Ti] GPU hang (0x887A0006) ~50s after entering world / first mission subtitles | | 114 | **P0** | [#563](https://git.gtahub.st/github/Marvisak--VIctory/pulls/563) | #563 | `XS` | Shaders: cube samples with gradients, and image_sample_d_cl | | 115 | **P0** | [#530](https://git.gtahub.st/github/Marvisak--VIctory/pulls/530) | #530 | `XS` | GPU diagnostics: show one of the title's render targets in the window | | 116 | **P0** | [#522](https://git.gtahub.st/github/Marvisak--VIctory/pulls/522) | #522 | `L` | HLE: validate null package identifier in XPackage methods | | 117 | **P0** | [#486](https://git.gtahub.st/github/Marvisak--VIctory/pulls/486) | #486 | `XS` | shader: opt the test binaries into an app-local Agility SDK runtime | | 118 | **P0** | [#470](https://git.gtahub.st/github/Marvisak--VIctory/pulls/470) | #470 | `XS` | shader: lower wave prefixes of min and max | | 119 | **P0** | [#437](https://git.gtahub.st/github/Marvisak--VIctory/pulls/437) | #437 | `XS` | Shaders: preserve raw scalar buffer loads on NVIDIA | | 120 | **P0** | [#422](https://git.gtahub.st/github/Marvisak--VIctory/pulls/422) | #422 | `XS` | Shaders: narrow f32 to f16 to nearest even, as the console does | | 121 | **P0** | [#417](https://git.gtahub.st/github/Marvisak--VIctory/issues/417) | — | `L` | Boot -> account picker -> Rockstar logo -> start screen at a stable 30 fps (RX 7900 XTX / 9800X3D); 5 WARN lines worth a look | | 122 | **P0** | [#416](https://git.gtahub.st/github/Marvisak--VIctory/pulls/416) | #416 | `XS` | shader: implement v_cvt_f32_f64 instruction lowering | | 123 | **P0** | [#404](https://git.gtahub.st/github/Marvisak--VIctory/pulls/404) | #404 | `XS` | shader: lower v_permlanex16_b32 | | 124 | **P0** | [#394](https://git.gtahub.st/github/Marvisak--VIctory/issues/394) | — | `L` | Linux support: is there interest, and can I help test? | | 125 | **P0** | [#326](https://git.gtahub.st/github/Marvisak--VIctory/pulls/326) | #326 | `L` | Shaders: DXBC/DXIL parser and sampler/SP3 robustness fixes | | 126 | **P0** | [#322](https://git.gtahub.st/github/Marvisak--VIctory/pulls/322) | #322 | `XS` | GPU: copy into title memory without asking for its region first | | 127 | **P0** | [#319](https://git.gtahub.st/github/Marvisak--VIctory/pulls/319) | #319 | `XS` | GPU: end a late flip wait on the tick it missed, not the next | | 128 | **P0** | [#265](https://git.gtahub.st/github/Marvisak--VIctory/pulls/265) | #265 | `XS` | Shaders: private (scratch) memory as a per-lane array | | 129 | **P0** | [#197](https://git.gtahub.st/github/Marvisak--VIctory/pulls/197) | #197 | `XS` | Input: apply VICTORY_KEYS to a connected host pad too | | 130 | **P0** | [#168](https://git.gtahub.st/github/Marvisak--VIctory/pulls/168) | #168 | `XS` | Shaders: SCC of s_min, s_max and s_lshl1-4_add_u32 as the ISA sets it | | 131 | **P0** | [#115](https://git.gtahub.st/github/Marvisak--VIctory/pulls/115) | #115 | `XS` | Census: report directory traversal failures | | 132 | **P0** | [#109](https://git.gtahub.st/github/Marvisak--VIctory/pulls/109) | #109 | `XS` | Shaders: rebuild a cube image descriptor for code that reads its dwords | | 133 | **P0** | [#99](https://git.gtahub.st/github/Marvisak--VIctory/issues/99) | — | `XS` | Access violation at +0x4e33a92 while the first mission intro prestreams (Windows 10, RTX 4080) | | 134 | **P0** | [#24](https://git.gtahub.st/github/Marvisak--VIctory/pulls/24) | #24 | `L` | GPU: run indirect mesh dispatches (DispatchMeshX) through indirect execution | | 135 | **P0** | [#834](https://git.gtahub.st/github/Marvisak--VIctory/issues/834) | — | `XS` | Wine/Proton: title stops itself (0x80000003 at +0x4dcbc9d) ~19 s into boot; one-page MapViewOfFile3 calls get slower with every view | | 136 | **P0** | [#811](https://git.gtahub.st/github/Marvisak--VIctory/issues/811) | — | `L` | HLE: OLEAUT32 ordinals 4/6 (imported by vccorlib140.dll) have no binding | | 137 | **P0** | [#793](https://git.gtahub.st/github/Marvisak--VIctory/issues/793) | — | `XS` | Core: policy::resolve fails on trailing .. and skips .. folding under Windows \\\\?\\ verbatim prefixes (fix on a fork) | | 138 | **P0** | [#761](https://git.gtahub.st/github/Marvisak--VIctory/issues/761) | — | `L` | docs/architecture.md still lists BCPack as planned | | 139 | **P0** | [#645](https://git.gtahub.st/github/Marvisak--VIctory/pulls/645) | #645 | `L` | Shaders: trace multi-term, scaled, masked, and phi-joined addresses in resource tracking | | 140 | **P0** | [#621](https://git.gtahub.st/github/Marvisak--VIctory/pulls/621) | #621 | `L` | Shaders: read explicit packed input padding as zero | | 141 | **P0** | [#613](https://git.gtahub.st/github/Marvisak--VIctory/pulls/613) | #613 | `XS` | HLE: serialize device callbacks across delivery threads | | 142 | **P0** | [#587](https://git.gtahub.st/github/Marvisak--VIctory/pulls/587) | #587 | `L` | Shaders: guard mesh output bounds, init all primitives, and omit sync on divergent s_barrier | | 143 | **P0** | [#569](https://git.gtahub.st/github/Marvisak--VIctory/pulls/569) | #569 | `XS` | Shaders: biased samples with 16-bit coordinates | | 144 | **P0** | [#554](https://git.gtahub.st/github/Marvisak--VIctory/pulls/554) | #554 | `L` | Shaders: one interpolation mode per signature row | | 145 | **P0** | [#515](https://git.gtahub.st/github/Marvisak--VIctory/pulls/515) | #515 | `XS` | GPU: ask for written pages allocation by allocation when a range spans several | | 146 | **P0** | [#492](https://git.gtahub.st/github/Marvisak--VIctory/pulls/492) | #492 | `XS` | GPU: substitute R9G9B9E5_SHAREDEXP render targets and UAVs with R16G16B16A16_FLOAT | | 147 | **P0** | [#461](https://git.gtahub.st/github/Marvisak--VIctory/pulls/461) | #461 | `XS` | GPU: keep the initial pipeline of new command lists | | 148 | **P0** | [#438](https://git.gtahub.st/github/Marvisak--VIctory/pulls/438) | #438 | `L` | CI: native Apple Silicon builds and synthetic offline shader tests | | 149 | **P0** | [#387](https://git.gtahub.st/github/Marvisak--VIctory/pulls/387) | #387 | `L` | GPU: preserve execution ordering for buffer copies | | 150 | **P0** | [#333](https://git.gtahub.st/github/Marvisak--VIctory/pulls/333) | #333 | `L` | Shaders: keep native root parameters inside the SGPRs, clamp the thread-id count, and name each blob refusal | --- > **Continue Series:** Part 1/2: `https://github.com/Marvisak/VIctory/issues/1242` | **Part 2/2 (this issue)**
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:24:59 +00:00
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 17:48 UTC · original

Cross-checked two of the 45 against the sibling runtime (ivall/xcl → now xcl-dev/xcl) before anyone ports them blindly — both classes are absent here, which may help your dedup instincts on this list: ① VIC-BT-026 (raw VCC vs vcc & exec): our s_cbranch_vccz/nz tests the raw mask pair directly (emit.rs:642/977 — mask_zero reads the two SGPRs with no EXEC AND), so the raw-VCC reading is the implemented one on the sibling, matching your hardware claim — two runtimes converging on raw-VCC raises confidence for the fix. ② VIC-BT-040 (quota walk following symlinks/junctions): our PLS accounting (xgameruntime/mod.rs:pls_used_bytes) skips every reparse point before any metadata call, leaning on DirEntry::file_type reporting all name-surrogate reparse points (symlink and junction) as is_symlink without dereferencing — one comment line of hardening and the recursion/quota-escape class is structurally gone; worth copying verbatim since your used_bytes() has the same surface. ③ FYI on VIC-BT-030/031: they duplicate in-flight #1044 and the claims here are the opposite of #1044's headline (EXEC gating writelane; masking the lane selector) while matching xcl's implemented behavior — whichever way the GPU matrix in #1044 lands, all three should be closed together on one measurement rather than three guesses.

**@⁠pickles976** on GitHub · 2026-11-24 17:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/1249#issuecomment-7139745219) Cross-checked two of the 45 against the sibling runtime (ivall/xcl → now xcl-dev/xcl) before anyone ports them blindly — both classes are **absent here**, which may help your dedup instincts on this list: ① **VIC-BT-026** (raw VCC vs `vcc & exec`): our `s_cbranch_vccz/nz` tests the raw mask pair directly (`emit.rs:642/977` — `mask_zero` reads the two SGPRs with no EXEC AND), so the raw-VCC reading is the implemented one on the sibling, matching your hardware claim — two runtimes converging on raw-VCC raises confidence for the fix. ② **VIC-BT-040** (quota walk following symlinks/junctions): our PLS accounting (`xgameruntime/mod.rs:pls_used_bytes`) skips every reparse point *before* any metadata call, leaning on `DirEntry::file_type` reporting all name-surrogate reparse points (symlink **and** junction) as `is_symlink` without dereferencing — one comment line of hardening and the recursion/quota-escape class is structurally gone; worth copying verbatim since your `used_bytes()` has the same surface. ③ FYI on **VIC-BT-030/031**: they duplicate in-flight #1044 and the claims here are the **opposite** of #1044's headline (EXEC gating writelane; masking the lane selector) while matching xcl's implemented behavior — whichever way the GPU matrix in #1044 lands, all three should be closed together on one measurement rather than three guesses.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 10:13 UTC · original

Automated triage for the maintainers.

Thanks for the audit. 22 separate findings plus a 150-row backlog can't be confirmed or closed as one issue. Each finding should be a pull request (open to everyone now) with its test, or a separate issue. This issue stays open as the index (with Part 1, #1242). Status checked on main:

  • VIC-BT-034: fixed. #1274 (merged 2026-11-25) put unregister_progress at vtable slot 0x50 in crates/victory-hle/src/modules/xpackage.rs.
  • VIC-BT-026: still as described. In crates/victory-shader/src/structure.rs, s_cbranch_vccz/vccnz test vcc & exec. Open PR #1336 changes this.
  • VIC-BT-030/031: this is #1044 (confirmed, patch on a fork). Please follow up there.
  • Open PRs that name this issue: #1312, #1313 and #1938 (resinfo/lanes), #1939 (SMEM alignment), #1445 and #1935 (physical page reuse), #1383 and #1932 (DirectStorage OpenFile), #1928 (used_bytes junctions), #2001 (local hostname), #1941 (analytics family), #2159 (VOP3 conversion modifiers).

The other items are not verified here. A failing test against current main is the quickest way to settle each one.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 10:13 UTC · [original](https://github.com/Marvisak/VIctory/issues/1249#issuecomment-7159396550) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T17:48:59Z at=2026-11-25T09:50:38Z --> Automated triage for the maintainers. Thanks for the audit. 22 separate findings plus a 150-row backlog can't be confirmed or closed as one issue. Each finding should be a pull request (open to everyone now) with its test, or a separate issue. This issue stays open as the index (with Part 1, #1242). Status checked on `main`: - VIC-BT-034: fixed. #1274 (merged 2026-11-25) put `unregister_progress` at vtable slot `0x50` in `crates/victory-hle/src/modules/xpackage.rs`. - VIC-BT-026: still as described. In `crates/victory-shader/src/structure.rs`, `s_cbranch_vccz`/`vccnz` test `vcc & exec`. Open PR #1336 changes this. - VIC-BT-030/031: this is #1044 (confirmed, patch on a fork). Please follow up there. - Open PRs that name this issue: #1312, #1313 and #1938 (resinfo/lanes), #1939 (SMEM alignment), #1445 and #1935 (physical page reuse), #1383 and #1932 (DirectStorage `OpenFile`), #1928 (`used_bytes` junctions), #2001 (local hostname), #1941 (analytics family), #2159 (VOP3 conversion modifiers). The other items are not verified here. A failing test against current `main` is the quickest way to settle each one. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#1249
No description provided.