anv: correctly use vulkan 1.0 by default
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 23 Nov 2018 17:08:28 +0000 (17:08 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Mon, 26 Nov 2018 22:05:02 +0000 (22:05 +0000)
commit56d126f8fd210dbd2c946bfbc2e3c81b04d27d09
tree526091a1d138fef7903a3fa2bd64af45ff1d02e3
parentd6d35d87f1ae8711ddfe6b9c4b5e532617b21054
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@haasn.xyz>
Fixes: 8c048af5890d43578ca4 "anv: Copy the appliation info into the instance"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/intel/vulkan/anv_device.c