|
|
@ -135,9 +135,11 @@ public:
|
|
|
|
/// Updates counters from GPU state. Expected to be called once per draw, clear or dispatch.
|
|
|
|
/// Updates counters from GPU state. Expected to be called once per draw, clear or dispatch.
|
|
|
|
void UpdateCounters() {
|
|
|
|
void UpdateCounters() {
|
|
|
|
std::unique_lock lock{mutex};
|
|
|
|
std::unique_lock lock{mutex};
|
|
|
|
|
|
|
|
if (maxwell3d) {
|
|
|
|
const auto& regs = maxwell3d->regs;
|
|
|
|
const auto& regs = maxwell3d->regs;
|
|
|
|
Stream(VideoCore::QueryType::SamplesPassed).Update(regs.samplecnt_enable);
|
|
|
|
Stream(VideoCore::QueryType::SamplesPassed).Update(regs.samplecnt_enable);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// Resets a counter to zero. It doesn't disable the query after resetting.
|
|
|
|
/// Resets a counter to zero. It doesn't disable the query after resetting.
|
|
|
|
void ResetCounter(VideoCore::QueryType type) {
|
|
|
|
void ResetCounter(VideoCore::QueryType type) {
|
|
|
|