GPU and shaders: publish bounded descriptor size metadata #1971
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!1971
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1971"
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?
@thatirishguyyy on GitHub · 2026-11-25 01:59 UTC · original
thatirishguyyy:review/victory-host-descriptor-metadata→main· +254 −31 · 3 files · 2 commits · openFollow-up to #1067. Size-only shader queries can read descriptor metadata from the host heap. The runtime supplies supported size, view type, and mip fields from the actual view. Existing buffer addresses are preserved, deferred views are populated at first bind, and out-of-range slots resolve to a zero row.
Validation
940d32f6, both trackedPS_PuddleDetectvariants emit DXIL and pass the Windows SDK validator. Three host metadata tests and the synthetic shader readback passed on WARP, including slot rewrites, clearing, and out-of-range reads.170ab232base, the bounded prototype added 36 DXIL-valid shaders and lost none across 26,096 programs.AI-assisted with Codex.
@upipibi on GitHub · 2026-11-25 02:05 UTC · original
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at
1ae8ad3.victory-shader: 244 passed, with only #1744's 3 NVIDIA failures.victory-gpu: 144 passed, 2 failed, with only the two NVIDIA heap-cap failuresmainalso has (dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views). Same asmainon this hardware. Not run: a title.AI-assisted (Claude Code).
@thatirishguyyy on GitHub · 2026-11-25 02:11 UTC · original
Exact-base follow-up: comparing
940d32f6with PR head1ae8ad32across 26,096 programs, this PR adds 36 DXIL-valid shaders with zero validation regressions and clears all 36descriptor read only as datarefusals.If anyone already reaches the prologue on a working build, could you run a paired comparison from the same checkpoint, with #1971 as the only code change? Please report the base commit or PR stack, GPU and driver, whether visible draws or effects change in the same scene, and whether either run hangs. AI-assisted.
@DesertGamer on GitHub · 2026-11-25 02:17 UTC · original
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@akimfomin on GitHub · 2026-11-25 03:20 UTC · original
Thatirishguyyy, PortBridge connected the exact
1ae8ad326metadata writer and production upload allocation to a small independent HLSL readback through D3D12 root SRVt1, space2. On an RTX 4070 Ti SUPER all 80 output words matched across four fenced submissions: a deferred 36×22 array view, a rewrite to 18×11 on the same table address, a separate heap's two rows, and the original table after clearing. Both out-of-range indices returned zero every time.Exact source construction and sanitized raw native words. This checks the real metadata allocation and writer with fixture-owned heap selection. The production shader translator's lowering and a title run remain outside this check. The fixture did not request the D3D12 debug layer. AI-assisted PortBridge verification (OpenAI Codex).
@zed6000 on GitHub · 2026-11-25 04:23 UTC · original
Measured offline on the title's shaders (the method in #1247): merged onto main
940d32f(a clean merge) and compared program by program (victory translate --validate --list,shaders.rpf1.0.2.1, dxil.dll 1.8.2502).+36 programs, 0 lost. All 36 failed on main with "a descriptor read only as data", so this PR clears that reason on this title completely. It also merges cleanly together with #1989, #1065 and #1883: the four together give +1,683 programs and 0 lost, and
cargo test -p victory-shader --libpasses (252/0) on an RX 7900 XTX. Offline counts only; no program names or data.@Marvisak on GitHub · 2026-11-25 08:25 UTC · original · edited 2026-11-25 16:04 UTC
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-gpu/src/descriptor/host.rs,crates/victory-shader/src/emit/lower.rs,crates/victory-shader/src/emit/memory_tests.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (needs work) was for an older state ofmain.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.