mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
d3d12: proactively trim completed pending-free entries
Assisted-by: Claude Opus 4.7 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41322>
This commit is contained in:
parent
955b2672d3
commit
758a0e1ad9
2 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue