Recheck API version in terminator_CreateInstance
authorCharles Giessen <charles@lunarg.com>
Thu, 3 Nov 2022 17:37:15 +0000 (11:37 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 11 Nov 2022 22:20:51 +0000 (15:20 -0700)
commita2242f4a4b6284261ad6224665e190a6355b5c4e
tree687c0a9f458cf554fb0c21a48bc6b597c18db35c
parent349d85168a0d0afbf1cb81ab2c8da6b1e3f09122
Recheck API version in terminator_CreateInstance

Layers are liable of changing the API version during the call down
vkCreateInstance. Certain layers use the guarantees of 1.1 to allow
using VK_KHR_get_physical_device_properties2 functionality. This
commit checks and assignes a new API version if it was modified.

Add tests for when the application forgets to enable 1.1 and when
a layer enabled 1.1 on behalf of the application.
loader/loader.c
tests/framework/layer/test_layer.cpp
tests/framework/layer/test_layer.h
tests/loader_phys_dev_inst_ext_tests.cpp