Mesa (staging/18.3): anv: correctly use vulkan 1.0 by default

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 27 18:02:33 UTC 2018


Module: Mesa
Branch: staging/18.3
Commit: a32c568d39eb51b21cd9abecaabb77b676a5de35
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a32c568d39eb51b21cd9abecaabb77b676a5de35

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Fri Nov 23 17:08:28 2018 +0000

anv: correctly use vulkan 1.0 by default

Per chapter 3.2 "Instances":
> Providing a NULL VkInstanceCreateInfo::pApplicationInfo or providing
> an apiVersion of 0 is equivalent to providing an apiVersion of
> VK_MAKE_VERSION(1,0,0).

Reported-by: Niklas Haas <git at haasn.xyz>
Fixes: 8c048af5890d43578ca4 "anv: Copy the appliation info into the instance"
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
(cherry picked from commit 56d126f8fd210dbd2c946bfbc2e3c81b04d27d09)

---

 src/intel/vulkan/anv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index ee35e01332..924470b300 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -636,7 +636,7 @@ VkResult anv_CreateInstance(
    }
 
    if (instance->app_info.api_version == 0)
-      anv_EnumerateInstanceVersion(&instance->app_info.api_version);
+      instance->app_info.api_version = VK_API_VERSION_1_0;
 
    instance->enabled_extensions = enabled_extensions;
 




More information about the mesa-commit mailing list