shader: a non-cube view's unused size-query extent reads 0 #655
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!655
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-651"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@AnastasisKon on GitHub · 2026-11-29 08:49 UTC · original
AnastasisKon:vibe/port-noncube-extent-39ffdc→main· +32733 −2554 · 175 files · 331 commits · openPorted from coolfox-dg 0e525f12f (Dathinel) via halfwave50/VIctory-macOS-halfwave50 4ac1eac6.
What changed
image_get_resinfo(op 72) left a channel that DXIL'sgetDimensionsomits as 1, so a 2D view's depth read 1. Non-cube views now give 0 for an unused extent; a cube's depth stays 1 and a UAV still reports one level. This line's writable-image level behaviour is kept (the source tree lacks it).build()inwaterfall_tests.rstakes the expected nonuniform-handle count: 1 at every existing call, 0 for the new uniform-descriptor programimage_resinfo_returns_zero_depth_for_a_2d_view(asserts[3, 2, 0, 1]per lane; Windows/Wine test path, as on the source line).Testing
cargo test -p victory-hle -p victory -p victory-shader -p victory-gpu -p xtask -- --test-threads=1— 1121 passed, 0 failed (the waterfall test runs in the Windows/Wine path; this Mac cannot run it)cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningscargo xtask policy(478 files ok)Checklist
hle: name why dereferencing the device out pointer is sound— an undocumented unsafe block ind3d12x.rsfailed the required gnullvm clippy run on main for everyone; a safety comment is the whole fix.Source attribution: RDNA2 dimension correction by EatCodeSleep2 and Moon0755 (Marvisak/VIctory#1313, fxceless/victory-fork#957), carried by coolfox-dg 0e525f12f and halfwave50 4ac1eac6.
The reason line ("a draw without a host render pipeline (refused or not translated)") does not say which pipeline was dropped, and it is logged once per reason for the run, so a log could not name the draws nothing else had explained (#531's three hashes). Each dropped pipeline now gets one warning of its own with `pipeline =` its stages' hashes and render targets, up to 64 keys, before the `VICTORY_TRACE_TARGETS` frame trace that had this detail only under a switch. Test: `glue::a_dropped_pipeline_is_named_once`.`VICTORY_DUMP_DSP` is process-wide and so is the counter that numbers each stream's capture, so a stream another test activates while the variable is set takes `stream0_*` — and the dump test, reading the right file name, got that stream's zeros: ``` panicked at modules/dsp.rs:949: assert_eq!(read_f32("stream0_ir.f32"), ir) left: [0.0, 0.0, ... ] ``` One run in four of the whole suite, never alone. The two tests that activate streams now take a turn, so nothing can start a stream inside the other's capture. 15 runs of `victory-hle`'s suite: no failures.The Winsock tests take a turn (`serial()`) because the startup count is the process's — but `modules::net`'s `only_loopback_is_reachable` drives the same functions by name (`host!("ws2_32.dll", "socket")`, `connect`, `WSAConnectByNameA`, `WSAIoctl`, `closesocket`) without it. It can therefore start the stack up inside `off_machine_traffic_is_refused`'s "not started again" assertion, or take an ephemeral port inside `final_cleanup_invalidates_sockets_and_releases_their_ports`'s rebind of one it just released — the two winsock failures reported in #616. The turn now lives in `host_posix` (`winsock_turn`), and both modules take it; it is compiled only where that host is. The Winsock module alone never failed (0 of 20 runs), which is what pointed at the other module rather than at the socket code. 12 runs of `victory-hle`'s suite: no failures.Four measurements that close off the cheap explanations before the next person spends runs on them: a periodic dump shows every other thread idle (so nothing can ever satisfy the wait), the console model makes no difference, the records around the missing key are an index of {size, hash, kind, offset} entries that already names it, and the table slots the lookup reads are never written. The pool's alias views are coherent too -- the same record reads the same through both, so aliasing is not what fails.`VICTORY_PEEK=rsi+0x10020+0x38` is the entry that reads a field of a field — the shape the boot trap needed, since the object the writer keeps is at `[rsi+0x10020]` and its fields at `+0x38`, `+0x60`. The parser split on the first `+` and gave up on the rest, so such entries named nothing and were skipped without a word. Terms now add up; `peek_entries_add_their_offsets` covers the sum, spacing, a term that is no hex and one that overflows. The doc's completion-test bullet is rewritten with what the entries then read, and corrected: the false the trap reports can only come from `0x1330e5e`, on slot `+0x30` of what `0x1331110` returned — not from `[S+0x38 + n*8]`, which was a guess: `[S+0x38]` is `0x18171e400`, zero for its first 0x40 bytes and written by nothing, and `[S+0x40]` is `{0x1478f6a50, 0x47bf, 0}`. `[S+0x60]` (the destination) is null, which the code handles by building one rather than by failing.@AnastasisKon on GitHub · 2026-11-29 09:02 UTC · original
Added, same integration:
formats: map console texture formats 189-191(Pragyaan Gaur's mac 197796cd via halfwave50 PR #19) andhle: a save version that cannot be removed does not fail the container(Pragyaan Gaur's mac 5f7409be via halfwave50 PR #19). Both carry their tests; the full suite (1122 passed) and clippy/policy are green.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.