Query resolves: never write results the host refused #1746
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!1746
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1746/head"
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?
@kais7654 on GitHub · 2026-11-24 21:53 UTC · original
kais7654:query-resolve-range-fix→main· +354 −18 · 4 files · 2 commits · closed without mergingStacked on #1731 (base branch is that PR's head, since this fixes it).
resolve_queriestook the measured path without checking whether theresolve's range fits the heap. A range
ResolveQueryDatarefuses (pastthe heap's count, or count == 0) leaves the read-back buffer untouched
with undefined contents, and those garbage u64s still went into the
title's memory — worse than the stubs' plausible values. The measured
path now also asks
range_fits(first + count against the heap'scount), and a refused range keeps the stub path.
A failing
Mapof a read-back buffer also logs now, like the otherdeferred failures, instead of dropping the results in silence.
Verified:
cargo check,cargo clippyandcargo test -p victory-gpu(51 passed, including #1731's occlusion test). The full workspace test
suite could not finish here for lack of disk space; nothing outside
victory-gpuis touched.Pull request closed