aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-11-23 17:08:28 +0000
committerEric Engestrom <[email protected]>2018-11-26 22:05:02 +0000
commit56d126f8fd210dbd2c946bfbc2e3c81b04d27d09 (patch)
tree526091a1d138fef7903a3fa2bd64af45ff1d02e3 /src/intel/vulkan
parentd6d35d87f1ae8711ddfe6b9c4b5e532617b21054 (diff)
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 <[email protected]> Fixes: 8c048af5890d43578ca4 "anv: Copy the appliation info into the instance" Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 20533cb3cc0..6b5ba25c6bc 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;