diff options
| author | 2018-04-15 19:56:07 -0500 | |
|---|---|---|
| committer | 2018-04-18 12:52:53 -0500 | |
| commit | 48d4efbd696d1dbd5330d74e69a52f8e508d279d (patch) | |
| tree | 618163c00bf621be9b7a44535493ceeaabd6257f /src | |
| parent | GLCache: Take into account the texture's block height when caching and unswiz... (diff) | |
| download | yuzu-48d4efbd696d1dbd5330d74e69a52f8e508d279d.tar.gz yuzu-48d4efbd696d1dbd5330d74e69a52f8e508d279d.tar.xz yuzu-48d4efbd696d1dbd5330d74e69a52f8e508d279d.zip | |
GPU: Pitch textures are now supported, don't assert when encountering them.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index a2f162602..2a3ff234a 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp | |||
| @@ -218,8 +218,9 @@ Texture::TICEntry Maxwell3D::GetTICEntry(u32 tic_index) const { | |||
| 218 | Texture::TICEntry tic_entry; | 218 | Texture::TICEntry tic_entry; |
| 219 | Memory::ReadBlock(tic_address_cpu, &tic_entry, sizeof(Texture::TICEntry)); | 219 | Memory::ReadBlock(tic_address_cpu, &tic_entry, sizeof(Texture::TICEntry)); |
| 220 | 220 | ||
| 221 | ASSERT_MSG(tic_entry.header_version == Texture::TICHeaderVersion::BlockLinear, | 221 | ASSERT_MSG(tic_entry.header_version == Texture::TICHeaderVersion::BlockLinear || |
| 222 | "TIC versions other than BlockLinear are unimplemented"); | 222 | tic_entry.header_version == Texture::TICHeaderVersion::Pitch, |
| 223 | "TIC versions other than BlockLinear or Pitch are unimplemented"); | ||
| 223 | 224 | ||
| 224 | ASSERT_MSG((tic_entry.texture_type == Texture::TextureType::Texture2D) || | 225 | ASSERT_MSG((tic_entry.texture_type == Texture::TextureType::Texture2D) || |
| 225 | (tic_entry.texture_type == Texture::TextureType::Texture2DNoMipmap), | 226 | (tic_entry.texture_type == Texture::TextureType::Texture2DNoMipmap), |