Skip to content

Move vkCreateDevice lock into loader_layer_create_device - #2054

Merged
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:move_create_device_lock
Oct 11, 2026
Merged

charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:move_create_device_lock

Conversation

@charles-lunarg

Copy link
Copy Markdown
Collaborator

This allows layers that are calling loader_layer_create_device directly to be synchronized correctly.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 152482.

@charles-lunarg charles-lunarg linked an issue Oct 11, 2026 that may be closed by this pull request
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 152499.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3813 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3813 passed.

@charles-lunarg
charles-lunarg force-pushed the move_create_device_lock branch from 39e2f51 to 74d53e3 Compare October 11, 2026 05:50
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 152585.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 152602.

@charles-lunarg
charles-lunarg force-pushed the move_create_device_lock branch from 74d53e3 to c685d27 Compare October 11, 2026 05:54
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 152603.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3816 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 152639.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3817 running.

This allows layers that are calling loader_layer_create_device and
loader_layer_destroy to be synchronized correctly.

Added a threading test that catches the issue when the changes aren't
present. Required minor refactoring in the test_layer to work -
specifically moving the next_vkGetDeviceProcAddr into the Device struct.
@charles-lunarg
charles-lunarg force-pushed the move_create_device_lock branch from c685d27 to e08244c Compare October 11, 2026 06:04
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 152658.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3818 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 152677.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3819 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3819 passed.

@charles-lunarg
charles-lunarg merged commit 6b45d76 into KhronosGroup:main Oct 11, 2026
52 checks passed
@charles-lunarg
charles-lunarg deleted the move_create_device_lock branch October 11, 2026 06:19
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.

Guarantees regarding dispatch table pointer reuse

2 participants