summaryrefslogtreecommitdiffstats
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-09 08:08:11 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-09 08:08:11 +0200
commit28a9e4c1d55c66e99b5cf16fda00dcb75ab27fde (patch)
tree9c40b519bff8a84c948b9343367763781cb64454 /src/video_core/pica.h
parentMemory: Sort memory region variables by VAddr (diff)
downloadyuzu-28a9e4c1d55c66e99b5cf16fda00dcb75ab27fde.tar
yuzu-28a9e4c1d55c66e99b5cf16fda00dcb75ab27fde.tar.gz
yuzu-28a9e4c1d55c66e99b5cf16fda00dcb75ab27fde.tar.bz2
yuzu-28a9e4c1d55c66e99b5cf16fda00dcb75ab27fde.tar.lz
yuzu-28a9e4c1d55c66e99b5cf16fda00dcb75ab27fde.tar.xz
yuzu-28a9e4c1d55c66e99b5cf16fda00dcb75ab27fde.tar.zst
yuzu-28a9e4c1d55c66e99b5cf16fda00dcb75ab27fde.zip
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r--src/video_core/pica.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index 4c48b6bf7..e4a91058c 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -998,15 +998,4 @@ union CommandHeader {
BitField<31, 1, u32> group_commands;
};
-// TODO: Ugly, should fix PhysicalToVirtualAddress instead
-inline static u32 PAddrToVAddr(u32 addr) {
- if (addr >= Memory::VRAM_PADDR && addr < Memory::VRAM_PADDR + Memory::VRAM_SIZE) {
- return addr - Memory::VRAM_PADDR + Memory::VRAM_VADDR;
- } else if (addr >= Memory::FCRAM_PADDR && addr < Memory::FCRAM_PADDR + Memory::FCRAM_SIZE) {
- return addr - Memory::FCRAM_PADDR + Memory::LINEAR_HEAP_VADDR;
- } else {
- return 0;
- }
-}
-
} // namespace