tests: with a Vulkan validation layer older than the repo's headers, agc_driver_image_table* fail on main from VUID-VkDeviceCreateInfo-pNext-pNext (unknown VK_KHR_shader_fma / VK_KHR_maintenance8 structs) #17693
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Doorriiaann on 2026-11-09T10:16:32Z.
What happens
With the validation layer packaged by Debian 13 (1.4.309) or Ubuntu 24.04 (1.3.275), the GPU-test procedure in AGENTS.md/CONTRIBUTING.md fails tests on plain
main: the layer does not know theVkDeviceCreateInfopNext structs the driver chains on NVIDIA (VK_KHR_shader_fma, and on 1.3.275 alsoVK_KHR_maintenance8), logsVUID-VkDeviceCreateInfo-pNext-pNext, and the tests that fail on aVUID-line fail.Title, test or build step
ctest with
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation: agc_driver_image_table, agc_driver_image_table_packed, agc_driver_image_table_packed_{load_sgn,load_mip,load_mip_sgn,by,stores,guards,mixed,isolated,rejected,mips,empty,unmeasured}, agc_driver_mesh_vector_window_writesAnyPS5 commit
main
095ff72367(Vulkan-Headers submodule at VK_HEADER_VERSION 335)System
Debian 13, kernel 6.12.115, GCC 14.2, NVIDIA GeForce RTX 3070 (610.57.04); validation layers: Debian
vulkan-validationlayers1.4.309.0-1 and Vulkan-ValidationLayersvulkan-sdk-1.4.335.0built from source.Host report
Steps to reproduce
with the distribution's layer, then again with
VK_LAYER_PATHpointing at a manifest of a 1.4.335 layer. The stock manifest of a source build names the library without a path ("library_path": "libVkLayer_khronos_validation.so"), which resolves to the system copy when one is installed;LD_DEBUG=filesshows which.sois loaded. A manifest copy with the absolute path avoids that.Log. This box formats as code by itself, so paste only these three lines:
Validation Error: [ VUID-VkDeviceCreateInfo-pNext-pNext ] | MessageID = 0x901f59ec
vkCreateDevice(): pCreateInfo->pNext chain includes a structure with unknown VkStructureType (1000579000). This error is based on the Valid Usage documentation for version 309 of the Vulkan header. It is possible that you are using a struct from a private extension or an extension that was added to a later version of the Vulkan header, in which case the use of pCreateInfo->pNext is undefined and may not work correctly with validation enabled.
agc_driver_image_table ... ***Failed Error regular expression found in output. Regex=[SYNC-HAZARD-|VUID-|was not found but was requested by env var VK_INSTANCE_LAYERS]
Log
What was checked
1000579000isVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FMA_FEATURES_KHR;1000574000(also unknown to 1.3.275) isVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_8_FEATURES_KHR. The same layer also rejects shader modules that declareSPV_KHR_fma(VUID-VkShaderModuleCreateInfo-pCode-08737/08741: "SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan"), andagc_driver_mesh_vector_window_writeslogs these andVUID-CullPrimitiveEXT-CullPrimitiveEXT-07036next to the pNext error; none of them appear with 1.4.335.095ff72367, RTX 3070agc_driver_present_upscale, #17179, and four f32 tests that fail the same way without any layer, https://github.com/boykopovar/AnyPS5/issues/17685);VUID-VkDeviceCreateInfo-pNext-pNextin 911 tests (2,326 lines)LD_DEBUGconfirms that.so)VUID-orSYNC-HAZARD-line in any testVUID-lineThe NVIDIA CI bot's runs show the same thing: its container has layer 1.3.275 (the gist of the #16411 run logs
unknown VkStructureType (1000579000)and(1000574000)"based on the Valid Usage documentation for version 275"), and its comments listagc_driver_image_tableunder "Failing on main too" on every PR. It is not NVIDIA-only: the AMD CI bot (RADV, sameubuntu:24.04container) listsVUID-VkDeviceCreateInfo-pNext-pNextin 487 tests under "Validation IDs already present on main", e.g. https://github.com/boykopovar/AnyPS5/pull/15876#issuecomment-6645485500.A pNext struct the layer does not know makes every later VUID comparison weaker too, since the layer says the use of that pNext chain "is undefined and may not work correctly with validation enabled". Stating a minimum layer version (one that knows the headers' structs, at least 1.4.335 today) next to the GPU-test procedure, or having the tests check the layer's
specVersionagainstVK_HEADER_VERSION, would turn these into a clear setup error instead of failures on main.AI-assisted: yes (run and drafted with an AI agent, checked by me)