d3d12: proactively trim completed pending-free entries
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Assisted-by: Claude Opus 4.7
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41322>
This commit is contained in:
Jesse Natalie 2026-05-01 14:53:43 -07:00 committed by Marge Bot
parent 955b2672d3
commit 758a0e1ad9
2 changed files with 3 additions and 0 deletions

View file

@ -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);
}

View file

@ -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,