1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 04:54:15 +01:00

[d3d11] Use sfence before finishing or submitting command list

This commit is contained in:
Philip Rebohle 2025-02-24 23:59:03 +01:00
parent 1c92cc5ffa
commit 6757b5a249
2 changed files with 6 additions and 0 deletions

View File

@ -163,6 +163,9 @@ namespace dxvk {
ID3D11CommandList **ppCommandList) {
D3D10DeviceLock lock = LockContext();
// Make writes to mapped buffers available
bit::sfence();
// End all queries that were left active by the app
FinalizeQueries();

View File

@ -1105,6 +1105,9 @@ namespace dxvk {
if (!GetPendingCsChunks() && !hEvent)
return;
// Make writes to mapped buffers available
bit::sfence();
// Unbind unused resources
ApplyDirtyNullBindings();