GPU: reject mismatched command list allocators #2965
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!2965
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2965"
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:44 UTC · original
andrewpozdnakov7-jpg:codex2/command-list-allocator-type→main· +95 −8 · 3 files · 1 commits · openCommand list creation and Reset now require an allocator of the same command list type. The shared list paths check the allocator before creating host state, marking a pipeline used, or restarting a list. The cross-queue regression now supplies a matching allocator for each of its graphics and compute lists.
Native inbox and app-local D3D12 WARP returned E_INVALIDARG for real list creation and for Reset with a mismatched DIRECT/COPY allocator, in both directions. A matching reset after the rejection returned S_OK. CreateCommandList, Reset.
The same synthetic guest-vtable fixture on main at
63bcca43created a list and returned S_OK in every mismatch case. The patch matches the native results for both list types, including the matching creation and reset controls.Five default list tests and the app-local WARP diagnostics suite passed (247 passed, one ignored), including the cross-queue fixture. Strict GPU Clippy in both feature configurations and asset policy passed.
AI-assisted. The paired comparison used software WARP and synthetic lists.
github-bot referenced this pull request2026-11-26 05:19:10 +00:00
@andrewpozdnakov7-jpg on GitHub · 2026-11-26 01:59 UTC · original
Thanks for the RTX 5090 and WARP checks. On both inbox WARP and Agility WARP, CreateCommandList with a null output returned E_UNEXPECTED with either allocator in both DIRECT/COPY directions. Real creates and Reset returned E_INVALIDARG for the mismatched type, and a subsequent matching Reset returned S_OK.
I kept VIctory's established S_FALSE probe behavior in
6f8a7e4. Removing the output guard would make the mismatched probe return E_INVALIDARG and the matching probe return S_FALSE, where both native runtimes reported the same status. The real-create and Reset paths are the ones covered by this fix.Review note
@Marvisak on GitHub · 2026-11-26 05:22 UTC · original
Automated triage for the maintainers.
Proposed close. This makes
new_listandresetincrates/victory-gpu/src/list.rsreturnE_INVALIDARGwhen the allocator's type differs from the list's (or the allocator isn't one of ours, via the newObject::uses_table). That is input validation on the title's calls: a correct title never passes a mismatched allocator, so it adds no capability, and the evidence is desktop D3D12 / WARP behaviour, not the console runtime, which this layer emulates. If the console runtime accepts a pairing desktop D3D12 rejects, this turns a working call into a failure; the cross-queue test inresource.rsthat had to change (a compute list on a direct allocator) is the kind of pattern that would break. What would change the verdict: evidence that the title passes a mismatched allocator and that the console rejects it, or a title-visible bug this fixes.CI: passing.
This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the
triage: proposed closelabel.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.