From 6db0ad663b74335d06b48e5b8e07bdd5eb5c329d Mon Sep 17 00:00:00 2001 From: Triang3l Date: Fri, 5 Apr 2019 15:23:10 +0300 Subject: [PATCH] [D3D12] mb_used -> used_mb in the profiler --- src/xenia/gpu/d3d12/shared_memory.cc | 4 ++-- src/xenia/gpu/d3d12/texture_cache.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xenia/gpu/d3d12/shared_memory.cc b/src/xenia/gpu/d3d12/shared_memory.cc index c74e698fe..662d7756c 100644 --- a/src/xenia/gpu/d3d12/shared_memory.cc +++ b/src/xenia/gpu/d3d12/shared_memory.cc @@ -155,7 +155,7 @@ void SharedMemory::Shutdown() { ui::d3d12::util::ReleaseAndNull(heaps_[i]); } heap_count_ = 0; - COUNT_profile_set("gpu/shared_memory/mb_used", 0); + COUNT_profile_set("gpu/shared_memory/used_mb", 0); } } @@ -310,7 +310,7 @@ bool SharedMemory::MakeTilesResident(uint32_t start, uint32_t length) { return false; } ++heap_count_; - COUNT_profile_set("gpu/shared_memory/mb_used", + COUNT_profile_set("gpu/shared_memory/used_mb", heap_count_ << kHeapSizeLog2 >> 20); D3D12_TILED_RESOURCE_COORDINATE region_start_coordinates; region_start_coordinates.X = diff --git a/src/xenia/gpu/d3d12/texture_cache.cc b/src/xenia/gpu/d3d12/texture_cache.cc index 955b247c7..ca56e7f14 100644 --- a/src/xenia/gpu/d3d12/texture_cache.cc +++ b/src/xenia/gpu/d3d12/texture_cache.cc @@ -685,7 +685,7 @@ void TextureCache::Shutdown() { ui::d3d12::util::ReleaseAndNull(scaled_resolve_heaps_[i]); } scaled_resolve_heap_count_ = 0; - COUNT_profile_set("gpu/texture_cache/scaled_resolve_buffer_mb_used", 0); + COUNT_profile_set("gpu/texture_cache/scaled_resolve_buffer_used_mb", 0); } void TextureCache::ClearCache() { @@ -1455,7 +1455,7 @@ bool TextureCache::EnsureScaledResolveBufferResident(uint32_t start_unscaled, } ++scaled_resolve_heap_count_; COUNT_profile_set( - "gpu/texture_cache/scaled_resolve_buffer_mb_used", + "gpu/texture_cache/scaled_resolve_buffer_used_mb", scaled_resolve_heap_count_ << (kScaledResolveHeapSizeLog2 - 20)); D3D12_TILED_RESOURCE_COORDINATE region_start_coordinates; region_start_coordinates.X = (i << kScaledResolveHeapSizeLog2) /