[vulkan] Adjusted QueryReset's

This commit is contained in:
CamilleLaVey
2026-03-05 20:47:08 -04:00
committed by lizzie
parent 33f1fb1cf4
commit c931de0570
3 changed files with 10 additions and 2 deletions
@@ -60,8 +60,6 @@ public:
void Reset() override {
ASSERT(references == 0);
VideoCommon::BankBase::Reset();
const auto& dev = device.GetLogical();
dev.ResetQueryPool(*query_pool, 0, BANK_SIZE);
host_results.fill(0ULL);
next_bank = 0;
}
@@ -441,6 +439,10 @@ private:
}
current_bank = &bank_pool.GetBank(current_bank_id);
current_query_pool = current_bank->GetInnerPool();
scheduler.RequestOutsideRenderPassOperationContext();
scheduler.Record([query_pool = current_query_pool](vk::CommandBuffer cmdbuf) {
cmdbuf.ResetQueryPool(query_pool, 0, SamplesQueryBank::BANK_SIZE);
});
}
size_t ReserveBankSlot() {