mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 00:22:57 -05:00
A 2D image_sample_l through a 1D T# now takes the 1D runtime mode, as image_sample_lz already does, instead of failing the runtime image interface. Measured on RDNA2 (gfx1036) with tools/hw-oracle against the same sample with DIM 1D: u inside, on and past the edges, v of 0, 0.5, 1, -0.25 and 3, LOD -1 to 6 on a 5-level R32_FLOAT texture, point, linear and linear-mip filtering, wrap, clamp and border addressing, and HEIGHT or DEPTH 3. All 4725 rows matched: the 1D T# decides the addressing and v is ignored. The execution test samples a 5-level 1D T# with distinct mip contents at LODs -1 to 6, fractional ones included, with u inside, on and past the edges, under point filtering with wrap and clamp and linear filtering with linear mips and wrap, clamp and border addressing. Every result must match the same image_sample_l with DIM 1D bit for bit; point-filtered results must also be the expected texel of the expected level, and linear-mip results the blend of the two levels the LOD selects.