Module: Mesa
Branch: master
Commit: 548e41aed129904483f821a8fc5ee17f62cacde5
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=548e41aed129904483f821a8fc5ee17f62cacde5

Author: Dave Airlie <[email protected]>
Date:   Mon Mar  1 13:07:10 2021 +1000

zink/instance: work with vulkan 1.0 and later loader.

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 <[email protected]>
Reviewed-By: Mike Blumenkrantz <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9075>

---

 src/gallium/drivers/zink/zink_instance.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_instance.py 
b/src/gallium/drivers/zink/zink_instance.py
index d26dedc9b5b..5a7f91a37e6 100644
--- a/src/gallium/drivers/zink/zink_instance.py
+++ b/src/gallium/drivers/zink/zink_instance.py
@@ -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)

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to