early-access version 2911

This commit is contained in:
pineappleEA
2022-08-20 19:03:20 +02:00
parent f8139dd06e
commit 2eb5b7b57e
10 changed files with 219 additions and 17 deletions
+4 -2
View File
@@ -135,8 +135,10 @@ public:
/// Updates counters from GPU state. Expected to be called once per draw, clear or dispatch.
void UpdateCounters() {
std::unique_lock lock{mutex};
const auto& regs = maxwell3d->regs;
Stream(VideoCore::QueryType::SamplesPassed).Update(regs.samplecnt_enable);
if (maxwell3d) {
const auto& regs = maxwell3d->regs;
Stream(VideoCore::QueryType::SamplesPassed).Update(regs.samplecnt_enable);
}
}
/// Resets a counter to zero. It doesn't disable the query after resetting.