X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Famd%2Fvulkan%2Fradv_private.h;h=6b54a8ad60011d04923494e156b45fe40dcf07bd;hb=b1ef1c1211373f9336aaf87de865ef7f0c29fc44;hp=5da166c7b2f72d1dadec203af7740deee64509e9;hpb=24f9aea770711c8b968177b6e4ff15d8fb8fb48e;p=mesa.git diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 5da166c7b2f..6b54a8ad600 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -284,6 +284,9 @@ void *radv_lookup_entrypoint(const char *name); struct radv_physical_device { VK_LOADER_DATA _loader_data; + /* Link in radv_instance::physical_devices */ + struct list_head link; + struct radv_instance * instance; struct radeon_winsys *ws; @@ -342,8 +345,6 @@ struct radv_instance { VkAllocationCallbacks alloc; uint32_t apiVersion; - int physicalDeviceCount; - struct radv_physical_device physicalDevices[RADV_MAX_DRM_DEVICES]; char * engineName; uint32_t engineVersion; @@ -359,6 +360,9 @@ struct radv_instance { struct radv_physical_device_dispatch_table physical_device_dispatch; struct radv_device_dispatch_table device_dispatch; + bool physical_devices_enumerated; + struct list_head physical_devices; + struct driOptionCache dri_options; struct driOptionCache available_dri_options; };