Merge pull request #11312 from tellowkrinkle/MTLFixLod

VideoBackends:Metal: Fix min/max lod when setting non-zero-based samplers
This commit is contained in:
Mai 2022-12-01 15:08:39 +00:00 committed by GitHub
commit 1d6d9e668f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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