drv: Add new bo_release driver callback.
The current bo_destroy callback only gets called if the bo has the
last references to the GEM BOs, and otherwise plain free gets
However, this is an issue if bo->priv contains something per bo that
needs to be cleaned up. To solve this we introduce a new callback
to clean up things per bo instance.
TEST=none for this patch. See follow-on patch making use of this.
Tested-by: Bas Nieuwenhuizen <email@example.com>
Reviewed-by: Yiwei Zhang <firstname.lastname@example.org>
Commit-Queue: Bas Nieuwenhuizen <email@example.com>
2 files changed