From 3bba38ab71ff56893166f82878f94f9fed0d04d9 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sun, 29 Aug 2021 21:58:57 -0700 Subject: [PATCH] venus: reorder version fields in vn_instance Signed-off-by: Chia-I Wu Reviewed-by: Yiwei Zhang Reviewed-by: Ryan Neph Part-of: --- src/virtio/vulkan/vn_instance.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/virtio/vulkan/vn_instance.h b/src/virtio/vulkan/vn_instance.h index 226cc0e..14e2ac5 100644 --- a/src/virtio/vulkan/vn_instance.h +++ b/src/virtio/vulkan/vn_instance.h @@ -39,17 +39,6 @@ struct vn_instance { struct vn_renderer *renderer; struct vn_renderer_info renderer_info; - /* Between the driver and the app, VN_MAX_API_VERSION is what we advertise - * and base.base.app_info.api_version is what the app requests. - * - * Between the driver and the renderer, renderer_api_version is the api - * version we request internally, which can be higher than - * base.base.app_info.api_version. renderer_version is the instance - * version we can use internally. - */ - uint32_t renderer_api_version; - uint32_t renderer_version; - /* to synchronize renderer/ring */ mtx_t roundtrip_mutex; uint32_t roundtrip_next; @@ -71,6 +60,17 @@ struct vn_instance { void *ptr; } reply; + /* Between the driver and the app, VN_MAX_API_VERSION is what we advertise + * and base.base.app_info.api_version is what the app requests. + * + * Between the driver and the renderer, renderer_api_version is the api + * version we request internally, which can be higher than + * base.base.app_info.api_version. renderer_version is the instance + * version we can use internally. + */ + uint32_t renderer_api_version; + uint32_t renderer_version; + struct { mtx_t mutex; bool initialized; -- 2.7.4