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

layers: Fix check for VUID-07908 #6931

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

Conversation

aitor-lunarg
Copy link
Contributor

Extension and api version was missing from the check

@aitor-lunarg aitor-lunarg requested a review from a team as a code owner November 9, 2023 22:21
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 80388.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 14455 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 14455 passed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 82144.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 82146.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 82174.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 14494 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 14494 passed.

@@ -3680,8 +3679,11 @@ TEST_F(NegativeDynamicRendering, FragmentDensityMapAttachmentLayerCount) {
VK_FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT)) {
GTEST_SKIP() << "VK_FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT not supported";
}
if (!multiview_features.multiview) {
GTEST_SKIP() << "Test requires (unsupported) multiview";
if (multiview_features.multiview || physDevProps().apiVersion >= VK_API_VERSION_1_1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

ok, so for these we have done

    SetTargetApiVersion(VK_API_VERSION_1_0);
    AddRequiredExtensions(VK_EXT_FRAGMENT_DENSITY_MAP_EXTENSION_NAME);
    RETURN_IF_SKIP(InitFramework())

    if (DeviceValidationVersion() != VK_API_VERSION_1_0) {
        GTEST_SKIP() << "Tests for 1.0 only";
    }

there is no need to query VkPhysicalDeviceMultiviewFeatures if we are not enabling the extension so that line can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Applied the changed.

There's one minor comment. I believe this VUID is either malformed or adds nothing. Mainly because the VUID is only present with dynamic rendering which requires multiview, so multiview extension will always be enabled. Shouldn't the VUID check for the feature support instead of extension being enabled? The VUID states:
If VK_KHR_multiview is not enabled, but shouldn't it be If VkPhysicalDeviceMultiviewFeatures.multiview is VK_FALSE?

Copy link
Contributor

Choose a reason for hiding this comment

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

there is a good chance it adds no value, we have found a few VUs that are really just caught elsewhere, but were hard to tell with the old ifdef hell in the spec

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://gitlab.khronos.org/vulkan/vulkan/-/issues/3714
I'll wait for the resolution of that issue before we move in any direction in VVL

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 87124.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 14608 running.

Extension and api version was missing from the check
Remove VUID-07908 from
NegativeDynamicRendering.RenderingFragmentDensityMapAttachment
Account for VUID-07908 changes in
NegativeDynamicRendering.FragmentDensityMapAttachmentLayerCount
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 87137.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 14609 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 14609 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.

3 participants