Don't fetch AMD counters when no AMD counter is required.

This commit is contained in:
Matthäus G. Chajdas
2017-08-18 13:36:55 +02:00
committed by baldurk
parent ba4c9d6837
commit 7d15d75638
+4 -1
View File
@@ -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};