Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only return pre-instance functions when instance is NULL #692

Conversation

charles-lunarg
Copy link
Collaborator

@charles-lunarg charles-lunarg commented Sep 21, 2021

vkGetInstanceProcAddr should only return the pre-instance, aka global
functions, when the VkInstance handle is NULL. This brings the desktop
vulkan loader into alignment on the spec and with the android loader. See:
KhronosGroup/Vulkan-Docs#1605

This repo previously did follow the rule, but was changed in the
1.0.42 header version timeframe for unknown reasons.

Fixes #692

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 39320.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 680 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 680 failed.

@charles-lunarg charles-lunarg force-pushed the disallow_global_function_getting_with_non_null_instance branch from f85a8ca to c69b4a4 Compare September 21, 2021 22:43
@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 39329.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 681 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 681 failed.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 1126.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 758 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 758 failed.

vkGetInstanceProcAddr should only return the pre-instance, aka global
functions, when the VkInstance handle is NULL. This brings the desktop
vulkan loader into alignment on the spec and with the android loader.
KhronosGroup/Vulkan-Docs#1605

The repo previously did follow this rule, but was changes in the
1.0.42 header version timeframe for unknown reasons.
@charles-lunarg charles-lunarg force-pushed the disallow_global_function_getting_with_non_null_instance branch from c69b4a4 to 3da3bb4 Compare October 15, 2021 18:30
@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 1613.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 762 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 762 passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants