mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +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:
parent
2dfdc5ac3b
commit
34fd16b8f2
@ -735,12 +735,16 @@ namespace dxvk {
|
|||||||
D3D11CommonTexture* pResource,
|
D3D11CommonTexture* pResource,
|
||||||
UINT Subresource) {
|
UINT Subresource) {
|
||||||
pResource->TrackSequenceNumber(Subresource, m_csSeqNum + 1);
|
pResource->TrackSequenceNumber(Subresource, m_csSeqNum + 1);
|
||||||
|
|
||||||
|
FlushImplicit(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void D3D11ImmediateContext::TrackBufferSequenceNumber(
|
void D3D11ImmediateContext::TrackBufferSequenceNumber(
|
||||||
D3D11Buffer* pResource) {
|
D3D11Buffer* pResource) {
|
||||||
pResource->TrackSequenceNumber(m_csSeqNum + 1);
|
pResource->TrackSequenceNumber(m_csSeqNum + 1);
|
||||||
|
|
||||||
|
FlushImplicit(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user