summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-11-23 04:35:45 +0100
committerbunnei <bunneidev@gmail.com>2014-12-12 06:15:47 +0100
commit4cb7a44d4e30cd7bc0ec0f07b4b734a7e03f1a3a (patch)
treec8ad6079befffdc1548e9402ca342f15610ad598 /src/video_core
parentMerge pull request #256 from Subv/mutex (diff)
downloadyuzu-4cb7a44d4e30cd7bc0ec0f07b4b734a7e03f1a3a.tar
yuzu-4cb7a44d4e30cd7bc0ec0f07b4b734a7e03f1a3a.tar.gz
yuzu-4cb7a44d4e30cd7bc0ec0f07b4b734a7e03f1a3a.tar.bz2
yuzu-4cb7a44d4e30cd7bc0ec0f07b4b734a7e03f1a3a.tar.lz
yuzu-4cb7a44d4e30cd7bc0ec0f07b4b734a7e03f1a3a.tar.xz
yuzu-4cb7a44d4e30cd7bc0ec0f07b4b734a7e03f1a3a.tar.zst
yuzu-4cb7a44d4e30cd7bc0ec0f07b4b734a7e03f1a3a.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/pica.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index 8bac178ca..4c3791ad9 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -116,7 +116,7 @@ struct Regs {
u32 address;
u32 GetPhysicalAddress() const {
- return DecodeAddressRegister(address) - Memory::FCRAM_PADDR + Memory::HEAP_GSP_VADDR;
+ return DecodeAddressRegister(address) - Memory::FCRAM_PADDR + Memory::HEAP_LINEAR_VADDR;
}
// texture1 and texture2 store the texture format directly after the address
@@ -312,7 +312,7 @@ struct Regs {
inline u32 GetBaseAddress() const {
// TODO: Ugly, should fix PhysicalToVirtualAddress instead
- return DecodeAddressRegister(base_address) - Memory::FCRAM_PADDR + Memory::HEAP_GSP_VADDR;
+ return DecodeAddressRegister(base_address) - Memory::FCRAM_PADDR + Memory::HEAP_LINEAR_VADDR;
}
// Descriptor for internal vertex attributes