From 6514eaa78084be9c992cd7d04e27d6b855114e78 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 8 Jun 2014 11:25:10 -0700 Subject: [PATCH] Disabling paged resource caching for now, as it's broken. --- src/xenia/gpu/buffer_resource.cc | 7 ++++--- src/xenia/gpu/resource_cache.cc | 3 +++ src/xenia/gpu/texture_resource.cc | 7 ++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/xenia/gpu/buffer_resource.cc b/src/xenia/gpu/buffer_resource.cc index 9f9accb9b..949bfe02b 100644 --- a/src/xenia/gpu/buffer_resource.cc +++ b/src/xenia/gpu/buffer_resource.cc @@ -30,9 +30,10 @@ int BufferResource::Prepare() { } } - if (!dirtied_) { - return 0; - } + // DISABLED + //if (!dirtied_) { + // return 0; + //} dirtied_ = false; // pass dirty regions? diff --git a/src/xenia/gpu/resource_cache.cc b/src/xenia/gpu/resource_cache.cc index c317a12be..46eec8f0b 100644 --- a/src/xenia/gpu/resource_cache.cc +++ b/src/xenia/gpu/resource_cache.cc @@ -118,6 +118,9 @@ void ResourceCache::SyncRange(uint32_t address, int length) { // will not be changing, which allows us to do a foreach(res) and reload // and then clear the table. + // DISABLED + return; + // total bytes = (512 * 1024 * 1024) / (16 * 1024) = 32768 // each byte = 1 page // Walk as qwords so we can clear things up faster. diff --git a/src/xenia/gpu/texture_resource.cc b/src/xenia/gpu/texture_resource.cc index d063acc56..e7cfdee0d 100644 --- a/src/xenia/gpu/texture_resource.cc +++ b/src/xenia/gpu/texture_resource.cc @@ -292,9 +292,10 @@ int TextureResource::Prepare() { } } - if (!dirtied_) { - return 0; - } + // DISABLED + //if (!dirtied_) { + // return 0; + //} dirtied_ = false; // pass dirty regions?