1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d11] Add implicit flush after tracking sequence numbers

Flushing early when using a tracked resource may reduce stalls.
This commit is contained in:
Philip Rebohle 2022-02-16 20:49:00 +01:00
parent 2dfdc5ac3b
commit 34fd16b8f2
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -735,12 +735,16 @@ namespace dxvk {
D3D11CommonTexture* pResource,
UINT Subresource) {
pResource->TrackSequenceNumber(Subresource, m_csSeqNum + 1);
FlushImplicit(TRUE);
}
void D3D11ImmediateContext::TrackBufferSequenceNumber(
D3D11Buffer* pResource) {
pResource->TrackSequenceNumber(m_csSeqNum + 1);
FlushImplicit(TRUE);
}