Shaders: return zero for unused image query extents #1313
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1313
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1313"
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?
@EatCodeSleep2 on GitHub · 2026-11-24 17:21 UTC · original
EatCodeSleep2:fix/image-resinfo-unused-extents-1249→main· +56 −13 · 2 files · 1 commits · openSummary
Return zero for unused extents in the 1D, 2D and 1D-array
image_get_resinfocases. UAVs continue to report one mip level. Cube queries retain their existing behavior.Refs #1249, finding VIC-BT-038. The reported RDNA2 behavior is also documented in the published hardware measurements.
Verification
[3, 2, 1, 1]on main. After the fix it validates and returns[3, 2, 0, 1]on native Direct3D 12 and WARP.GPU readback covered 2D. This run used no RDNA2 hardware or game files. AI-assisted.
@crosettiremi on GitHub · 2026-11-24 17:28 UTC · original · edited 2026-11-24 17:35 UTC
Independent XCL cross-check on a Windows RX 7900 XT, using XCL's native D3D12 compute fixture. A 4×4, single-mip 2D texture queried with all four result channels returned
[4, 4, 1, 1]before changing the emitter. Changing the unused extent to zero returned[4, 4, 0, 1]across the tested lanes. XCL’s existing native cube-array fixture also passed with 12 layers for two cubes. This reproduces the 2D discrepancy in a second translator. The game impact and 1D cases are unmeasured here.Game follow-up on the same RX 7900 XT: the XCL test build accepted the account selection and continued world streaming. The last captured frame was dark, and the process ended with a second-chance guest breakpoint at RVA 0xf2cc4b after 204 s with no logged device removal. The 2D query correction alone did not produce a visible world on this run.
@Marvisak on GitHub · 2026-11-25 01:21 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-shader/src/emit/waterfall_tests.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.