diff options
| author | tupacfan04 <tupacfan04@users.noreply.github.com> | 2026-11-22 18:49:27 -0600 |
|---|---|---|
| committer | tupacfan04 <tupacfan04@users.noreply.github.com> | 2026-11-22 18:49:27 -0600 |
| commit | c253c976324085e194e1a53d5404c0db15a52d6d (patch) | |
| tree | f9f48a68d4b2c0d223e5b9befe675a95c3f5abb0 /runtime/src/pe_loader.cpp | |
| parent | 03b09a086592a197db64d91655c6e65c30764d96 (diff) | |
rdna2spirv: explicit-LOD gather rounds the LOD to a mip exactly
The image_gather4_l emulation picked its mip as Floor(lod + 0.5). The sum
is rounded in binary32: 0x3effffff + 0.5 lies halfway between 1 - 2^-24
and 1.0 and rounds to even, 1.0, so the gather fetched mip 1 where native
nearest-mip sampling at the same LOD reads mip 0 (RTX 5070, 621.24).
Compute floor(lod) + (lod - floor(lod) >= 0.5) instead: both operations
are exact in binary32, and a tie still rounds up (SHADER-152).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions