GS/HW: Allow hardware sampling when clamp_max is larger

Fixes some mipmapping issues in GT4.
This commit is contained in:
Stenzek 2023-02-17 19:48:40 +10:00 committed by refractionpcsx2
parent e0e9b64db6
commit 666de3a874
1 changed files with 1 additions and 1 deletions

View File

@ -3090,7 +3090,7 @@ __ri static constexpr bool IsRedundantClamp(u8 clamp, u32 clamp_min, u32 clamp_m
// That way trilinear etc still works.
const u32 textent = (1u << tsize) - 1u;
if (clamp == CLAMP_REGION_CLAMP)
return (clamp_min == 0 && clamp_max == textent);
return (clamp_min == 0 && clamp_max >= textent);
else if (clamp == CLAMP_REGION_REPEAT)
return (clamp_max == 0 && clamp_min == textent);
else