shader: a non-cube view's unused size-query extent reads 0 #651
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-29T08:49:13Z.
Ported 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.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-29T09:02:32Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.