vulkan/wsi/wayland: avoid useless re-allocations when receiving per-surface dma-buf...
authorLeandro Ribeiro <leandro.ribeiro@collabora.com>
Sun, 16 Oct 2022 19:37:47 +0000 (16:37 -0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Oct 2022 12:15:37 +0000 (12:15 +0000)
commit3b7d977f764201fd9e526b161f7044da6d5e33ba
tree92e8cef6a892a2ad47edf7f947de972a1b84b138
parentdf776419934bf7bd2e245a17118190b9d98df89b
vulkan/wsi/wayland: avoid useless re-allocations when receiving per-surface dma-buf feedback

It's not just because we received dma-buf feedback that we should
re-allocate, as sometimes it is useless.

We must compare the most recent allocation parameters used and the ones
that we have with the newest feedback. So do that.

Reviewed-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12226>
src/vulkan/wsi/wsi_common_wayland.c