Repository navigation
[BUNDLE] High-yield shader PRs (+295/+520/+153/+117 programs in #1247): #1067 #305 #306 #176, stacked on #1319 - #1402
MamaLeVrai wants to merge 35 commits into
Conversation
image_sample_d_cl was refused by name, and behind it every program hit a cube sample with explicit gradients, refused as "a cube sample with ... gradients". Both now translate to sampleGrad: - A cube's gradients on GFX10 are of the face coordinates (s, t), four addresses rather than six, so the coordinates follow at 4. They become the direction's gradients through the face's linear part of cube_direction (u = 2s - 3, v = 2t - 3; the major axis does not move), in the new cube_gradient. - `_cl`: the level-of-detail clamp follows the coordinates and is passed as sampleGrad's clamp. translate --validate on shaders.rpf: vertex/pixel 12172 -> 12197 validated; both errors are gone from the list. Not yet compared against the console's sampling at runtime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e a buffer view A descriptor fetched from the resource heap by index has no used-resource entry, so a scalar buffer load (s_buffer_load_dword*) through it was lowered through a 64 KiB constant buffer handle. When vector buffer loads read the same descriptor, the slot holds a buffer SRV (the title made it one), and reading it through a CBV handle is a descriptor of the wrong type, which D3D12 leaves undefined. Such loads now read the slot as a raw buffer, as table SRVs already do. A descriptor also written through (a UAV) and one only scalar loads read are unchanged. In the title's shaders.rpf this changes 38,829 scalar loads in about 1,900 of 26,084 programs; emit and validation counts are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
s_buffer_load_dword* through a table's UAV took the constant buffer path: a CBV handle at the heap index of a UAV. Reading through it removes the device (WARP: "The GPU device instance has been suspended"). Such a load now reads the UAV raw, as a raw SRV is read and as vector buffer accesses read a UAV. The test writes a value to the VALU tests' raw UAV, reads it back with a scalar buffer load and stores that; it removed the WARP device before this change and passes on the hardware GPU and WARP after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An s_load_dword* whose address is a root descriptor's, and whose result the program never uses as a descriptor, reads that buffer's data. It stopped with "a descriptor read only as data". It is now read as global loads from a root view already are: a root SRV raw, a root CBV (or a root view the used-resource list does not name) as a constant buffer. A root UAV still stops, with its own reason. Test: dwords 2 and 3 of a root SRV and of a root CBV read with one s_load_dwordx2 and stored, exact on the hardware GPU and WARP; main refuses the program. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An s_load_dword* of a descriptor whose dwords the code reads as numbers (an image's width and levels) but never samples was refused with "a descriptor read only as data": the view's kind came only from a use. Now the table's range names it, and an entry in the resource heap that no range names (a run-time index reaches it) is an image if it is eight dwords, taken for 2D (shortcut noted in the code). Offline over the whole corpus, programs refused: 4123 -> 3749; "a descriptor read only as data" 395 -> 18; compute programs emitted 1441 -> 1743 (validated 1417 -> 1647). Tested with a hand-assembled waterfall program that reads two textures' sizes, on the host GPU and WARP; it fails with the old refusal without the change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…d vertex programs A register can hold a compare result's high dword on one path and a loaded number on another; the compiler only reads it where the number is live. The join's mask side was "a lane mask read as data", which refused the program. A pixel or vertex program now takes the mask's ballot as that incoming value (counts and zero tests mean the same on any wave size). shortcut: the ballot is the host wave's, so a join read some other way would differ from the console. Offline corpus: "a lane mask read as data" 250 -> 212, vertex/pixel programs emitted 12243 -> 12250; the other 31 move on to descriptor/scalar-memory refusals. Synthetic wave64 pixel program fails before, lowers after. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The console compiler spills scalars, lane-mask pairs among them, with
v_writelane_b32 into constant lanes of a VGPR and restores them with
v_readlane_b32 of the same lane. The restored pair was an opaque mask, so
the selects, EXEC writes and joins that used it refused ("a select on an
untracked mask", "an opaque lane mask", "a lane-mask join of an untracked
mask"). structure now follows a constant-lane readlane back through a plain
chain of writelanes to the scalar written to that lane, and gives the
restored pair that scalar pair's mask. A chain with a phi or another write
of the VGPR stays opaque (shortcut noted in code).
Offline corpus, against fix/mask-phi-ballot (neither branch carries Marvisak#585):
vertex/pixel programs emitted 12250 -> 12269, compute 1443 -> 1452,
"a lane-mask join of an untracked mask" 20 -> 0, "an opaque lane mask"
29 -> 8, "a conditional export" 8 -> 0. Synthetic pixel program fails
before, lowers after. Stacked on fix/mask-phi-ballot (shares its test helper).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
v_cndmask_b32 and v_*_co_ci_u32 refused when their scalar mask was not one structure followed (a plain SGPR number). In compute with console lanes the lane now tests its own bit of the register (pair in wave64); inline 0 and -1 masks are constants. Taken from upstream PR Marvisak#585 (mask part only; its descriptor-dimension hunk is left to the resource work). Offline corpus (26148 programs): "a select on an untracked mask" 288 -> 0, no new refusal text; those programs now stop at later refusals (descriptor read as data +205, unknown stride +32, descriptor address/format +33), so compute programs emitted only 1441 -> 1443. Synthetic test on hardware: fails before, passes after. WARP cannot pin a wave size, so the test skips it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fixes 5 shader emission and DXIL container/validator issues in `victory-shader`,
raising validated shaders across the test corpus from 21,983 to 22,159 (+176;
100% of emitted VS/PS/CS shaders now validate cleanly):
1. Biased 16-bit image samples (`emit/lower.rs`):
- Remove the `a16` rejection on `image_sample_b` and separate 32-bit prefix
operands (offsets, bias, comparison reference) from `a16`-packed tail
operands (gradients, coordinates, explicit LOD) starting at `regs[first]`,
matching GFX10 MIMG hardware operand layout.
2. Conservative depth `SV_Position` interpolation (`emit/mod.rs`):
- Declare `SV_Position` with `linear_noperspective_centroid` (5) instead of
`linear_noperspective` (4) in pixel shaders outputting `SV_DepthLessEqual`
or `SV_DepthGreaterEqual` (kinds 18/19).
3. Per-row interpolation mode consistency (`emit/mod.rs`, `emit/lower.rs`):
- Add `harmonize_row_interp()` so elements sharing a signature row always
declare the same interpolation mode: rows containing integer attributes or
`SV_IsFrontFace` propagate `nointerpolation` (1) to sibling elements, and
after pixel-shader lowering unread siblings inherit the actual read mode
of sibling elements in the same row.
4. Container signature row ordering (`emit/container.rs`):
- Sort `ISG1`/`OSG1` rows stably by register only (`row`) rather than
`(row, col)`, preserving DXIL element-ID order within a row so the
container signature matches DXIL validator expectations byte for byte.
5. SM 6.6 compute-shader implicit derivatives (`emit/shader.rs`, `emit/container.rs`, `emit/lower.rs`):
- Track compute shaders emitting implicit-derivative sampling ops and emit
`dx.valver = 1.8` with `PSVRuntimeInfo3` (52 bytes, carrying
`EntryFunctionName`), enabling validation and D3D12 compute PSO creation.
Adds 5 unit + `dxil.dll` validation (+ D3D12 compute PSO) tests in `emit::tests`.
With a16 the bias of `image_sample_b` keeps its own address dword but holds an f16 in the low half (as LLVM's AMDGPU lowering builds it), so reading the dword as f32 silently dropped the bias. Unpack the low half and convert it like the other 16-bit addresses. Derivatives are only 16-bit in the `_g16` opcodes; under a16 alone they stay one 32-bit dword each and only the coordinates and LOD are packed. Fix the decoder's address dword count (2D `image_sample_d ... a16` is five dwords) and read the gradients as full dwords, starting the packed coordinates after them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first commit left a heap descriptor of no listed kind that a vector buffer store or atomic also uses on the constant buffer path, which is a CBV handle on the UAV the title made. Scalar loads through it now read a raw UAV (11 | 0x1000), as Marvisak#1055 does for a table's UAV; read-only use stays a raw SRV. The test's store case now expects no CBV handle. In the title's shaders.rpf no program has this case (all 38,829 changed loads are the read-only one); emit and validation counts are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tory into bundle/lane-masks-scalar-reads
…tory into bundle/lane-masks-scalar-reads
…tory into bundle/lane-masks-scalar-reads
…tory into bundle/lane-masks-scalar-reads
…tory into bundle/lane-masks-scalar-reads # Conflicts: # crates/victory-shader/src/emit/lower.rs # crates/victory-shader/src/emit/valu_tests.rs
…tory into bundle/lane-masks-scalar-reads # Conflicts: # crates/victory-shader/src/emit/lower.rs
… verified together Merges Marvisak#1057 Marvisak#1073 Marvisak#1074 Marvisak#1084 Marvisak#953 Marvisak#1056 Marvisak#1015 Marvisak#1055 Marvisak#563 Marvisak#1004 onto main (ffe310e), each head unchanged. Two merges needed a hand resolution: - Marvisak#1015 + Marvisak#1055 (emit/lower.rs, the raw-view choice for a scalar buffer load of a descriptor): an SRV range reads a raw SRV view, a UAV range a raw UAV view, a descriptor of no listed kind the heap buffer view of Marvisak#1015. Both of their tests (emit/valu_tests.rs) are kept. - Marvisak#563 + Marvisak#1004 (emit/lower.rs, cube sample refusal): Marvisak#563 lowers gradients and Marvisak#1004 the level query, so only texel coordinates are still refused. cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features, is clean and cargo test --workspace --locked passes (350 passed, 6 ignored; main has 342 passed, 6 ignored). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tory into bundle/shader-high-yield # Conflicts: # crates/victory-shader/src/emit/lower.rs
…n words and SGPR spills Of the 321 programs still stopping at "a descriptor's address or format read as data", 42 reach a join with data only through a join whose edges are all hidden words (two loads of one descriptor), and 36 through an SGPR spill. A join whose edges are all hidden words is now a hidden word itself, so a join with data further on takes it as the undefined path, while a direct read of it stays refused. v_writelane at a constant lane keeps the mark on that lane, and v_readlane of it gives the hidden word back. On a retail dump: 38 more programs validate, none lost (473 over Marvisak#1402).
|
YaBulochka: the unknown-stride wall from your list is now #1644 (branch Left out: #160 (
AI-assisted (Claude Code); no game data. |
|
PRs that add programs on top of this bundle (measured on the retail dump, stacked on head 2310409, program by program):
#1423 gained nothing on AI-assisted (Claude Code). No shader names or data are included, per the asset policy. |
…on old validators
PSV0 shared one string-table copy of a repeated semantic name (TEXCOORD0
and TEXCOORD1 pointing at the same "TEXCOORD"). DXC's PSV writer writes
one copy per element, and validators before 1.8 compare PSV0 byte for
byte, so any signature repeating a name was rejected there ("Pipeline
State Validation does not match"); 1.8 compares the strings and accepted
both. Checked against dxil.dll 1.7, 1.8 and 1.9.
Validator::version() reads IDxcVersionInfo; the compute-derivative test
skips dxil.dll validation when the validator predates 1.8, which rejects
dx.valver 1.8 outright. Translated shaders never go through dxil.dll.
Reported by @alexdeliu.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….dll is older than validator 1.8" This reverts commit 119b763.
…tic names per element, skip on validators older than 1.8) The author's head now does what the bundle's own commit did (a validator version query and the skip below 1.8), and fixes the second failing test at its cause; the bundle's commit is reverted just before this merge. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
809 programs on top of Marvisak#1402 stop at "a descriptor's address or format read as data", and 772 of them reach it through a join: a descriptor dword arrives on one path, data on another, and code after the join reads the value. HLSL cannot see those words (GetDimensions reads an image's sizes and levels and a buffer's count and stride, never an address, a format or an image's meta data), so on that path the register holds what a path that leaves the value undefined left there. Such a join now takes zero from that path, as an unread join does. A word read directly stays refused, and so does a join of descriptor words alone. On a retail dump: 435 more programs validate, none lost.
…n words and SGPR spills Of the 321 programs still stopping at "a descriptor's address or format read as data", 42 reach a join with data only through a join whose edges are all hidden words (two loads of one descriptor), and 36 through an SGPR spill. A join whose edges are all hidden words is now a hidden word itself, so a join with data further on takes it as the undefined path, while a direct read of it stays refused. v_writelane at a constant lane keeps the mark on that lane, and v_readlane of it gives the hidden word back. On a retail dump: 38 more programs validate, none lost (473 over Marvisak#1402).
…fied together Merges Marvisak#156 Marvisak#162 Marvisak#168 Marvisak#169 Marvisak#368 Marvisak#379 Marvisak#456 Marvisak#587 Marvisak#990 Marvisak#1021 Marvisak#1048 Marvisak#1052 Marvisak#1053 Marvisak#1095 Marvisak#1142 Marvisak#1190 Marvisak#1211 Marvisak#1223 Marvisak#1259 Marvisak#1293 on top of the bundle of Marvisak#1402 (which is on Marvisak#1319, on main ffe310e), each head unchanged. Hunks that conflicted in emit/lower.rs, emit/valu_tests.rs and emit/diff_tests.rs were merged by keeping both sides (additions next to each other); a PR was kept only if cargo clippy -p victory-shader --all-targets -- -D warnings still passed with it. No instruction name is handled in two places. Marvisak#98 is not in this version: an offline measurement on a retail dump showed it loses 31 programs that validate on Marvisak#1402. cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features, is clean and cargo test --workspace --locked passes (381 passed, 6 ignored; main has 342 passed, 6 ignored). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ge samples) onto Marvisak#309 + Marvisak#180 + Marvisak#704 + Marvisak#1511 PR Marvisak#160 head 5ce85c5, merged onto integ/next-v3 (0bb7335). The bundle (Marvisak#1511) already carries Marvisak#306 (a16 bias as f16, a16 derivatives 32-bit), 10ac6ce (cube gradient samples, image_sample_d_cl) and cbc8c33 (image_get_lod on cubes); Marvisak#180 adds compute image_sample/_b as sampleGrad with quad gradients. Where Marvisak#160 and the bundle implement the same thing, they read the same address layout: offset, bias and reference a full dword each (a16 bias an f16 in the low half), derivatives 32-bit unless _g16, a16 packing only coordinates and level or clamp. The bundle's Marvisak#306 layout is kept as the base and Marvisak#160's forms are added to it. gfx10/fields.rs (image_addr_dwords): both sides size derivatives by _g16 and pack only coordinates and levels with a16. Kept the bundle's Marvisak#306 version (a g16 token rather than Marvisak#160's ends_with("_g16"), which gives the same count for every opcode name) together with its a16_keeps_derivatives_32bit_outside_g16 test. emit/host.rs (1 hunk): Marvisak#160 adds a test-host arm for Levels/CubeLevels/Depth SRVs; the bundle (Marvisak#704) extended the UAV arm to BufferUav with a stride column. Both arms kept: Marvisak#160's arm first, then the bundle's UAV arm unchanged. emit/lower.rs: 1. Free functions after half_outputs: the bundle added half_inputs and Marvisak#160 added SampleForm/sample_form/GATHER_AT_LEVEL in the same place. Kept both. 2. Opcode match: the bundle added "image_sample_d" | "image_sample_d_cl" to the fixed list, and Marvisak#160 replaced the list with the parsed form (_ if form.is_some()). Took Marvisak#160's. d_cl is the form {d, cl}, so it still lowers to SampleGrad with its clamp. 3-4. Address layout: the bundle had (Marvisak#306) first = offset + bias + cmp full dwords, 32-bit derivatives (2 per direction on a cube, 10ac6ce), and `at` = first + grads, from which the a16-packed coordinates and level start. Marvisak#160 had the same layout as whole/per_direction/first, plus _g16 derivatives and _cl. Kept the bundle's names and layout (first, graded, at, addr_dword) and put Marvisak#160's pieces on them: first is now o + b + c from the form (it was offset_word + (name == image_sample_b) + cmp); per_direction halves the derivative dwords for _g16 only; grad_at, coord_at, bias_at, float and known (Marvisak#160) read through the bundle's addr_dword in place of Marvisak#160's duplicate `raw`. Marvisak#306's to_float/addr_val pair for coordinates and Marvisak#160's float(coord_at(k)) compute the same thing; the latter is kept because the level, clamp and known checks use it. The a16 refusal of comparisons in the bundle's code is dropped, as in Marvisak#160 (the reference is a full dword). Also, without a textual conflict: Marvisak#160 refused level queries on cubes ("... or a level query"), but the bundle lowers image_get_lod on cubes (cbc8c33). That refusal is dropped and only texel coordinates (both sides) and texel offsets (Marvisak#160) are refused on cubes. The bundle's `face` variable is kept in place of Marvisak#160's `cube_face`. 5. sample (60): the bundle's constant-offset code is the base code with addr_dword. Marvisak#160 moved offsets before the match (immediates in -8..7, otherwise a coordinate shift at a level known here) and added the clamp. Took Marvisak#160's version, reading the word with addr_dword. 6. sampleBias (61): bundle addr_val(offset_word, 0) + to_float, Marvisak#160 float(bias_at). Both read the same position, an f16 low half with a16. Kept the bundle's comment and Marvisak#160's reader, plus Marvisak#160's clamp. 7. sampleGrad (63): the bundle reads `graded` 32-bit derivatives per direction, turns cube face derivatives into direction derivatives after reading, and reads its own _cl clamp. Marvisak#160 reads through grad_at (g16 too) with a per-face branch. Kept the bundle's structure (loop over `graded`, then the cube conversion) reading through Marvisak#160's grad_at, so _g16 works. The bundle's inner clamp is dropped for Marvisak#160's clamp, which comes from the same position (coordinate `coords`) and now covers every _cl form. Marvisak#160's `_cd` shortcut comment is kept. 8. sampleCmp/LevelZero (64/65): the bundle reads addr_dword(first - 1) and Marvisak#160 reads float((o + b, None)). These are the same dword, since first = o + b + c and c is set. Kept the bundle's line. Marvisak#160's clamp is pushed for SampleCmp. 9. sampleLevel (62): bundle name == "image_sample_l" with addr_val(at, coords), Marvisak#160 f.l with float(coord_at(coords)). These are the same position. Took the form test so that _l_o and the others are covered. 10. gather (default arm): the bundle's checks and per-lane offsets are the base code with addr_dword. Marvisak#160 moved the checks into the op choice (level 0, comparison gathers, GATHER_AT_LEVEL) and the offsets ahead of the match. Took Marvisak#160's. Duplicate method: 10ac6ce (bundle) and Marvisak#160 both add Lower::cube_gradient with the same table (u, v move by 2 ds, 2 dt, the major axis by 0). With no conflict git kept both. Kept Marvisak#160's, which shares by_face with cube_direction, and removed the bundle's. Marvisak#180 interaction (integration fix from Marvisak#160 (comment), r4tedx): Marvisak#180's compute image_sample/_b arm (sampleGrad from quad gradients) dropped the level clamp, and before 5703405 it also read the bias at dword 0. With Marvisak#160, _b_o, _cl and _b_cl_o reach that arm. The arm now reads the bias with float(self, bias_at) (after the offset word, an f16 with a16; this is the same position 5703405's addr_val(offset_word, 0) + to_float read) and pushes Marvisak#160's level clamp instead of undef. Marvisak#160 x Marvisak#306 interaction (no textual conflict; emit/shader.rs, lower.rs): Marvisak#306 declares dx.valver 1.8 for a compute module with an implicit-derivative sample (cs_derivatives, which Marvisak#180's sampleGrad arm also sets). Validator 1.8 counts a sample's level clamp (a non-undef clamp operand) as TiledResources use, and 1.6 does not. Marvisak#160's _cl forms in compute (Marvisak#180's arm with the clamp above, and SampleCmp for _c_cl) therefore failed "Flags must match usage" in sample_and_gather_forms_lower_to_valid_dxil, comparisons_and_comparison_gathers_ match_per_texel_comparisons and texel_offsets_and_levels_sample_the_texels_they_name (declared and actual flags differ by exactly 1 << 12). Marvisak#160 alone declares 1.6, where this does not apply. Added flags::TILED_RESOURCES (bit 12, SFI0 0x100). It is set when a sample takes a level clamp (Shader::lod_clamp) and the module declares valver 1.8. Still needed on this Marvisak#1511 head: its Marvisak#1402 (119b763) only skips two of Marvisak#306's own tests when dxil.dll is older than validator 1.8 and does not change what Marvisak#306 declares. Checked (on the previous Marvisak#1511 head, 289f241, which also carried Marvisak#98; this replay was checked with cargo check --workspace --all-targets --all-features and the full suite at the end of the line): cargo build --workspace --all-targets, clippy -D warnings, xtask policy. cargo test --workspace on an RTX: 427 passed, 0 failed, 6 ignored. With VICTORY_WARP=1 --no-fail-fast: 426 passed, 1 failed (valu_tests:: v_cndmask_on_an_untracked_mask_tests_this_lanes_bit, which also fails on the base), 6 ignored. #[test] count: base 424 + 8 from Marvisak#160 = 432 in the tree; the victory-shader lib lists all 204 of its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Heads moved. #306 got a new commit from its author ( AI-assisted (Claude Code); no game data. |
…sak#98, Marvisak#334 to Marvisak#492, validation) The line rebuilt on the bundles' current heads (Marvisak#1402 119b763, Marvisak#1492 5bbc098 without Marvisak#98, Marvisak#1504 1d41891, Marvisak#1511 ca601f0) with every merge replayed, and the merges after this file's first version (Marvisak#334, Marvisak#346, Marvisak#1024, Marvisak#211, Marvisak#492): merge order, the runner's numbers on 967d3ae (RTX 571, WARP 570 + the known Marvisak#1084 failure, all features 580; Marvisak#98's one test leaves), what is not included (Marvisak#98, Marvisak#282 for Marvisak#346, Marvisak#693 for Marvisak#1024, Marvisak#306's latest commit), and the open pull requests whose head is contained here (109, from the 18:24 collection). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged. 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. |
One PR in place of 4. The four open shader PRs that gain the most programs in #1247's offline benchmark on a retail dump (295, 520, 153 and 117 programs; none loses one), merged on top of the bundle #1319 (a descriptor read only as data, 64-bit image atomics, biased image samples with 16-bit coordinates, packed 16-bit pixel inputs). Every head is merged unchanged onto
mainplus #1319, and the result is built and tested together.What is inside
6d30fd71c78dae8362e3067aeaa70278092aChanges made while bundling
No PR needed a change of its own; four merges needed a hand resolution against the PRs of #1319. Each commit of the bundle is a plain merge of one PR head, with the resolution inside it.
descriptor_data(the use-site match moved into aSome((at, first))branch). Shaders: handle s_buffer_load SMEM uses in descriptor_data (#798) #953 (in [BUNDLE] Lane-mask, scalar descriptor read and cube-sample shader fixes: #1057 #1073 #1074 #1084 #953 #1056 #1015 #1055 #563 #1004 #1319) adds ans_buffer_loadarm to the old match. Resolution: the same arm, unchanged, inside the new match.emit/lower.rs. Both tests are kept.addr_dword/addr_val(at, k)helpers (a16 packs two components per VGPR); Shaders: cube samples with gradients, and image_sample_d_cl #563 (in [BUNDLE] Lane-mask, scalar descriptor read and cube-sample shader fixes: #1057 #1073 #1074 #1084 #953 #1056 #1015 #1055 #563 #1004 #1319) adds cube gradients on the face coordinates (graded) and a_clclamp read after the coordinates. Resolution: the cube gradient loop runs overgradedwithaddr_dword(gradients are one 32-bit dword each even with a16, as Shader: fix biased 16-bit image samples and DXIL validator failures #306's comment says), and the clamp isaddr_val(self, at, coords), the same dword as before without a16. There is no test of a16 together with cube gradients; that combination is the part of this resolution to look at.emit/lower.rs. Both are kept.e3067ae, a commit by wrothgaril at 20:36 UTC on Nov 24): two of Shader: fix biased 16-bit image samples and DXIL validator failures #306's tests,compute_shader_implicit_sample_uses_valver_1_8_and_validatesandrow_interp_harmonizes_packed_elements_and_validates, failed with the stock Windows SDK'sdxil.dll, which is validator 1.7 (found by alexdeliu on an RX 9070, see [BUNDLES] Index of verified bundle PRs: 25 bundles, 180 distinct open PRs (rebuilt after main moved) #1495). The new head of Shader: fix biased 16-bit image samples and DXIL validator failures #306 handles it itself: aValidator::version()query with a skip below validator 1.8, and PSV0 semantic names written per element (its commit message: "write PSV0 semantic names per element; skip valver 1.8 check on old validators"). I have no 1.7dxil.dllhere to confirm it on the stock SDK. An earlier version of this bundle had a commit of mine that did the same thing; it is reverted in the history, just before the merge of the new head, so nothing is duplicated.Left out, and why
Verification
Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):
cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --lockedmain: 342 passed, 6 ignored)The title was not run, so this says nothing about in-game effect. No game data is used or committed.
Re-verify in one go
To confirm that no component PR moved since this was built, compare each
Headabove withgh pr view <n> --repo Marvisak/VIctory --json headRefOid. If one differs, the branch needs a rebuild: merge the new head in the same order.If this lands
The component heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. Merging them one by one instead works too, with the exceptions noted above.
AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code