zink/instance: work with vulkan 1.0 and later loader.
authorDave Airlie <airlied@redhat.com>
Mon, 1 Mar 2021 03:07:10 +0000 (13:07 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Mar 2021 00:46:04 +0000 (10:46 +1000)
If zink is meant to work against Vulkan 1.0 API then it
should expose the 1.0 API as create time as well as always
ask for all the vulkan 1.0 extensions.

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9075>

src/gallium/drivers/zink/zink_instance.py

index d26dedc..5a7f91a 100644 (file)
@@ -213,7 +213,7 @@ zink_create_instance(struct zink_instance_info *instance_info)
       ai.pApplicationName = "unknown";
 
    ai.pEngineName = "mesa zink";
-   ai.apiVersion = instance_info->loader_version;
+   ai.apiVersion = VK_MAKE_VERSION(1, 0, 0);
 
    VkInstanceCreateInfo ici = {};
    ici.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO;
@@ -318,9 +318,6 @@ if __name__ == "__main__":
                     error_count += 1
                     print("The instance function {} is not added by the extension {}.".format(func, ext.name))
 
-        if entry.promoted_in:
-            ext.core_since = Version((*entry.promoted_in, 0))
-
     if error_count > 0:
         print("zink_instance.py: Found {} error(s) in total. Quitting.".format(error_count))
         exit(1)