mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-03 12:57:27 +00:00
On RDNA 2, an S# with TRUNC_COORD 0 rounds the scaled coordinate to 8 fractional bits, ties to even, and one with TRUNC_COORD 1 truncates it, for point and bilinear filters. The S# decoder ignores the bit, and AMD's Windows driver truncates for nearest samplers and rounds for linear ones, so a TRUNC_COORD 0 point sample just below a texel edge reads the texel below it. The code comment said the bit moves texel selection by half a texel at most; the debt entry records the measured rule instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>