summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-04-16 05:05:05 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-04-16 05:10:24 +0200
commitef381e6924ee28162d3ce1cff0523ea7a88981d2 (patch)
tree59967fcddc8f7c4586818dea3378c924cd53d426 /src/video_core/engines
parentGPU MemoryManager: Implement ReadBlockUnsafe and WriteBlockUnsafe (diff)
downloadyuzu-ef381e6924ee28162d3ce1cff0523ea7a88981d2.tar
yuzu-ef381e6924ee28162d3ce1cff0523ea7a88981d2.tar.gz
yuzu-ef381e6924ee28162d3ce1cff0523ea7a88981d2.tar.bz2
yuzu-ef381e6924ee28162d3ce1cff0523ea7a88981d2.tar.lz
yuzu-ef381e6924ee28162d3ce1cff0523ea7a88981d2.tar.xz
yuzu-ef381e6924ee28162d3ce1cff0523ea7a88981d2.tar.zst
yuzu-ef381e6924ee28162d3ce1cff0523ea7a88981d2.zip
Diffstat (limited to 'src/video_core/engines')
-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 74403eed4..69401fcda 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;
}