From ea6c1193fbfa95e586bb6d129dc684163a12cb3e Mon Sep 17 00:00:00 2001 From: Takoroka <137927095+Takoroka@users.noreply.github.com> Date: Thu, 29 Oct 2026 03:39:29 -0400 Subject: Revert "Import experimental NS2 support and accumulated GPU fixes" This reverts commit 535b676970. The Switch 2 support comes from the nx2 work instead, merged next. --- src/video_core/query_cache/query_cache.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/video_core/query_cache/query_cache.h') diff --git a/src/video_core/query_cache/query_cache.h b/src/video_core/query_cache/query_cache.h index c2fefa6695..b8c1bc4f45 100644 --- a/src/video_core/query_cache/query_cache.h +++ b/src/video_core/query_cache/query_cache.h @@ -20,7 +20,6 @@ #include "common/settings.h" #include "video_core/engines/maxwell_3d.h" #include "video_core/gpu.h" -#include "video_core/native_query_trace.h" #include "video_core/host1x/gpu_device_memory_manager.h" #include "video_core/memory_manager.h" #include "video_core/query_cache/bank_base.h" @@ -247,9 +246,6 @@ void QueryCacheBase::CounterReport(GPUVAddr addr, QueryType counter_type return; } DAddr cpu_addr = *cpu_addr_opt; - const bool native_trace = gpu_memory->UsesNativeTiling(); - const u64 trace_asid = gpu_memory->GetID(); - if (native_trace) TraceNativeQuery(0, trace_asid, addr, cpu_addr, static_cast(counter_type), payload, static_cast(flags)); const size_t new_query_id = streamer->WriteCounter(cpu_addr, has_timestamp, payload, subreport); auto* query = streamer->GetQuery(new_query_id); if (is_fence) { @@ -266,16 +262,14 @@ void QueryCacheBase::CounterReport(GPUVAddr addr, QueryType counter_type u8* pointer_timestamp = impl->device_memory.template GetPointer(cpu_addr + 8); bool is_synced = (Settings::IsGPUFenceBehaviorDefault() ? !Settings::IsGPULevelHigh() : !Settings::IsGPUFenceBehaviorBalanced() && !Settings::IsGPUFenceBehaviorAccurate()) && is_fence; std::function operation([this, is_synced, streamer, query_base = query, query_location, - pointer, pointer_timestamp, native_trace, trace_asid, addr, cpu_addr, counter_type] { + pointer, pointer_timestamp] { if (True(query_base->flags & QueryFlagBits::IsInvalidated)) { - if (native_trace) TraceNativeQuery(2, trace_asid, addr, cpu_addr, static_cast(counter_type), query_base->value, static_cast(query_base->flags)); if (!is_synced) [[likely]] { impl->pending_unregister.push_back(query_location); } return; } if (False(query_base->flags & QueryFlagBits::IsFinalValueSynced)) [[unlikely]] { - if (native_trace) TraceNativeQuery(3, trace_asid, addr, cpu_addr, static_cast(counter_type), query_base->value, static_cast(query_base->flags)); LOG_ERROR(HW_GPU, "Query report value not synchronized. Consider increasing GPU accuracy."); if (!is_synced) [[likely]] { @@ -293,7 +287,6 @@ void QueryCacheBase::CounterReport(GPUVAddr addr, QueryType counter_type u32 value = static_cast(query_base->value); std::memcpy(pointer, &value, sizeof(value)); } - if (native_trace) TraceNativeQuery(1, trace_asid, addr, cpu_addr, static_cast(counter_type), query_base->value, static_cast(query_base->flags)); if (!is_synced) [[likely]] { impl->pending_unregister.push_back(query_location); } -- cgit v1.2.3