VideoBackends:Metal: Fix min/max lod when setting non-zero-based samplers

This commit is contained in:
TellowKrinkle 2022-11-30 21:11:37 -06:00
parent 4b7600f20f
commit ffb73f43e1

View File

@ -809,8 +809,8 @@ void Metal::StateTracker::PrepareRender()
m_dirty_samplers &= ~pipe->GetSamplers(); m_dirty_samplers &= ~pipe->GetSamplers();
NSRange range = RangeOfBits(dirty); NSRange range = RangeOfBits(dirty);
[enc setFragmentSamplerStates:&m_state.samplers[range.location] [enc setFragmentSamplerStates:&m_state.samplers[range.location]
lodMinClamps:m_state.sampler_min_lod.data() lodMinClamps:&m_state.sampler_min_lod[range.location]
lodMaxClamps:m_state.sampler_max_lod.data() lodMaxClamps:&m_state.sampler_max_lod[range.location]
withRange:range]; withRange:range];
} }
if (m_state.perf_query_group != m_current.perf_query_group) if (m_state.perf_query_group != m_current.perf_query_group)