Module: Mesa Branch: main Commit: dc858202a9c1cee4a1b634b71d4c3bf8f89af54d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc858202a9c1cee4a1b634b71d4c3bf8f89af54d
Author: Lionel Landwerlin <[email protected]> Date: Mon Dec 11 12:50:52 2023 +0200 anv: get features after initializing drm We'll want to capture properties like features, just once at initialization. In order to do this we need the DRM stuff to be initialized as some of that can be reported in properties. Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Ivan Briano <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26632> --- src/intel/vulkan/anv_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index d4c8e31140d..ae285b83110 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1509,9 +1509,6 @@ anv_physical_device_try_create(struct vk_instance *vk_instance, anv_physical_device_init_perf(device, fd); - get_device_extensions(device, &device->vk.supported_extensions); - get_features(device, &device->vk.supported_features); - /* Gather major/minor before WSI. */ struct stat st; @@ -1535,6 +1532,9 @@ anv_physical_device_try_create(struct vk_instance *vk_instance, device->local_minor = 0; } + get_device_extensions(device, &device->vk.supported_extensions); + get_features(device, &device->vk.supported_features); + result = anv_init_wsi(device); if (result != VK_SUCCESS) goto fail_perf;
