Recompiler: saturate image_load D16 ints and keep odd high half #1565
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1565
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1565"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@hajduzsolt on GitHub · 2026-11-24 17:43 UTC · original
hajduzsolt:recompiler/image-load-d16-saturate→main· +91 −3 · 2 files · 1 commits · openSaturates 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
@DavidM1911 on GitHub · 2026-11-24 19:41 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
@JJAutoCompare on GitHub · 2026-11-25 02:32 UTC · original
Tested
Independent Windows/D3D12 verification of PR #1565 at clean head
baa02bef9b8d3de44847663ebe15045b51a2a0f9. The PR was open at that SHA before and after the run.x86_64-pc-windows-msvc, DXC/DXIL 1.9.2609.5.cargo test --locked -p xcl --lib -j 2 --no-runcompleted outside the Arc lock withCARGO_INCREMENTAL=0,CARGO_PROFILE_DEV_DEBUG=0, andCARGO_PROFILE_TEST_DEBUG=0.XCL_ADAPTER=A770,XCL_DIRECT_DXIL=0,XCL_REQUIRE_GPU=wave64, andXCL_DXC_DIRto the DXC 1.9.2609 x64 directory under%LOCALAPPDATA%. The GPU test ran underL:/XclTooling/Invoke-ArcTest.ps1 -WaitMinutes 30.The translation test checked the upper-half masks for a one-channel
IMAGE_LOADand a three-channelIMAGE_LOAD_MIP. On the GPU, all 64 lanes kept0xCAFEand0xABCDfor the one-channel UINT and FLOATIMAGE_LOADresults, and0xBEEFin the trailing register for the three-channel SINT load. The one-channel SINTIMAGE_LOAD_MIPat mip 0 returned0xDEAD8000on all 64 lanes, preserving0xDEADwhile writing the expected low half. Ordinary integer saturation on both backends was already covered in the #2042 Arc report.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 (
gpt-6.2-sol) ran the checked-in tests, verified the logs, and wrote this report.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.