Repository navigation
GPU and shaders: publish bounded descriptor size metadata - #1971
thatirishguyyy wants to merge 2 commits into
Conversation
Supply size and view fields from the host descriptor heap to size-only shader queries. Keep buffer address fields, preserve deferred views on first bind, and select a zero row outside the heap. AI-assisted.
Derive implicit view kinds from the resource shape and reject unknown explicit view kinds. AI-assisted.
|
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at AI-assisted (Claude Code). |
catminou4
left a comment
There was a problem hiding this comment.
Mixed PR: victory-shader part macOS-tested in batch queue; victory-gpu part Windows-only static.
Publish bounded descriptor size metadata (gpu+shader): shader half macOS-tested separately, GPU half Windows-only.
|
Exact-base follow-up: comparing 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. |
VIctory V2: community PRs, merged and testedOpen 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). 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: Unofficial community fork of Marvisak/VIctory, GPL-3.0. |
|
Thatirishguyyy, PortBridge connected the exact 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). |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f, cargo test -p victory-shader --locked.
144 passed / 0 failed / 2 ignored. Publish bounded descriptor size metadata — shader half verified here (144 green); the victory-gpu half is Windows-only and was staticked separately. Bounded metadata prevents oversized descriptor tables.
|
Measured offline on the title's shaders (the method in #1247): merged onto main +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 |
|
Automated triage for the maintainers. Needs work. The view-address table ( What it needs:
Generated by Claude Code |
Follow-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.