1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-11 10:24:10 +01:00

[d3d9] Extend query stall tracking to other query types

This commit is contained in:
Robin Kertels 2020-12-15 20:04:57 +01:00 committed by Joshie
parent 6554ca8f9e
commit 0f933fee8b

View File

@ -6008,11 +6008,13 @@ namespace dxvk {
void D3D9DeviceEx::End(D3D9Query* pQuery) {
D3D9DeviceLock lock = LockDevice();
pQuery->NotifyEnd();
if (unlikely(pQuery->IsEvent())) {
pQuery->NotifyEnd();
pQuery->IsStalling()
? Flush()
: FlushImplicit(TRUE);
} else if (pQuery->IsStalling()) {
FlushImplicit(FALSE);
}
EmitCs([cQuery = Com<D3D9Query, false>(pQuery)](DxvkContext* ctx) {