Shaders: load D16 integer textures with their bound component type #2123

Open
AlanQiang0418 wants to merge 11 commits from upstream-pr/2125 into main
AlanQiang0418 commented 2026-11-25 05:39:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by AlanQiang0418 on 2026-11-25T05:39:10Z.


Addresses the D16 integer texture load case in #2087. Thanks to Speartone for the experimental patch and synthetic reproduction.

This PR targets main and includes #2030. Review and merge #2030 first. The integer-load diff shows the changes on top of that dependency.

Changes

  • Record the effective UINT or SINT texture view format in the per-slot table. For D16 image_load and image_load_mip, select the corresponding typed DXIL load.
  • Pack integer channels into 16 bits, saturating 32-bit values to the signed or unsigned range. Floating-point and normalized loads follow #2030's conversion rules.

Validation

On 602108e, RTX 5080 and WARP each matched all 192 integer texels in six RGBA formats on both the ordinary load and the explicit mip-1 load. The mip fixture gives level 0 different values so the test detects a wrong-level read. The FP32 subnormal controls also passed on both adapters.

All nine D16 tests, the 15 WARP descriptor tests, and the descriptor-slot reuse test on both adapters passed. Strict Clippy passed for both crates with all targets and features. The initial branch also passed all six draw tests on each adapter.

Thanks to andrewpozdnakov7-jpg for the current-main integration and nonzero-mip fixture. Integration results · Original mip test.

