mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-26 08:11:22 -08:00
Clang Format.
This commit is contained in:
parent
ea535d9470
commit
f9d5718c4b
@ -117,12 +117,10 @@ public:
|
|||||||
void Query(GPUVAddr gpu_addr, VideoCore::QueryType type, std::optional<u64> timestamp) {
|
void Query(GPUVAddr gpu_addr, VideoCore::QueryType type, std::optional<u64> timestamp) {
|
||||||
std::unique_lock lock{mutex};
|
std::unique_lock lock{mutex};
|
||||||
auto& memory_manager = system.GPU().MemoryManager();
|
auto& memory_manager = system.GPU().MemoryManager();
|
||||||
const std::optional<VAddr> cpu_addr_opt =
|
const std::optional<VAddr> cpu_addr_opt = memory_manager.GpuToCpuAddress(gpu_addr);
|
||||||
memory_manager.GpuToCpuAddress(gpu_addr);
|
|
||||||
ASSERT(cpu_addr_opt);
|
ASSERT(cpu_addr_opt);
|
||||||
VAddr cpu_addr = *cpu_addr_opt;
|
VAddr cpu_addr = *cpu_addr_opt;
|
||||||
|
|
||||||
|
|
||||||
CachedQuery* query = TryGet(cpu_addr);
|
CachedQuery* query = TryGet(cpu_addr);
|
||||||
if (!query) {
|
if (!query) {
|
||||||
ASSERT_OR_EXECUTE(cpu_addr_opt, return;);
|
ASSERT_OR_EXECUTE(cpu_addr_opt, return;);
|
||||||
@ -221,9 +219,8 @@ private:
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
auto& contents = it->second;
|
auto& contents = it->second;
|
||||||
const auto found =
|
const auto found = std::find_if(std::begin(contents), std::end(contents),
|
||||||
std::find_if(std::begin(contents), std::end(contents),
|
[addr](auto& query) { return query.GetCpuAddr() == addr; });
|
||||||
[addr](auto& query) { return query.GetCpuAddr() == addr; });
|
|
||||||
return found != std::end(contents) ? &*found : nullptr;
|
return found != std::end(contents) ? &*found : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user