GPU: device slots 0x1c8 and 0x218 fail on purpose, with no object #3163
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!3163
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3163"
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?
@arogan178 on GitHub · 2026-11-26 10:39 UTC · original
arogan178:gpu/device-slot-0x1c8→main· +35 −0 · 1 files · 1 commits · openDevice slots 0x1c8 and 0x218 load pipelines from the title's cache of precompiled native code. When they fail, Grand Theft Auto VI makes the same pipeline from its ordinary description, which we already translate. So they should keep failing. This PR names them, sets
outto null on failure (asked for in #829), and records why in the code.Evidence (GTA VI 1.0.2.1)
Both take
(desc, IID_ID3D12PipelineState, out). The description is the root signature, then sections like the FSPX ones #2396 reads: a register packet, a second section, then code and metadata per stage.create_stream).create_compute_x) with the ordinary description.This is why #2396 regresses rendering. Answering 0x218 swaps pipelines we translate for native-only ones that do not translate (an in-game run with it: dropped draws per frame went from 82 to 1,440, and 328 compute shaders failed). Answering
S_OKwithout an object crashed the title (#518).Tests
device::tests::precompiled_pipelines_fail_with_no_object, plus the rest ofdevice::: 9 passed.victory-gputests cross-built forx86_64-pc-windows-msvc, run under Proton on an RX 9070 XT.victorydiag build, one run into the world: themethod not implementedwarnings for these slots are gone. The title sees the same E_NOTIMPL as before, so nothing else changes.cargo xtask policy: ok.No game data used.
@Dukestar69 on GitHub · 2026-11-26 10:47 UTC · original · approved these changes
Verified on RTX 5090 against
origin/main(63bcca4):cargo test -p victory-gpu --lib device:: -- --test-threads=1: 9/9 passed (includingprecompiled_pipelines_fail_with_no_object).cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Cleanly ensures device slots
0x1c8and0x218fail explicitly and clear the output object pointer.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.