diff --git a/src/vulkan/runtime/vk_object.c b/src/vulkan/runtime/vk_object.c index 8a4aaae2664..7015342924e 100644 --- a/src/vulkan/runtime/vk_object.c +++ b/src/vulkan/runtime/vk_object.c @@ -38,9 +38,9 @@ vk_object_base_init(struct vk_device *device, { base->_loader_data.loaderMagic = ICD_LOADER_MAGIC; base->type = obj_type; + base->client_visible = false; base->device = device; base->instance = NULL; - base->client_visible = false; base->object_name = NULL; util_sparse_array_init(&base->private_data, sizeof(uint64_t), 8); } @@ -51,9 +51,9 @@ void vk_object_base_instance_init(struct vk_instance *instance, { base->_loader_data.loaderMagic = ICD_LOADER_MAGIC; base->type = obj_type; + base->client_visible = false; base->device = NULL; base->instance = instance; - base->client_visible = false; base->object_name = NULL; util_sparse_array_init(&base->private_data, sizeof(uint64_t), 8); } diff --git a/src/vulkan/runtime/vk_object.h b/src/vulkan/runtime/vk_object.h index c95d6d90032..c94c7050215 100644 --- a/src/vulkan/runtime/vk_object.h +++ b/src/vulkan/runtime/vk_object.h @@ -50,6 +50,9 @@ struct vk_object_base { */ VkObjectType type; + /* True if this object is fully constructed and visible to the client */ + bool client_visible; + /** Pointer to the device in which this object exists, if any * * This is NULL for instances and physical devices but should point to a @@ -66,9 +69,6 @@ struct vk_object_base { */ struct vk_instance *instance; - /* True if this object is fully constructed and visible to the client */ - bool client_visible; - /* For VK_EXT_private_data */ struct util_sparse_array private_data;