Repository navigation
Recompiler: saturate image_load D16 ints and keep odd high half - #1565
hajduzsolt wants to merge 1 commit into
Conversation
image_load / image_load_mip with D16=1 truncated 32-bit UINT/SINT texels with & 0xFFFFu instead of clamping to [0, 65535] / [-32768, 32767], and MIMG D16 writeback zeroed vdst[31:16] on odd channel counts instead of preserving the existing high 16 bits. Add img_d16() clamping and preserve (vdst & 0xFFFF0000u) when writing the trailing odd channel in write_result. Part of xcl-dev#1489 Assisted-by: Antigravity (Gemini 4 Hydrogen, high)
960ffb7 to
baa02be
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Tested Independent Windows/D3D12 verification of PR #1565 at clean head
& $testExe gpu::recomp::tests::image_load_d16_translation_uses_saturating_helper_and_preserves_high_half --exact --nocapture --test-threads=1
& $testExe gpu::recomp::tests::gpu_image_load_d16_saturates_and_keeps_high_half --exact --nocapture --test-threads=1
The translation test checked the upper-half masks for a one-channel Not tested Nonzero mip levels, direct DXIL on this head, the workspace suite, retail-title smoke runs, and other GPU adapters. AI use T3 Code / Codex ( |
Saturates 32-bit integer texels in image_load / image_load_mip when D16=1 and preserves vdst[31:16] on odd dmask channel counts in mimg D16 writeback. Part of #1489.
What is in it
Tested
cargo test --workspace -- --test-threads=2passed.Regression run
main:
PR:
Not tested
AI use