GPU: Added registers for min and mag texture filters and implemented them in the hw renderer.

This commit is contained in:
Subv 2015-07-21 16:26:09 -05:00
parent cd2bb2dc69
commit 009e34f08a
4 changed files with 37 additions and 3 deletions

View file

@ -460,6 +460,7 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0,
u8* texture_data = Memory::GetPhysicalPointer(texture.config.GetPhysicalAddress());
auto info = DebugUtils::TextureInfo::FromPicaRegister(texture.config, texture.format);
// TODO: Apply the min and mag filters to the texture
texture_color[i] = DebugUtils::LookupTexture(texture_data, s, t, info);
DebugUtils::DumpTexture(texture.config, texture_data);
}