Repository navigation
layers: Validate 06616/06617 with independent sets - #13208
Conversation
|
Author apollo-2006 not on autobuild list. Waiting for curator authorization before starting CI build. |
36ed45c to
89c3175
Compare
|
Author apollo-2006 not on autobuild list. Waiting for curator authorization before starting CI build. |
| link_info.libraryCount = size32(libraries); | ||
| link_info.pLibraries = libraries; | ||
|
|
||
| m_errorMonitor->SetDesiredError("VUID-VkGraphicsPipelineCreateInfo-pLibraries-06617"); |
There was a problem hiding this comment.
can you add a test for 06616 as well
There was a problem hiding this comment.
Added IndependentSetsDifferentSetLayoutFlags, which creates the fragment shader library while linking the pre-raster one.
| : "VUID-VkGraphicsPipelineCreateInfo-flags-06612") | ||
| : (only_libs ? "VUID-VkGraphicsPipelineCreateInfo-pLibraries-06617" | ||
| : "VUID-VkGraphicsPipelineCreateInfo-flags-06616"); | ||
| const char* header_str = |
There was a problem hiding this comment.
I rather not allocate this string every pipeline creation and defer this to only when things actually fail (the worse case)
There was a problem hiding this comment.
It was a pointer to a string literal, but it's now a lambda that only runs when an error is reported (better this way, I think)
89c3175 to
815ea4a
Compare
|
Author apollo-2006 not on autobuild list. Waiting for curator authorization before starting CI build. |
|
|
||
| vkt::Buffer uniform_texel_buffer(*m_device, 16, VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT, kHostVisibleMemProps); | ||
| vkt::BufferView uniform_buffer_view(*m_device, uniform_texel_buffer, VK_FORMAT_R32_SFLOAT); | ||
| vkt::Sampler sampler(*m_device, SafeSaneSamplerCreateInfo()); |
There was a problem hiding this comment.
so GPLIndependentSetsUnusedSets runs on the latest Lavapipe with latest validation with no issue, what was the original test that was failing for Lavapipe?
There was a problem hiding this comment.
Good catch, I should have said: it's a debug-build assert. merge_layouts compares the set layouts inside #ifndef NDEBUG (lvp_pipeline.c:866), so release lavapipe passes and my debugoptimized build aborted with merge_layouts: Assertion ... layouts_equal(...) failed. The two layouts at index 1 do differ, which is what I understood 06617 to cover.
815ea4a to
c6bcb88
Compare
|
Author apollo-2006 not on autobuild list. Waiting for curator authorization before starting CI build. |
|
CI Vulkan-ValidationLayers build queued with queue ID 131553. |
|
CI Vulkan-ValidationLayers build # 24635 running. |
|
CI Vulkan-ValidationLayers build # 24635 passed. |
With
VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT, the pre-rasterization and fragment shader libraries may leave a setVK_NULL_HANDLEon one side, but set layouts that are non-null in both must still be identically defined (VUID-VkGraphicsPipelineCreateInfo-pLibraries-06617 / flags-06616). The comparison only ran without independent sets, so this was never reported.This runs the same comparison for independent sets and reports 06617/06616. The 06612/06613 message is unchanged apart from a missing
.inpSetLayouts[i].pBindings[j]. The message header is only chosen when an error is reported.Test changes:
NegativeGpuAVDescriptorClassGeneralBuffer.GPLIndependentSetsUnusedSetslinked a storage buffer set against an unused sampler set at index 1, which lavapipe asserts on inmerge_layouts. Its unused set is nowVK_NULL_HANDLE, which is what the test intended. AddsNegativeGraphicsLibrary.IndependentSetsDifferentSetLayout(06617, linking both libraries) andNegativeGraphicsLibrary.IndependentSetsDifferentSetLayoutFlags(06616, the fragment shader library links the pre-raster one while it is created).Found by running the test suite on lavapipe.
New message:
Tested: full suite with the mock ICD and max_profile.json, no failures. All graphics pipeline library tests on lavapipe and RADV (RX 9070 XT), apart from
PositiveGraphicsLibrary.DescriptorHeapPushConstantStages, which segfaults on RADV on main as well.