rsx/common: Use typed enum for max anisotropy.

This commit is contained in:
Vincent Lejeune 2016-03-30 19:20:39 +02:00
parent 7f25720bd3
commit d971c4e0f6
10 changed files with 82 additions and 52 deletions

View file

@ -136,9 +136,9 @@ namespace rsx
return ((method_registers[NV4097_SET_TEXTURE_CONTROL0 + (m_index * 8)] >> 7) & 0xfff);
}
u8 texture::max_aniso() const
rsx::texture_max_anisotropy texture::max_aniso() const
{
return ((method_registers[NV4097_SET_TEXTURE_CONTROL0 + (m_index * 8)] >> 4) & 0x7);
return rsx::to_texture_max_anisotropy((method_registers[NV4097_SET_TEXTURE_CONTROL0 + (m_index * 8)] >> 4) & 0x7);
}
bool texture::alpha_kill_enabled() const