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:
parent
6554ca8f9e
commit
0f933fee8b
@ -6008,11 +6008,13 @@ namespace dxvk {
|
|||||||
void D3D9DeviceEx::End(D3D9Query* pQuery) {
|
void D3D9DeviceEx::End(D3D9Query* pQuery) {
|
||||||
D3D9DeviceLock lock = LockDevice();
|
D3D9DeviceLock lock = LockDevice();
|
||||||
|
|
||||||
|
pQuery->NotifyEnd();
|
||||||
if (unlikely(pQuery->IsEvent())) {
|
if (unlikely(pQuery->IsEvent())) {
|
||||||
pQuery->NotifyEnd();
|
|
||||||
pQuery->IsStalling()
|
pQuery->IsStalling()
|
||||||
? Flush()
|
? Flush()
|
||||||
: FlushImplicit(TRUE);
|
: FlushImplicit(TRUE);
|
||||||
|
} else if (pQuery->IsStalling()) {
|
||||||
|
FlushImplicit(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
EmitCs([cQuery = Com<D3D9Query, false>(pQuery)](DxvkContext* ctx) {
|
EmitCs([cQuery = Com<D3D9Query, false>(pQuery)](DxvkContext* ctx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user