AI-assisted with OpenAI Codex. All test data is synthetic.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5485847627 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125). Originally posted by [AlanQiang0418](https://github.com/AlanQiang0418) on 2026-11-25T05:39:10Z. --- Addresses the D16 integer texture load case in #2087. Thanks to Speartone for the experimental patch and synthetic reproduction. This PR targets `main` and includes #2030. Review and merge #2030 first. The [integer-load diff](https://github.com/AlanQiang0418/VIctory/compare/c80e81f...602108e) shows the changes on top of that dependency. ### Changes - Record the effective UINT or SINT texture view format in the per-slot table. For D16 `image_load` and `image_load_mip`, select the corresponding typed DXIL load. - Pack integer channels into 16 bits, saturating 32-bit values to the signed or unsigned range. Floating-point and normalized loads follow #2030's conversion rules. ### Validation On `602108e`, RTX 5080 and WARP each matched all 192 integer texels in six RGBA formats on both the ordinary load and the explicit mip-1 load. The mip fixture gives level 0 different values so the test detects a wrong-level read. The FP32 subnormal controls also passed on both adapters. All nine D16 tests, the 15 WARP descriptor tests, and the descriptor-slot reuse test on both adapters passed. Strict Clippy passed for both crates with all targets and features. The initial branch also passed all six draw tests on each adapter. Thanks to andrewpozdnakov7-jpg for the current-main integration and nonzero-mip fixture. [Integration results](https://github.com/Marvisak/VIctory/pull/2125#issuecomment-7198723318) · [Original mip test](https://github.com/Marvisak/VIctory/pull/2125#issuecomment-7156227915). AI-assisted with OpenAI Codex. All test data is synthetic.
catminou4 commented 2026-11-25 06:40:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T06:40:57Z.

Review: APPROVED


Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f69b, cargo test -p victory-shader --locked.

144 passed / 0 failed / 2 ignored. D16 integer textures loaded with their bound component type — format-aware D16 integer loads; mixed gpu+shader.

<!-- greyfinch-sync:Marvisak/VIctory:review:6052991889 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125#pullrequestreview-6052991889). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T06:40:57Z. **Review:** APPROVED --- Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f69b, `cargo test -p victory-shader --locked`. 144 passed / 0 failed / 2 ignored. D16 integer textures loaded with their bound component type — format-aware D16 integer loads; mixed gpu+shader.
DenRakEiw commented 2026-11-25 06:46:07 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T06:46:07Z.

Review: APPROVED


Verified locally merged onto origin/main (940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC, with dxil.dll validator):

  • cargo test -p victory-shader --lib d16 — 5 passed, 0 failed on both RTX 5090 hardware and VICTORY_D3D12_WARP=1
  • cargo clippy -p victory-shader -p victory-gpu --all-targets — 0 warnings
  • cargo xtask policy — ok (183 files ok)

Clean handling of D16 integer texture loads according to their bound component type via the sideband view table, verified on RTX 5090 + WARP. Looks great.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6053038409 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125#pullrequestreview-6053038409). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-25T06:46:07Z. **Review:** APPROVED --- Verified locally merged onto `origin/main` (`940d32f`, Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC, with `dxil.dll` validator): - `cargo test -p victory-shader --lib d16` — **5 passed, 0 failed** on both RTX 5090 hardware and `VICTORY_D3D12_WARP=1` - `cargo clippy -p victory-shader -p victory-gpu --all-targets` — 0 warnings - `cargo xtask policy` — ok (`183 files ok`) Clean handling of D16 integer texture loads according to their bound component type via the sideband view table, verified on RTX 5090 + WARP. Looks great. AI-assisted (Gemini 4 Neon).
fiestorra commented 2026-11-25 07:03:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-25T06:07:19Z.


The dependency is not pending: this branch already contains all of #2030, so the two cannot both land

The description says "depends on #2030 for the view-format table" and links a #2087-only diff, which reads like this needs #2030 merged first. It does not: #2125's branch carries #2030's four commits, so the table is already in it.

Checked three ways, because this decides how the pair should be merged:

#2030 head e87c4f1, 4 commits
#2125 head 3fdf5e9, 5 commits
git merge-base --is-ancestor <#2030> <#2125>   →  true

and git log origin/main..<#2125> shows five commits, of which the first four are #2030's, ending at Round D16 image reads according to the bound texture format:

3fdf5e9 Load D16 integer textures with their bound component type
e87c4f1 Require a backend to run the D16 image regressions
04f9cc5 fix(shader): truncate d16 float texels on every host
32ec0d5 Shaders: round static point D16 samples from the texel code
f6058b0 Round D16 image reads according to the bound texture format

What that means for landing them:

  • merging #2125 alone lands #2030's fix too — #2006's rounding change goes in under this pull request's title, and #2030 then has nothing left in it;
  • merging both is harmless to git (the commits are shared, not duplicated), but the second one becomes an empty merge, and a reviewer reading #2030 afterwards would be approving a change that is already on main;
  • so this is one decision, not two: either #2125 is the vehicle and #2030 is closed as included, or #2125 is rebased onto main without those four commits and the dependency becomes real and visible.

I would take the first: the four commits are ready (#2030 is not a draft), and a branch that contains its dependency is easier to review than a queue that has to be merged in order — but the description has to say so, or the maintainer will merge #2030 first and wonder why #2125's diff looks like it contains it.

What I measured on this branch, for the record:

  • it applies to main 940d32f alone and builds;
  • cargo test -p victory-shader --locked --lib 250 passed, 3 ignored (two more tests than main, which is the D16 regression work);
  • the offline census is unchanged: 23,918 validated of 26,084 programs, the same classes as main (23,918 / 871 Flags must match usage / 195 SGPR addresses / …). That is expected for a rounding fix — it changes what the loaded value is, not whether the module validates — and it means this pull request's evidence has to be the pixel or the synthetic reproduction, which the description does provide.

One small thing I could not check: the #2087-only diff they link is against their own tree, and I did not try to construct a #2125-without-#2030 build. If the split matters to them, that build is the thing to test, not this one.

No game data is involved: commit ids, test counts and census counts.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7154463446 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125#issuecomment-7154463446). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-25T06:07:19Z. --- **The dependency is not pending: this branch already contains all of #2030, so the two cannot both land** The description says "depends on #2030 for the view-format table" and links a #2087-only diff, which reads like this needs #2030 merged first. It does not: **#2125's branch carries #2030's four commits**, so the table is already in it. Checked three ways, because this decides how the pair should be merged: ``` #2030 head e87c4f1, 4 commits #2125 head 3fdf5e9, 5 commits git merge-base --is-ancestor <#2030> <#2125> → true ``` and `git log origin/main..<#2125>` shows five commits, of which the first four are #2030's, ending at *Round D16 image reads according to the bound texture format*: ``` 3fdf5e9 Load D16 integer textures with their bound component type e87c4f1 Require a backend to run the D16 image regressions 04f9cc5 fix(shader): truncate d16 float texels on every host 32ec0d5 Shaders: round static point D16 samples from the texel code f6058b0 Round D16 image reads according to the bound texture format ``` **What that means for landing them:** - **merging #2125 alone lands #2030's fix too** — #2006's rounding change goes in under this pull request's title, and #2030 then has nothing left in it; - **merging both** is harmless to git (the commits are shared, not duplicated), but the second one becomes an empty merge, and a reviewer reading #2030 afterwards would be approving a change that is already on `main`; - so this is **one decision, not two**: either #2125 is the vehicle and #2030 is closed as included, or #2125 is rebased onto `main` without those four commits and the dependency becomes real and visible. I would take the first: the four commits are ready (#2030 is not a draft), and a branch that contains its dependency is easier to review than a queue that has to be merged in order — but the description has to say so, or the maintainer will merge #2030 first and wonder why #2125's diff looks like it contains it. **What I measured on this branch, for the record:** - it applies to `main` `940d32f` alone and builds; - `cargo test -p victory-shader --locked --lib` **250 passed, 3 ignored** (two more tests than `main`, which is the D16 regression work); - the offline census is **unchanged**: 23,918 validated of 26,084 programs, the same classes as `main` (23,918 / 871 `Flags must match usage` / 195 SGPR addresses / …). That is expected for a rounding fix — it changes what the loaded value is, not whether the module validates — and it means this pull request's evidence has to be the pixel or the synthetic reproduction, which the description does provide. One small thing I could not check: the #2087-only diff they link is against their own tree, and I did not try to construct a #2125-without-#2030 build. If the split matters to them, that build is the thing to test, not this one. No game data is involved: commit ids, test counts and census counts. Written with an AI assistant.
andrewpozdnakov7-jpg commented 2026-11-25 08:06:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T07:45:59Z.


I ran the five existing D16 checks on WARP at 3fdf5e9. All five passed. I also checked an explicit image_load_mip at level 1, with different texels at level 0 so reading the wrong level would fail.

The same two integer fixtures ran against e87c4f1f03ec92794c3008a75c8ef0371b70cf87 and 3fdf5e94d347e3513e7c8abf19704e8128ee65ef. Before, all 32 integer texels were wrong in each of six UINT/SINT formats on both load paths. With this PR, all matched, including signed and unsigned saturation. The FP32 subnormal control passed in both builds. The full shader run went from 246 passed / 5 failed / 3 ignored to 248 passed / 3 failed / 3 ignored, with the same three existing WARP failures in gather, lane permute, and edge-flagged triangles.

The test-only commit is directly on this PR's current HEAD. Strict shader Clippy and the staged asset policy passed. If you include it, please preserve its Git author. If you fold it into your own commit, please add:

Co-authored-by: andrewpozdnakov7-jpg [email protected]

<!-- greyfinch-sync:Marvisak/VIctory:comment:7156227915 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125#issuecomment-7156227915). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-25T07:45:59Z. --- I ran the five existing D16 checks on WARP at `3fdf5e9`. All five passed. I also checked an explicit `image_load_mip` at level 1, with different texels at level 0 so reading the wrong level would fail. The same two integer fixtures ran against `e87c4f1f03ec92794c3008a75c8ef0371b70cf87` and `3fdf5e94d347e3513e7c8abf19704e8128ee65ef`. Before, all 32 integer texels were wrong in each of six UINT/SINT formats on both load paths. With this PR, all matched, including signed and unsigned saturation. The FP32 subnormal control passed in both builds. The full shader run went from 246 passed / 5 failed / 3 ignored to 248 passed / 3 failed / 3 ignored, with the same three existing WARP failures in gather, lane permute, and edge-flagged triangles. The [test-only commit](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/cda467d3999447bb24b126adf7693ce749126560) is directly on this PR's current HEAD. Strict shader Clippy and the staged asset policy passed. If you include it, please preserve its Git author. If you fold it into your own commit, please add: Co-authored-by: andrewpozdnakov7-jpg <[email protected]>
sinan-cmyk commented 2026-11-25 09:06:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by sinan-cmyk on 2026-11-25T08:29:04Z.


Offline measurement on a retail dump

Result: no count change against main.

I merged head 3fdf5e94 onto main 940d32f (clean merge) and ran victory translate --validate --list on shaders.rpf (1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result with main program by program (25,889 programs). Validated: 23,918 on main, 23,918 with this PR.

No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right.

No shader names or data are included, per the asset policy. AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7157080509 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125#issuecomment-7157080509). Originally posted by [sinan-cmyk](https://github.com/sinan-cmyk) on 2026-11-25T08:29:04Z. --- ### Offline measurement on a retail dump **Result: no count change against `main`.** I merged head 3fdf5e94 onto `main` 940d32f (clean merge) and ran `victory translate --validate --list` on `shaders.rpf` (1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result with `main` program by program (25,889 programs). Validated: 23,918 on `main`, 23,918 with this PR. No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right. No shader names or data are included, per the asset policy. AI-assisted (Claude Code).
Marvisak commented 2026-11-25 11:05:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T10:47:05Z.


Automated triage for the maintainers.

This pull request no longer merges cleanly into main (conflicts in crates/victory-gpu/src/descriptor/host.rs, crates/victory-shader/src/emit/lower.rs, crates/victory-shader/src/emit/shader.rs, crates/victory-shader/src/emit/stride_tests.rs). It will be reviewed once it is rebased onto the current main. The earlier verdict (needs-work) was for an older state of main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7160168728 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125#issuecomment-7160168728). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T10:47:05Z. --- <!-- victory-triage v1 head=3fdf5e94d347e3513e7c8abf19704e8128ee65ef verdict=needs-rebase at=2026-11-25T16:03:00Z --> Automated triage for the maintainers. This pull request no longer merges cleanly into `main` (conflicts in `crates/victory-gpu/src/descriptor/host.rs`, `crates/victory-shader/src/emit/lower.rs`, `crates/victory-shader/src/emit/shader.rs`, `crates/victory-shader/src/emit/stride_tests.rs`). It will be reviewed once it is rebased onto the current `main`. The earlier verdict (needs-work) was for an older state of `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
andrewpozdnakov7-jpg commented 2026-11-25 11:05:43 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T10:56:13Z.


I found a native RDNA2 measurement for the saturation question in the triage comment. The gfx1036 probe and measured results assemble the image instructions into AMD code objects and dispatch them via HIP on a Ryzen 7 7800X3D iGPU. The full-width loads check the staged texels. The D16 cases then compare the same texels against three candidate rules.

For R32 and R32G32 UINT/SINT, every measured out-of-range value followed unsigned or signed saturation, including cases that distinguish it from taking the low 16 bits. The report covers 1D, 2D, 2D array and 3D on both image_load and image_load_mip (mip 0). This is evidence from desktop RDNA2 silicon for the conversion rule. AMD RDNA2 ISA §8.2.1 specifies format-directed D16 conversion and packing.

The WARP test above separately exercises VIctory's explicit nonzero mip path. The branch still depends on #2030.

If you fold in the offered VIctory regression instead of cherry-picking it, please keep its attribution:

Co-authored-by: andrewpozdnakov7-jpg [email protected]

AI-assisted. Synthetic evidence only.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7160370723 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125#issuecomment-7160370723). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-25T10:56:13Z. --- I found a native RDNA2 measurement for the saturation question in the triage comment. [The gfx1036 probe and measured results](https://github.com/coco-chaneyey/Leonida/commit/3fa378b15d9e155df47d69314bc90b35020e6467) assemble the image instructions into AMD code objects and dispatch them via HIP on a Ryzen 7 7800X3D iGPU. The full-width loads check the staged texels. The D16 cases then compare the same texels against three candidate rules. For R32 and R32G32 UINT/SINT, every measured out-of-range value followed unsigned or signed saturation, including cases that distinguish it from taking the low 16 bits. The report covers 1D, 2D, 2D array and 3D on both `image_load` and `image_load_mip` (mip 0). This is evidence from desktop RDNA2 silicon for the conversion rule. [AMD RDNA2 ISA §8.2.1](https://www.amd.com/content/dam/amd/en/documents/radeon-tech-docs/instruction-set-architectures/rdna2-shader-instruction-set-architecture.pdf#page=70) specifies format-directed D16 conversion and packing. The WARP test above separately exercises VIctory's explicit nonzero mip path. The branch still depends on #2030. If you fold in the offered VIctory regression instead of cherry-picking it, please keep its attribution: Co-authored-by: andrewpozdnakov7-jpg <[email protected]> AI-assisted. Synthetic evidence only.
andrewpozdnakov7-jpg commented 2026-11-26 17:15:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-26T17:15:17Z.


I resolved the current-main conflicts on top of the published #2030 integration. The branch keeps 3fdf5e9 and 190dd03 as exact parents of 6597d37, with upstream 63bcca4 in the history. Texture format tags use the three texture bits already reserved by #2030, so the integer-buffer flags and stride calculation from main stay intact. Tested branch

I ran the existing integer fixture on 190dd03 with just the test and its format-tag setup added. All 192 integer texels disagreed with the expected result. On 6597d37, all 192 matched across RGBA8, RGBA16, and RGBA32 UINT/SINT. The FP32 subnormal control passed in both runs. These results are from WARP 1.0.22 with Agility 1.620.2.

All eight D16 tests passed, including the normalized reads, point/linear samples, and typed-buffer controls. All 21 draw tests passed, including descriptor slot reuse. The full GPU suite had 247 passed, 0 failed, and 1 ignored. Strict Clippy in both feature configurations and the asset policy passed.

If you use the merge resolution, please retain the original commits and Git authors. If the resolution is folded into another commit, please add Co-authored-by: andrewpozdnakov7-jpg <[email protected]>. AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7198723318 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125#issuecomment-7198723318). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-26T17:15:17Z. --- I resolved the current-main conflicts on top of the published #2030 integration. The branch keeps `3fdf5e9` and `190dd03` as exact parents of `6597d37`, with upstream `63bcca4` in the history. Texture format tags use the three texture bits already reserved by #2030, so the integer-buffer flags and stride calculation from main stay intact. [Tested branch](https://github.com/andrewpozdnakov7-jpg/VIctory/tree/followup/2125-d16-integer-views) I ran the existing integer fixture on `190dd03` with just the test and its format-tag setup added. All 192 integer texels disagreed with the expected result. On `6597d37`, all 192 matched across RGBA8, RGBA16, and RGBA32 UINT/SINT. The FP32 subnormal control passed in both runs. These results are from WARP 1.0.22 with Agility 1.620.2. All eight D16 tests passed, including the normalized reads, point/linear samples, and typed-buffer controls. All 21 draw tests passed, including descriptor slot reuse. The full GPU suite had 247 passed, 0 failed, and 1 ignored. Strict Clippy in both feature configurations and the asset policy passed. If you use the merge resolution, please retain the original commits and Git authors. If the resolution is folded into another commit, please add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`. AI-assisted with Codex.
kilolimaVI commented 2026-11-26 21:01:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-26T21:01:58Z.


Verified the D16 tests on AMD hardware: Windows 11, AMD Radeon 780M (RDNA3 iGPU), toolchain 1.98.1, cargo test -p victory-shader --lib --locked --no-fail-fast -- --test-threads=1, branch as-is (160 commits behind main).

780M WARP (VICTORY_WARP=1)
d16_image_load_rounds_normalized_texels_to_nearest ok ok
d16_point_and_linear_samples_round_correctly ok ok
d16_integer_image_load_keeps_integer_channels ok ok
whole lib suite 250 passed, 0 failed 248 passed, 2 failed

The two WARP failures (gathers_at_a_level_match_the_hardware, permutes_read_the_lane_named_and_zero_from_lanes_left_out) are the WARP-only harness issue main has too (fixed by #2225), not this PR. This covers NEW-56 on RDNA3; #2030's two D16 tests are the same ones.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7203315458 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125#issuecomment-7203315458). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-26T21:01:58Z. --- Verified the D16 tests on AMD hardware: Windows 11, AMD Radeon 780M (RDNA3 iGPU), toolchain 1.98.1, `cargo test -p victory-shader --lib --locked --no-fail-fast -- --test-threads=1`, branch as-is (160 commits behind main). | | 780M | WARP (`VICTORY_WARP=1`) | |---|---|---| | `d16_image_load_rounds_normalized_texels_to_nearest` | ok | ok | | `d16_point_and_linear_samples_round_correctly` | ok | ok | | `d16_integer_image_load_keeps_integer_channels` | ok | ok | | whole lib suite | 250 passed, 0 failed | 248 passed, 2 failed | The two WARP failures (`gathers_at_a_level_match_the_hardware`, `permutes_read_the_lane_named_and_zero_from_lanes_left_out`) are the WARP-only harness issue main has too (fixed by #2225), not this PR. This covers NEW-56 on RDNA3; #2030's two D16 tests are the same ones. AI-assisted (Claude).
andrewpozdnakov7-jpg commented 2026-11-27 08:53:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T08:53:32Z.


@AlanQiang0418 I checked how #1437 fits with the current #2030 / #2125 stack, since they both change packing of D16 image-load results. The combined branch preserves 602108e, its #2030 ancestor c80e81f, and the current-main version of #1437.

The conflict resolution keeps packing in the current DXIL block after the typed-load branches, with #1437's previous high half for an odd plain image load. The only extra fixture change binds the view-stride metadata now read by the D16 shader and expects the two typed texture handles introduced by this stack.

Forced WARP 1.0.22 passed the nine D16 tests and all six waterfall tests. That includes the 192 integer texels for both ordinary and explicit-mip loads, the normalized format and sampler cases, and the 1-, 2-, and 3-channel destination test. Strict all-features shader Clippy and asset policy passed.

This branch is available for whichever PR needs the merge resolution. Please retain the original commits and Git authors if you take it. If the resolution or fixture change is folded into another commit, please add Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

AI-assisted with Codex. Synthetic textures and shaders only.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7214041059 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2125#issuecomment-7214041059). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T08:53:32Z. --- @AlanQiang0418 I checked how #1437 fits with the current #2030 / #2125 stack, since they both change packing of D16 image-load results. The [combined branch](https://github.com/andrewpozdnakov7-jpg/VIctory/tree/review/pr2125-packed-d16-integration) preserves `602108e`, its #2030 ancestor `c80e81f`, and the [current-main version of #1437](https://github.com/Marvisak/VIctory/pull/1437#issuecomment-7213786150). The conflict resolution keeps packing in the current DXIL block after the typed-load branches, with #1437's previous high half for an odd plain image load. The only extra fixture change binds the view-stride metadata now read by the D16 shader and expects the two typed texture handles introduced by this stack. Forced WARP 1.0.22 passed the nine D16 tests and all six waterfall tests. That includes the 192 integer texels for both ordinary and explicit-mip loads, the normalized format and sampler cases, and the 1-, 2-, and 3-channel destination test. Strict all-features shader Clippy and asset policy passed. This branch is available for whichever PR needs the merge resolution. Please retain the original commits and Git authors if you take it. If the resolution or fixture change is folded into another commit, please add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`. AI-assisted with Codex. Synthetic textures and shaders only.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2125:upstream-pr/2125'
git switch 'upstream-pr/2125'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2125'
git switch 'upstream-pr/2125'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2125'
git switch 'upstream-pr/2125'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2125'
git switch 'main'
git merge --squash 'upstream-pr/2125'
git switch 'main'
git merge --ff-only 'upstream-pr/2125'
git switch 'main'
git merge 'upstream-pr/2125'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!2123
No description provided.