venus: properly check and fill ahb buffer properties
authorYiwei Zhang <zzyiwei@chromium.org>
Tue, 28 Sep 2021 07:00:13 +0000 (07:00 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Sep 2021 20:41:40 +0000 (20:41 +0000)
commit5a9f907d9484aae6d09e9734ddf0e7951745f534
treed45756aaa3f04fc8486589ce6db30cf03552270d
parent489d3257575f51b2f7322f7bb51171f54bddac17
venus: properly check and fill ahb buffer properties

When it comes to AHB, pExternalBufferInfo->handleType is already
overridden to the renderer handle type. Thus the AHB buffer prop path is
not used. However, this is not caught by cts, vvl or apps because the
host renderer memory features so far satisfy the ahb requirement.

Fixes: ebf0e455063 ("venus: add ahb image and buffer properties query support")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13076>
src/virtio/vulkan/vn_physical_device.c