mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +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) {
|
||||
D3D9DeviceLock lock = LockDevice();
|
||||
|
||||
EmitCs([cQuery = Com<D3D9Query, false>(pQuery)](DxvkContext* ctx) {
|
||||
cQuery->End(ctx);
|
||||
});
|
||||
|
||||
pQuery->NotifyEnd();
|
||||
if (unlikely(pQuery->IsEvent())) {
|
||||
pQuery->IsStalling()
|
||||
@ -6016,10 +6020,6 @@ namespace dxvk {
|
||||
} else if (pQuery->IsStalling()) {
|
||||
FlushImplicit(FALSE);
|
||||
}
|
||||
|
||||
EmitCs([cQuery = Com<D3D9Query, false>(pQuery)](DxvkContext* ctx) {
|
||||
cQuery->End(ctx);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user