Repository navigation
Shaders: load D16 integer textures with their bound component type - #2125
AlanQiang0418 wants to merge 5 commits into
Conversation
(cherry picked from commit 79867f9)
legacyF32ToF16 truncates on Windows but rounds to nearest under vkd3d-proton on an RTX 5080, where the FLOAT control of d16_image_load_rounds_normalized_texels_to_nearest failed on all 256 texels. f16_toward_zero gives the same result for either rounding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 980acd1)
|
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: and What that means for landing them:
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:
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. |
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. D16 integer textures loaded with their bound component type — format-aware D16 integer loads; mixed gpu+shader.
DenRakEiw
left a comment
There was a problem hiding this comment.
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 andVICTORY_D3D12_WARP=1cargo clippy -p victory-shader -p victory-gpu --all-targets— 0 warningscargo 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).
|
I ran the five existing D16 checks on WARP at The same two integer fixtures ran against 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 andrewpozdnakov7-jpg@users.noreply.github.com |
Offline measurement on a retail dumpResult: no count change against I merged head 3fdf5e9 onto 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). |
|
Automated triage for the maintainers. This pull request no longer merges cleanly into Generated by Claude Code |
|
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 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 andrewpozdnakov7-jpg@users.noreply.github.com AI-assisted. Synthetic evidence only. |
|
I resolved the current-main conflicts on top of the published #2030 integration. The branch keeps I ran the existing integer fixture on 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 |
Addresses the D16 integer texture load case in #2087. Thanks to Speartone for the experimental patch and synthetic reproduction.
Depends on #2030 for the view-format table. This draft targets upstream
main. The #2087-only diff shows the change on top of that dependency.Changes
image_loadandimage_load_mip, select a matching typed DXIL load before reading the texture.Validation
victory-shaderD16 tests passed (5/5), including the existing normalized and sampling regressions. Thevictory-gpudraw tests passed (6/6 per backend), including descriptor reuse. Clippy passed for both crates with all targets and features.AI-assisted with OpenAI Codex. All test data is synthetic.