mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Don't fetch AMD counters when no AMD counter is required.
This commit is contained in:
committed by
baldurk
parent
ba4c9d6837
commit
7d15d75638
@@ -456,7 +456,10 @@ vector<CounterResult> D3D11DebugManager::FetchCounters(const vector<GPUCounter>
|
||||
counters.begin(), counters.end(), std::back_inserter(amdCounters),
|
||||
[](const GPUCounter &c) { return c >= GPUCounter::FirstAMD && c < GPUCounter::FirstIntel; });
|
||||
|
||||
ret = FetchCountersAMD(amdCounters);
|
||||
if(!amdCounters.empty())
|
||||
{
|
||||
ret = FetchCountersAMD(amdCounters);
|
||||
}
|
||||
}
|
||||
|
||||
D3D11_QUERY_DESC disjointdesc = {D3D11_QUERY_TIMESTAMP_DISJOINT, 0};
|
||||
|
||||
Reference in New Issue
Block a user