GPU: reject shader-visible RTV and DSV heap creation #2961
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!2961
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2961"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-26 01:34 UTC · original
andrewpozdnakov7-jpg:codex2/descriptor-heap-visibility→main· +52 −1 · 1 files · 1 commits · openCreateDescriptorHeap now returns E_INVALIDARG when an RTV or DSV heap is requested with SHADER_VISIBLE and an output object. Only CBV/SRV/UAV and sampler heaps support the flag. D3D12 descriptor heap flags.
On both inbox and app-local D3D12 WARP, the two shader-visible RTV/DSV creations returned E_INVALIDARG with no heap. Six valid combinations of type and flag created an object. The eight null-output calls returned S_FALSE. The test uses one descriptor per heap.
The same fixture through VIctory's device vtable on main at
63bcca43failed because the shader-visible RTV case returned S_OK and an object. The patch passes the complete 16-call matrix.Eight descriptor tests and the full WARP GPU diagnostics suite passed (247 passed, one ignored). Strict GPU Clippy with default and diagnostic features and asset policy passed.
AI-assisted. Validation used synthetic calls and software WARP.
@Marvisak on GitHub · 2026-11-26 05:36 UTC · original
Automated triage for the maintainers.
Needs work. The change in
create_heap(victory-gpu/src/descriptor.rs) makes the emulated console device returnE_INVALIDARGfor a shader-visible RTV/DSV heap. The code itself is small and the test is clear, but the evidence is desktop D3D12 (the Learn page and WARP), while this function stands in for the console's runtime, whose validation can differ. The title only ever sees what the console runtime does, so anE_INVALIDARGhere is only right if the console runtime also refuses this call; if it does not, the change could turn an accepted call into a failure. Either way, a call the title never makes gains nothing from this.What would change the verdict: evidence that the console runtime rejects this flag combination (for example, the title's own code checking for that failure), or a log showing the title makes this call. Without that, this looks like a guard for a case that does not occur.
CI: passing.
Generated by Claude Code
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.