diff --git a/src/gallium/drivers/d3d12/d3d12_batch.cpp b/src/gallium/drivers/d3d12/d3d12_batch.cpp index c23e8dcd71b..61755a3f96f 100644 --- a/src/gallium/drivers/d3d12/d3d12_batch.cpp +++ b/src/gallium/drivers/d3d12/d3d12_batch.cpp @@ -405,6 +405,8 @@ d3d12_end_batch(struct d3d12_context *ctx, struct d3d12_batch *batch) #endif // HAVE_GALLIUM_D3D12_GRAPHICS mtx_unlock(&screen->submit_mutex); + + d3d12_screen_reclaim_completed(screen); } diff --git a/src/gallium/drivers/d3d12/d3d12_bufmgr.cpp b/src/gallium/drivers/d3d12/d3d12_bufmgr.cpp index ad24af6b7f7..859d65b40f2 100644 --- a/src/gallium/drivers/d3d12/d3d12_bufmgr.cpp +++ b/src/gallium/drivers/d3d12/d3d12_bufmgr.cpp @@ -144,6 +144,7 @@ d3d12_bo_new(struct d3d12_screen *screen, uint64_t size, const pb_desc *pb_desc) d3d12_evicted : d3d12_resident; D3D12_HEAP_PROPERTIES heap_pris = GetCustomHeapProperties(dev, heap_type); + d3d12_screen_reclaim_completed(screen); HRESULT hres; do { hres = dev->CreateCommittedResource(&heap_pris,