GS/HW: Fix repeat sampler being used for region clamp/repeat

The coordinates are clamped in the shader, but normalized UV of 1 and
bilinear may repeat.
This commit is contained in:
Stenzek 2023-02-17 01:58:20 +10:00 committed by refractionpcsx2
parent 1fc2d7de3c
commit d0d5d991ce
1 changed files with 2 additions and 2 deletions

View File

@ -3353,8 +3353,8 @@ void GSRendererHW::EmulateTextureSampler(const GSTextureCache::Source* tex)
m_conf.cb_vs.texture_scale = GSVector2(tc_oh_ts.x, tc_oh_ts.y);
// Only enable clamping in CLAMP mode. REGION_CLAMP will be done manually in the shader
m_conf.sampler.tau = (wms != CLAMP_CLAMP);
m_conf.sampler.tav = (wmt != CLAMP_CLAMP);
m_conf.sampler.tau = (wms == CLAMP_REPEAT);
m_conf.sampler.tav = (wmt == CLAMP_REPEAT);
if (shader_emulated_sampler)
{
m_conf.sampler.biln = 0;