feat(agc): accept texel offsets, LOD biases and LOD clamps in color comparison sampling #934
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/934"
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 CnRJay on 2026-10-06T18:47:01Z.
What
Comparison sampling of a color texture threw on the
_o,_band_clforms and on a sampler LOD bias.#907 also edits the color compare emulation, but it is a review follow-up to #668 and doesn't add these forms.
Tested
Windows 11, MinGW GCC Release build, ctest
agc_driver_emulated_color_comparepasses (on the GPU). The test now also runs with point and bilinear filtering for:Each result is compared with a CPU reference that applies the same offsets.
Checklist
main; no other open PR implements the same functionsNotImplemented_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 adriadam10 on 2026-10-07T09:31:41Z.
Measured
image_sample_c_b_cl_oon RDNA2 (gfx1035) with a single-level 2D view: 992 rows × point/bilinear × wrap/clamp-to-edge/white and black border, with offsets from -32 to 31 (z bits set on some rows), shader and sampler LOD biases of both signs and an LOD clamp. Adding the offsets to the texel indices and ignoring the bias and clamp matches the hardware on every row. The new cases fail without the change.I rebased onto
mainto resolve the conflict with #815:lodBiasis now the fifthSamplerfield, afterreduction. I also dropped the merge commit. Full ctest passes (390/390). Merging once CI is green.