Merge pull request #1034 from yuriks/rg8-textures

videocore: Added RG8 texture support
This commit is contained in:
bunnei 2015-08-16 22:17:12 -04:00
commit 1f18c9f8dd
4 changed files with 27 additions and 2 deletions

View file

@ -410,6 +410,12 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture
}
}
case Regs::TextureFormat::RG8:
{
auto res = Color::DecodeRG8(source + VideoCore::GetMortonOffset(x, y, 2));
return { res.r(), res.g(), 0, 255 };
}
case Regs::TextureFormat::I8:
{
const u8* source_ptr = source + VideoCore::GetMortonOffset(x, y, 1);