summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-04-22 23:09:00 +0200
committerGitHub <noreply@github.com>2019-04-22 23:09:00 +0200
commit68b707711a521f7987e1abcd1661b4575e3d270d (patch)
treeaf22e59d157b8b7a3e6260ca820aba3613197518 /src/video_core/engines/maxwell_3d.cpp
parentMerge pull request #2400 from FernandoS27/corret-kepler-mem (diff)
parentmake ReadBlockunsafe and WriteBlockunsafe, ignore invalid pages. (diff)
downloadyuzu-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.cpp4
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;
}