venus: Add macros VN_SET_CORE_*
authorChad Versace <chadversary@chromium.org>
Fri, 26 Aug 2022 22:29:03 +0000 (15:29 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 14 Sep 2022 15:32:22 +0000 (15:32 +0000)
commitca687bc2635c262fbdf94cd5cdeb28421aa49684
tree41b42a011446e62feb3b4d47e458fd338cf657f0
parent5932358447fe6516c1403bdfd71327dd15e4452c
venus: Add macros VN_SET_CORE_*

Used to refactor vn_physical_device.c.  The new code easier to read and
has less duplication.

Signed-off-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18158>
src/virtio/vulkan/vn_physical_device.c