diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-22 23:09:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 23:09:00 +0200 |
commit | 68b707711a521f7987e1abcd1661b4575e3d270d (patch) | |
tree | af22e59d157b8b7a3e6260ca820aba3613197518 /src/video_core/engines/maxwell_3d.cpp | |
parent | Merge pull request #2400 from FernandoS27/corret-kepler-mem (diff) | |
parent | make ReadBlockunsafe and WriteBlockunsafe, ignore invalid pages. (diff) | |
download | yuzu-68b707711a521f7987e1abcd1661b4575e3d270d.tar yuzu-68b707711a521f7987e1abcd1661b4575e3d270d.tar.gz yuzu-68b707711a521f7987e1abcd1661b4575e3d270d.tar.bz2 yuzu-68b707711a521f7987e1abcd1661b4575e3d270d.tar.lz yuzu-68b707711a521f7987e1abcd1661b4575e3d270d.tar.xz yuzu-68b707711a521f7987e1abcd1661b4575e3d270d.tar.zst yuzu-68b707711a521f7987e1abcd1661b4575e3d270d.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index b198793bc..9780417f2 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -418,7 +418,7 @@ Texture::TICEntry Maxwell3D::GetTICEntry(u32 tic_index) const { const GPUVAddr tic_address_gpu{regs.tic.TICAddress() + tic_index * sizeof(Texture::TICEntry)}; Texture::TICEntry tic_entry; - memory_manager.ReadBlock(tic_address_gpu, &tic_entry, sizeof(Texture::TICEntry)); + memory_manager.ReadBlockUnsafe(tic_address_gpu, &tic_entry, sizeof(Texture::TICEntry)); ASSERT_MSG(tic_entry.header_version == Texture::TICHeaderVersion::BlockLinear || tic_entry.header_version == Texture::TICHeaderVersion::Pitch, @@ -439,7 +439,7 @@ Texture::TSCEntry Maxwell3D::GetTSCEntry(u32 tsc_index) const { const GPUVAddr tsc_address_gpu{regs.tsc.TSCAddress() + tsc_index * sizeof(Texture::TSCEntry)}; Texture::TSCEntry tsc_entry; - memory_manager.ReadBlock(tsc_address_gpu, &tsc_entry, sizeof(Texture::TSCEntry)); + memory_manager.ReadBlockUnsafe(tsc_address_gpu, &tsc_entry, sizeof(Texture::TSCEntry)); return tsc_entry; } |