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

Add missing swapchain maintenance validation #9107

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ziga-lunarg
Copy link
Contributor

Closes #9099

@ziga-lunarg ziga-lunarg requested a review from a team as a code owner December 28, 2024 21:48
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 333769.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18467 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 333786.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18468 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18468 failed.

Copy link
Contributor

@spencer-lunarg spencer-lunarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 336756.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18499 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18499 failed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 336815.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18502 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18502 failed.

@spencer-lunarg
Copy link
Contributor

@ziga-lunarg rebase and I will look into CI failures (don't want these to go stale)

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 343529.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18621 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18621 failed.

@@ -1875,6 +1875,7 @@ TEST_F(NegativeWsi, SwapchainMaintenance1ExtensionAcquire) {
AddRequiredExtensions(VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME);
AddRequiredExtensions(VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME);
AddSurfaceExtension();
AddRequiredFeature(vkt::Feature::swapchainMaintenance1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is needed for PositiveWsi.CreateSwapchainWithPresentModeInfo and PositiveWsi.PresentFenceWaitsForSubmission

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 343638.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18626 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18626 aborted.

@@ -1351,6 +1352,7 @@ TEST_F(PositiveWsi, PresentFenceWaitsForSubmission) {
AddSurfaceExtension();
AddRequiredExtensions(VK_EXT_SURFACE_MAINTENANCE_1_EXTENSION_NAME);
AddRequiredExtensions(VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME);
AddRequiredFeature(vkt::Feature::swapchainMaintenance1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PresentFenceRetiresPresentQueueOperation also needs this

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 345507.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18665 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18665 failed.

TEST_F(NegativeWsi, PresentInfoSwapchainsDifferentPresentModes) {
TEST_DESCRIPTION("Submit VkPresentInfo where one swapchain has VkSwapchainPresentModesCreateInfoEXT and the other does not");

AddRequiredExtensions(VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at CI, the logic in AddRequiredExtensions(VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME); should automatically include VK_KHR_get_physical_device_properties2 but the call under is using vkGetPhysicalDeviceFeatures2

I think the simple fix is just for anything it using Swapchain Maintenance 1 to just include SetTargetApiVersion(VK_API_VERSION_1_1); with it to not hit this issue (there is no way a 1.0 device is going to try and ship this extension)

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.

Missing VK_EXT_swapchain_maintenance1
3 participants