panvk: Merge identical BO entries before submitting a job
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 3 Sep 2021 13:26:53 +0000 (15:26 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 21 Sep 2021 13:00:12 +0000 (15:00 +0200)
commitb0eaaf90f3e145c65e0fe5649bd84e0cc94ee7b1
tree58fc8c2c8ac397ae2f5059e0de1b162e0fa19c33
parent165c26b9e12745f39ba4c03b97b924a53ab308ef
panvk: Merge identical BO entries before submitting a job

This should ideally be filtered when BOs are attached to a batch, but
let's do it in the submit path until then.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12095>
src/panfrost/vulkan/panvk_vX_device.c