mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-01 09:57:04 +02:00
Revert "adjusting to query reset pool"
This commit is contained in:
parent
b5dc68ec39
commit
bd3c321aed
1 changed files with 4 additions and 4 deletions
|
|
@ -156,13 +156,12 @@ public:
|
||||||
|
|
||||||
ReserveHostQuery();
|
ReserveHostQuery();
|
||||||
|
|
||||||
scheduler.RequestOutsideRenderPassOperationContext();
|
|
||||||
scheduler.Record([query_pool = current_query_pool,
|
scheduler.Record([query_pool = current_query_pool,
|
||||||
query_index = current_bank_slot](vk::CommandBuffer cmdbuf) {
|
query_index = current_bank_slot](vk::CommandBuffer cmdbuf) {
|
||||||
const bool use_precise = Settings::IsGPULevelHigh();
|
const bool use_precise = Settings::IsGPULevelHigh();
|
||||||
cmdbuf.ResetQueryPool(query_pool, static_cast<u32>(query_index), 1);
|
cmdbuf.ResetQueryPool(query_pool, static_cast<u32>(query_index), 1);
|
||||||
cmdbuf.BeginQuery(query_pool, static_cast<u32>(query_index),
|
cmdbuf.BeginQuery(query_pool, static_cast<u32>(query_index),
|
||||||
use_precise ? VK_QUERY_CONTROL_PRECISE_BIT : 0);
|
use_precise ? VK_QUERY_CONTROL_PRECISE_BIT : 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
has_started = true;
|
has_started = true;
|
||||||
|
|
@ -222,7 +221,8 @@ public:
|
||||||
}
|
}
|
||||||
PauseCounter();
|
PauseCounter();
|
||||||
const auto driver_id = device.GetDriverID();
|
const auto driver_id = device.GetDriverID();
|
||||||
if (driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) {
|
if (driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY ||
|
||||||
|
driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) {
|
||||||
pending_sync.clear();
|
pending_sync.clear();
|
||||||
sync_values_stash.clear();
|
sync_values_stash.clear();
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue