Repository navigation
Conversation
|
Independent verification of \94dbc0a\ on Windows 11 / AMD Radeon RX 9060 XT (RDNA4, \gfx1200) / Rust 1.98.1 MSVC:
Clean, minimal 1-line fix in \emit/lower.rs:5543\ with a targeted end-to-end \dxil.dll-validated test. AI-assisted; synthetic tests only, no game files. |
|
Heads-up on the overlap: this is the same failure site and motivation as #621 ( What this PR does: every What #592 + #621 do instead, and why: #592's body documents why a blanket zero was rejected there ("Why not just read 0"): the diagnostic showed a large share of the failing reads are halves 4–7 next to a 4-channel first row, i.e. the second row's real data that the metadata left out ( So the stacked pair covers both shapes with the distinction preserved: #592 supplies the omitted second row, and #621 reads zero only for undeclared trailing halves of an explicitly named second row (packing padding), keeping the inferred-partner case strict. #621 carries a synthetic regression for that distinction, plus a DXV-accepted hardware readback (RTX 4090/Wine) and an independent Windows run with a 19-minute live world test. If the maintainer prefers this simpler one-liner, it would be good to make the trade-off explicit in the body: it re-opens the 220-read class that #592 closes, with zeros where the neighboring row holds real data. Otherwise this duplicates #621 and probably closes in favor of the stack. AI-assisted (Kimi). |
|
I tested |
|
Reviewed at head 1. The change is right and now consistent with the flat path. In the 2. Verified here. The new 3. Checks: 4. Note, not a defect: the test pins that emit succeeds and validates, not the emitted zero on the GPU — the zero-fill behavior itself is asserted by inspection of the Nothing found that would block this. |
Offline measurement on a retail dump, and the shader tests on AdaResult: +117 programs over Offline. I merged head 94dbc0a onto
All 117 are among the programs that #1402 gains through #176. This PR and the packed-half PRs measured in #1247 (#176, #621, #592, 117 programs each) look like one set. Tests: with the same merge, No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
Stacked on #1402: no changeResult: 0 gained, 0 lost, and no failure reason changes on top of #1402. On The merge with #1402 conflicts in one hunk of Method: |
Code tree of fxceless/victory-fork 4e17478 (all rendering work by its author and the VIctory contributors) with, on top: - AMD fixes: skip of 39f0e9aeb156a61c, 32-lane programs per half wave and NaN/Inf filter, configurable texture upload queue, VIctory Marvisak#1599 - upstream VIctory Marvisak#334 (buffer-state tracking) and Marvisak#1271 (globally coherent glc UAVs) - fork PRs Marvisak#95, Marvisak#71, Marvisak#32, Marvisak#86; VIctory Marvisak#1696, Marvisak#1338, Marvisak#1291, Marvisak#1732 - DirectStorage page lists read at the title's submit (analysis by JappertjeV, klbf-lab#3) - offline pipeline pre-build that saves as it goes and skips driver-crashing pipelines - Series S plane composition, VICTORY_FFX_SIMPLE, scripted keys in release builds - docs/klbf/skip-amd.txt: AMD skip list used for our runs
|
Automated triage for the maintainers. Closing because by our reading the change is incorrect or would break something that works today. Turns the refusal 'a packed input half no element holds' into a silent 0. With main's corrected first-fit packing rule no title pixel shader reads a padding half (4,773 of 4,773 map), so the change only hides a wrong packing model; the padding's real content is whatever the previous stage exported, not 0. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
…f refusing the shader (upstream Marvisak#1291)
In
Lower::interp, when lowering an_f16interpolation of a 16-bit pixel input andhalf(...)returnsNone(a padding half with no matchingSigElement, e.g. the 4th half of a 3-component packedf16input), emit0(self.s.m.i32(0)) instead of failing witha packed input half no element holds.This matches the existing
mode == 1(flat dword) branch inLower::interp, which already uses.unwrap_or(z)for padding halves.Adds unit test
emit::tests::reading_a_packed_input_padding_half_yields_zero(includingdxil.dllvalidation).Tested with:
cargo clippy -p victory-shader --all-targets --locked -- -D warningscargo test -p victory-shader --locked