Shaders: read programs in a VPCS part (VPP1): 644 of 869 programs that had no DXIL part translate #3458
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3458
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3458"
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?
@OGShotz on GitHub · 2026-11-29 23:31 UTC · original
OGShotz:pr-shader-vpp1→main· +982 −24 · 9 files · 1 commits · closed without mergingWhat it changes
869 of the title's shader containers carry their native program in a
VPCSpart, whose payload starts withVPP1, instead ofDXILorACCC: 272 vertex and 597 pixel programs.translate_plainfailed each one withmalformed shader: no DXIL part, and every draw using it was dropped. A preload run met 69 different vertex programs of this kind.The payload holds raw (uncompressed) GFX10 code ending in
s_endpgm, with a header and metadata around it. This adds a reader for it (crates/victory-shader/src/vpp1.rs):DB_SHADER_CONTROL, colour formats; the vertex element and PS input tables; the code; and the loose metadata v2, which gives the root layout.s[0:1]. Each fetch becomes moves from input VGPRs placed past the program's own, with the code laid out again and branch offsets moved.native::container_programspicksDXIL,ACCCorVPCS;translate_plain, the GPU pipeline and the CLI use it.lower: compressed (fp16 pair) colour exports are widened to 32-bit floats, a 32-bit export to a 16-bitSV_Targetis taken as is, andPOS_FIXED_PTis formed fromSV_Position.The other 225 hit gaps elsewhere in the translator, mostly one sampler-table pattern, and still fail as before, with their own error instead of "no DXIL part".
How it was tested
VPCScontainers of the local pipeline book (victory translate --validate): 0 translated.dxil.dllvalidation. In a preload with this change, "no DXIL part" no longer appears (it had 69 distinct vertex programs before); 4 pixel programs fail with "an address from a root parameter that is no address".41adb551plus further PRs): no crash, 12.1 fps on average and never under 6 fps at about 6,400 draws a frame, on this CPU-limited PC. Both builds carry other changes too, so this is not a picture or speed comparison of this change alone.cargo testpassed for the crates it touches: on this branch (main716a0c99+ this commit),victory-shader470 passed,victory(CLI) 79 + 3 passed,victory-gpu913 passed with the same 2 failures as main without this change (every_switch_of_the_translator_is_in_the_key, see #3210;places_written_after_sending_are_learned, which passes alone). The new tests build their inputs from synthetic bytes, no game data.Checked for overlap
VPCSorVPP1.🤖 Generated with Claude Code
@nick0451 on GitHub · 2026-11-30 01:51 UTC · original
Exact translation check, with no game run: the title's shaders (game folder: 26,599 containers, 26,180 programs, 25,789 with emitted DXIL hashes),
victory translate --listwithVICTORY_HOST_WAVE=32, main41adb551(v2026.11.29.05) against this PR merged onto it, plus this PC's local shader book (cache/pipelines/known-shaders.bin, 19,121 containers).Result: no change here. Neither set has a container with a
VPCSpart. On main, every program in both sets already translates, and none fails with "no DXIL part". With this PR all output hashes are identical. So I couldn't check the new reader against this dump. The 869VPCScontainers may come from a different build of the title than the one here. If you can say which title version or package yours is, I'll compare.🤖 Generated with Claude Code
@OGShotz on GitHub · 2026-11-30 03:35 UTC · original
Thanks for checking. Ours is title version 1.0.2.1.
The 869 VPCS containers come from this PC's pipeline book (
cache/pipelines/known-shaders.bin), recorded by play on that version: 272 vertex and 597 pixel programs, each one a DXBC container with onlyVPCS,ISG1andOSG1parts. Before this change, a preload here logged "malformed shader: no DXIL part" for 69 distinct vertex programs. Since your dump has none, the VPCS layout may only be in some builds or packages of the title. Where there is none, the change is inert, as your identical hashes show.🤖 Generated with Claude Code
@nick0451 on GitHub · 2026-11-30 15:25 UTC · original
Thanks. Ours is the same title version, 1.0.2.1 (appxmanifest), so the version isn't the difference.
Our pipeline book (19,121 containers) was recorded only in the places we test: the balcony, the city street, the boat, two interiors, and a few cutscenes. A preload here has never logged "no DXIL part". So the VPCS programs are more likely tied to content we haven't visited than to the build. If you know a mission or area where those 69 vertex programs show up, I can go there and check that the new reader translates them here too.
🤖 Generated with Claude Code
Pull request closed