Skip to content

asahi: Fix incorrect BO bitmap reallocations

Asahi Lina requested to merge asahilina/mesa:agx/batch-bo-bitmaps into main

asahi: Fix incorrect BO bitmap reallocations

If the BO handle is greater than 2x what fits inside the current bitmap size, then we end up overflowing. Make sure to always reallocate to a large enough bitmap, not just 2x the previous size.

Found while replaying firefox apitraces with looping (which apparently leaks a ton of objects, but that might just be apitrace).

Signed-off-by: Asahi Lina lina@asahilina.net

Merge request reports

Loading