feat(shader): decode image_sample_d_cl_o #389
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/389"
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?
Imported from boykopovar/AnyPS5. Originally posted by DotDebian on 2026-10-02T17:08:11Z.
What
Decodes
image_sample_d_cl_o(MIMG opcode0x33): a sample with explicit derivatives, an LOD clamp and a texel offset.IMAGE_SAMPLE_D_CL_Oin LLVM'sMIMGInstructions.td, between0x32(_d_o) and0x34(_l_o), which the table already has. The address layout (offset, derivatives, coordinates, clamp) follows from the three existing flags; the decoder and the emitter are otherwise unchanged.tools/progress.pycountsIMAGE_SAMPLE_D_CL_Oas a variant ofImageSample.This branch sits on #388 (an LOD clamp cannot be emitted without it). The change of this PR is the last commit.
Tested
Windows 11, MinGW-w64 GCC 15.2.0, NVIDIA GeForce RTX 5080.
ctest: 109/109 pass.The execution test
agc_driver_image_sample_lod_clampof #388 gains twoimage_sample_d_cl_osamples, with the offsets (1, 2) and (-1, -2):max(level of the derivatives, clamp)at its coordinates moved by the offset in that level, wrapped by the sampler.unsupported MIMG opcode.Not tested: a title, 16-bit addresses (A16).
Checklist
main; no other open PR implements the same functions (#226 adds other sample variants, not0x33; it merges cleanly with this branch)NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-03T19:51:07Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/shader/recompiler/RdnaDecoder/src/RdnaImageOpDecoder.cppL43