Repository navigation
Conversation
…tive depth centroid position
… phis, PSV0/ISG1 fixes, calculateLOD and image_gather4_l
|
Tested
No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent). |
|
Tested on NVIDIA. This PR turns the menus black here. Windows 11, RTX 3080 (10 GB, driver 616.92), i5-10400F, 32 GB RAM, retail title, diagnostics build, no pad input.
Counts in the same ~110 s run: Bisect, 110 s each: AI-assisted (Claude Code) |
|
The a16 sampling part here (full-dword offset/bias/compare, packed coordinates, Static review, not built or run. |
|
I tested the three scalar-buffer hunks from 8ae232f on Windows 10 with Microsoft's DXIL validator and a native D3D12 device (RTX 3060 Ti, driver 610.88). The input was a private sample of 50 previously rejected shaders from first-story loading. Baseline was 9 validated programs and 9 host pipelines. With just the scalar load and descriptor changes it was 13 validated and 13 pipelines. The four additions were vertex shaders. All nine baseline successes remained. This measurement isolates the scalar changes from the sampling, gather and signature changes. It covers pipeline creation; it does not measure output pixels. |
|
A follow-up title test found a startup regression worth isolating. With the three scalar-buffer hunks together, four shaders gained pipelines but the returning-profile Player screen rendered uniformly black. Keeping the descriptor reconstruction hunks while restoring the ordinary scalar SRV load path kept all four vertex pipeline gains. On that build the Player capture matched the known-good reference pixel for pixel, and the original movie and the first two story cards rendered. One run per configuration, with cold host pipeline libraries. |
|
I tested the explicit-mip gather change on seven Before adding this PR to my integration branch, all four shaders using Both builds include the local integration of #180. I kept the pre-PR ordinary scalar SRV read path in the second build given the Player-screen report above. This result covers translation and pipeline creation. I did not run a frame or compare gather output pixels. The complete 311-shader replay has now finished. Adding this integration to the #180 build raised the count passing both checks from 53 to 65. In addition to the four gathers, eight shaders previously stopped at |
|
Follow-up to my earlier note: I suggested rebasing the a16 part on #73, but both versions read an a16 LOD bias as a full f32 dword ( Static review, not built or run. |
|
A note on the a16 samples in this PR, from comparing with #160 (same family): the bias dword is read here as a full f32 ( // Special handling of bias when A16 is on. Bias is of type half but
// occupies full 32-bit.
SDValue Bias = DAG.getBuildVector(
MVT::v2f16, DL,
{Op.getOperand(ArgOffset + I), DAG.getPOISON(MVT::f16)});The bias keeps its own dword but is an f16 in the low half; offset and comparison reference are 32-bit as the comment says. Read as an f32, an f16 bias is a denormal near zero, so a biased a16 sample would silently lose its bias. Also, in case it applies here: on GFX10.3 a16 packs the coordinates and the level but not the derivatives (only From the sources only, not run on hardware. No game data used. |
… loads, dead descriptor phis, PSV0/ISG1 fixes, calculateLOD and image_gather4_l) into the integration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
|
Two more review notes on this PR (besides the a16 bias above), both about results that can change without a refusal:
The s_buffer descriptor-read fix (the part behind the 726 to 0 count, and the From reading the diff only; I have no copy of the title. |
|
Ran the full corpus (26,084 programs) and the game on an NVIDIA RTX 3060 12 GB
|
|
From a tester working with Claude (AI-assisted); measured on my own machine. Heads-up from an RTX 5090 (driver 621.24, Windows 11 26200): #136 alone turns every first-boot and loading screen black. #437 fixes it, so the two should probably land together, or #437 first. How I found it: I bisected with a diag build, capturing presented frame 256 (the start screen), no input:
Within Same effect on the loading screen: its art is drawn into a colour target, but the pass that copies it into the sRGB target outputs nothing. With #437 the art shows again. Validated counts over the whole package don't show it: #136 is +651 validated, but those shaders draw the wrong thing. |
Seven more upstream PRs are in (Marvisak#493, Marvisak#483, Marvisak#206, Marvisak#469, Marvisak#459, Marvisak#454, Marvisak#579) and the wave64 stack is at Marvisak#439's head 965ce30. Records how each was combined with what the tree had, that a capped view heap keeps 2^18 dynamic slots and why, Marvisak#189 and Marvisak#578 as left out, and a new section with testers' reports from the title: the set without the world-entry hang on three NVIDIA cards and how this tree differs from it, VICTORY_SKIP_WAVE64 as the switch to try, and Marvisak#136 bisected as making every frame black. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Verified the scalar structured-SRV path on two vertex shaders at I checked the descriptor actually supplied by the title at draw entry, before the missing host PSO rejects the draw. Across the two shaders the observer recorded 14 and 11 distinct declarations for the relevant table slot. All were buffer SRVs with In both validated outputs the count comes from I exercised the changed lowering separately on a physical RTX 5070 with a one-thread synthetic shader and three 80-byte records. It reported 3 records. With a matching guard, reads at bytes 160 and 164 returned the two expected third-record words; with a mismatched guard, both initialized output words remained intact. The adjacent sentinels stayed intact and both fences completed with the device reporting The two guest vertex shaders were checked through SDK validation. Their graphics PSOs, actual draws, and effect on the mission picture remain unverified. |
|
Measured offline against main
AI-assisted. |
|
Measured on the full retail shader pack (26,503 containers) with
Windows 11, dxil.dll from SDK 10.0.26100. |
Merge upstream main, retain both shader regression tests, and pass absent PSV metadata in the three synthetic fixtures that construct lowering inputs directly. Refs: Marvisak#136, Marvisak#329, Marvisak#437
A console buffer descriptor can carry a stride while its host view is raw. Lower the scalar loads with byte addressing so the DXIL matches that view. A synthetic GPU regression used to read zero at byte offset 20 and now reads the expected dword. Builds on Marvisak/VIctory#136 by mpDom. Adapted from 0628716 in the local RTX bring-up branch.
…es, gather4_l, a16 samples (+479 VS/PS, +200 mesh validated) Resolved: lower.rs keeps HEAD's a16 sample addressing (32-bit gradients unless _g16, f16 bias in the low half); takes the PR's image_gather4_l forms. mod.rs keeps both lds_fits and psv_interp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A console buffer descriptor can carry a stride while its host view is raw. Lower the scalar loads with byte addressing so the DXIL matches that view. A synthetic GPU regression used to read zero at byte offset 20 and now reads the expected dword. Builds on Marvisak#136 by mpDom. Adapted from 0628716 in the local RTX bring-up branch.
The tester tree (upstream main ffe310e plus its PRs, update 8; see its INTEGRATION.md) ran 11-25 minutes in the world on an RTX 5070 without a device removal. Where both sides carry the same PR (the wave64 stack #223/#233/#320 with #439 and #180, #454, #336, #259, #331 and others), the tester tree's newer head is taken; our own work and the PRs only we merged are kept. Conflicts, file by file: - descriptor/host.rs: the tester layout (`spare`, the guard slot after the dynamic slots, `free_table`, the capped sampler heap). A capped view heap keeps `capped_reserve()` dynamic slots, now 2^18 by default (the tester measurement, and our 91fed158), still `VICTORY_DYNAMIC_SLOTS` in diagnostics builds; uncapped hosts keep our 2^19. Our slot statistics (TAKEN/PEAK/SHORT), the bindless plan cache (`CommittedRegions`, `timed_valid_title_address`, `timed_find`, `title_bounds`) and the revision triple are kept beside the tester's `guard_slot`. - Buffer states: the tester tree's buffer-state tracker (#334: every list moves host copies of title memory between GENERIC_READ and UNORDERED_ACCESS and back to common before it closes) and depth twins (#469) are taken. #40's enhanced/legacy indirect barriers (the indirect prelude, `use_indirect_buffers`, the title buffer handoff mirrored in `host_barrier`) cannot share buffers with that tracker and are dropped; #40's argument checks (`byte_len`, exact spans, overflow-safe clamp shader, aligned counts) stay. `indirect::bound` and #282's `rectangles` go through `buffer_state`, and `indirect::execute` (#334) replaces `done`. #178's DXC fallback compiles both of our passes. Our segments (#387: `close` ends the segment, `close_native` closes a native list) carry the tracker: each native list returns its buffers to common and its twins to their depth targets, and each prelude also holds our texture uploads. - shadow.rs: our write flow (`queue_write`, one `snapshot` after the batch's refreshes, `finish_writes`, the unchanged-page cache) with #261's copy-back that also gives the snapshot the title's bytes; its tests run through our flow. - pipeline/make.rs: #275's per-frame budget and per-pipeline wake pair, with our compute waits (a dispatch waits for its pipeline, up to 20 s). - pipeline/library.rs: the tester version (#347, #275's saver thread); our concurrent-write test kept. shader_cache.rs: our byte-returning cache API with #358's "translated, only not kept". - draw.rs: #493's root SRV tables; where no table can stand in, our drop of a draw whose root view is unset or outside title buffers. Our refusal of a table offset past the capped heap stays. - resource.rs: `HostTexture` has both our `staged` generation and the depth twin. - Shaders: the tester's lower.rs for the wave64 stack, #160's image sampling (it covers our #73 and #136 sample forms) and #453/#587; kept from our side: #136's preference for an image or buffer use of a descriptor read as data and its `s_buffer_` arm, #422's nearest-even narrowing (also for #169's d16 loads and #453's interpolation), #452's spin-wait limit, #391's LDS limit, #302's spilled root arguments (now in `NativeProgram::translation_ir`), #136's PSV0 interpolation beside the tester's row harmonisation. split_tests.rs, lane_read_loop_tests.rs and docs/wave64-on-wave32.md are the tester versions (the same PRs at newer heads). - Tests: #483's heap guard dwords filled in our GPU tests of #200 (v_div_scale) and #437 (scalar loads from a raw view), which read through the guard slot otherwise; #334's debug-layer test passes an offset to our `indirect::bound`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two testers bisected #136 as making every frame black on RTX 5080 and 4080, loading screens included (upstream issue #71); the tester tree leaves it out. A plain revert of 5254cfa conflicts with #160, #437 and the tester merge, so each of #136's constructs is set to the tester tree's form: - s_load through a tracked descriptor: SRV only, as before #136 (no UAV raw reads); #437's byte offsets and its test stay. - A descriptor read as data: the first use found, not #136's preference for an image or vector buffer use; #136's s_buffer_ arm is gone. - PSV0 interpolation modes (psv_interp) are no longer read; the conservative-depth centroid and the row harmonisation stay (tester). - calculateLOD passes cs[0..2] as the tester tree does. - Dead descriptor dwords at data joins: the tester's undef arm (descriptor_dword) only, not #136's zero for has_data joins. Kept because the tester tree has the same form: the signature sort by row, barycentrics (23 => 28), the comparison-sample check, and #160's gather and a16 sampling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raises the number of GTA VI shaders in shaders.rpf that translate and pass dxil.dll validation (translate --validate, all 26,503 containers):
vertex/pixel 12,690 -> 13,169 of 13,169 emitted (0 validator errors), mesh ~8,100 -> 8,302 of 8,506, compute 1,672 -> 1,717 validated (2,032 emitted).
Tested: cargo test -p victory-shader -p xtask (0 failures).