mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 09:47:33 +01:00
GPU: Pitch textures are now supported, don't assert when encountering them.
This commit is contained in:
parent
a3e82e8e1f
commit
48d4efbd69
@ -218,8 +218,9 @@ Texture::TICEntry Maxwell3D::GetTICEntry(u32 tic_index) const {
|
|||||||
Texture::TICEntry tic_entry;
|
Texture::TICEntry tic_entry;
|
||||||
Memory::ReadBlock(tic_address_cpu, &tic_entry, sizeof(Texture::TICEntry));
|
Memory::ReadBlock(tic_address_cpu, &tic_entry, sizeof(Texture::TICEntry));
|
||||||
|
|
||||||
ASSERT_MSG(tic_entry.header_version == Texture::TICHeaderVersion::BlockLinear,
|
ASSERT_MSG(tic_entry.header_version == Texture::TICHeaderVersion::BlockLinear ||
|
||||||
"TIC versions other than BlockLinear are unimplemented");
|
tic_entry.header_version == Texture::TICHeaderVersion::Pitch,
|
||||||
|
"TIC versions other than BlockLinear or Pitch are unimplemented");
|
||||||
|
|
||||||
ASSERT_MSG((tic_entry.texture_type == Texture::TextureType::Texture2D) ||
|
ASSERT_MSG((tic_entry.texture_type == Texture::TextureType::Texture2D) ||
|
||||||
(tic_entry.texture_type == Texture::TextureType::Texture2DNoMipmap),
|
(tic_entry.texture_type == Texture::TextureType::Texture2DNoMipmap),
|
||||||
|
Loading…
Reference in New Issue
Block a user