mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-02 22:29:16 +01:00
[d3d9] End query before the stall heuristic flush
This commit is contained in:
parent
0f933fee8b
commit
60a2aeb6ef
@ -6008,6 +6008,10 @@ namespace dxvk {
|
|||||||
void D3D9DeviceEx::End(D3D9Query* pQuery) {
|
void D3D9DeviceEx::End(D3D9Query* pQuery) {
|
||||||
D3D9DeviceLock lock = LockDevice();
|
D3D9DeviceLock lock = LockDevice();
|
||||||
|
|
||||||
|
EmitCs([cQuery = Com<D3D9Query, false>(pQuery)](DxvkContext* ctx) {
|
||||||
|
cQuery->End(ctx);
|
||||||
|
});
|
||||||
|
|
||||||
pQuery->NotifyEnd();
|
pQuery->NotifyEnd();
|
||||||
if (unlikely(pQuery->IsEvent())) {
|
if (unlikely(pQuery->IsEvent())) {
|
||||||
pQuery->IsStalling()
|
pQuery->IsStalling()
|
||||||
@ -6016,10 +6020,6 @@ namespace dxvk {
|
|||||||
} else if (pQuery->IsStalling()) {
|
} else if (pQuery->IsStalling()) {
|
||||||
FlushImplicit(FALSE);
|
FlushImplicit(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
EmitCs([cQuery = Com<D3D9Query, false>(pQuery)](DxvkContext* ctx) {
|
|
||||||
cQuery->End(ctx);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user