mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Eliminate SamplerCommon::AreBpTexMode0MipmapsEnabled
This was added in0b9a72a62d
but became irrelevant in70f9fc4e75
as the check is now self-explanatory due to a rejiggering of the bitfields.
This commit is contained in:
parent
d2041b4c2a
commit
3096f77ba0
5 changed files with 10 additions and 19 deletions
|
@ -979,9 +979,8 @@ static void SetSamplerState(u32 index, float custom_tex_scale, bool custom_tex,
|
|||
{
|
||||
state.min_filter = SamplerState::Filter::Linear;
|
||||
state.mag_filter = SamplerState::Filter::Linear;
|
||||
state.mipmap_filter = SamplerCommon::AreBpTexMode0MipmapsEnabled(tm0) ?
|
||||
SamplerState::Filter::Linear :
|
||||
SamplerState::Filter::Point;
|
||||
state.mipmap_filter = tm0.mipmap_filter != MipMode::None ? SamplerState::Filter::Linear :
|
||||
SamplerState::Filter::Point;
|
||||
}
|
||||
|
||||
// Custom textures may have a greater number of mips
|
||||
|
@ -1000,7 +999,7 @@ static void SetSamplerState(u32 index, float custom_tex_scale, bool custom_tex,
|
|||
// disabling anisotropy, or changing the anisotropic algorithm employed.
|
||||
state.min_filter = SamplerState::Filter::Linear;
|
||||
state.mag_filter = SamplerState::Filter::Linear;
|
||||
if (SamplerCommon::AreBpTexMode0MipmapsEnabled(tm0))
|
||||
if (tm0.mipmap_filter != MipMode::None)
|
||||
state.mipmap_filter = SamplerState::Filter::Linear;
|
||||
state.anisotropic_filtering = 1;
|
||||
}
|
||||
|
@ -1009,7 +1008,7 @@ static void SetSamplerState(u32 index, float custom_tex_scale, bool custom_tex,
|
|||
state.anisotropic_filtering = 0;
|
||||
}
|
||||
|
||||
if (has_arbitrary_mips && SamplerCommon::AreBpTexMode0MipmapsEnabled(tm0))
|
||||
if (has_arbitrary_mips && tm0.mipmap_filter != MipMode::None)
|
||||
{
|
||||
// Apply a secondary bias calculated from the IR scale to pull inwards mipmaps
|
||||
// that have arbitrary contents, eg. are used for fog effects where the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue