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

Closed
opened 2026-11-09 10:16:32 +00:00 by Doorriiaann · 0 comments
Doorriiaann commented 2026-11-09 10:16:32 +00:00 (Migrated from github.com)
Contributor

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 the VkDeviceCreateInfo pNext structs the driver chains on NVIDIA (VK_KHR_shader_fma, and on 1.3.275 also VK_KHR_maintenance8), logs VUID-VkDeviceCreateInfo-pNext-pNext, and the tests that fail on a VUID- 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_writes

AnyPS5 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-validationlayers 1.4.309.0-1 and Vulkan-ValidationLayers vulkan-sdk-1.4.335.0 built from source.

Host report

n/a (ctest only)

Steps to reproduce

ANYPS5_GPU=NVIDIA ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R '^agc_driver_image_table' -V

with the distribution's layer, then again with VK_LAYER_PATH pointing 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=files shows which .so is 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

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]

What was checked

1000579000 is VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FMA_FEATURES_KHR; 1000574000 (also unknown to 1.3.275) is VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_8_FEATURES_KHR. The same layer also rejects shader modules that declare SPV_KHR_fma (VUID-VkShaderModuleCreateInfo-pCode-08737/08741: "SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan"), and agc_driver_mesh_vector_window_writes logs these and VUID-CullPrimitiveEXT-CullPrimitiveEXT-07036 next to the pNext error; none of them appear with 1.4.335.

Layer Full ctest on main 095ff72367, RTX 3070 The 15 tests above, 5 runs each
Debian 1.4.309 20 failed: these 15, plus 5 with other causes (agc_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-pNext in 911 tests (2,326 lines) fail every run
1.4.335 (source build, LD_DEBUG confirms that .so) GCC 13.3 build: 4590 of 4592 passed, no VUID- or SYNC-HAZARD- line in any test pass every run, no VUID- line
none n/a pass every run

The 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 list agc_driver_image_table under "Failing on main too" on every PR. It is not NVIDIA-only: the AMD CI bot (RADV, same ubuntu:24.04 container) lists VUID-VkDeviceCreateInfo-pNext-pNext in 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 specVersion against VK_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)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6284163946 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/17693). Originally posted by [Doorriiaann](https://github.com/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 the `VkDeviceCreateInfo` pNext structs the driver chains on NVIDIA (`VK_KHR_shader_fma`, and on 1.3.275 also `VK_KHR_maintenance8`), logs `VUID-VkDeviceCreateInfo-pNext-pNext`, and the tests that fail on a `VUID-` 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_writes ### AnyPS5 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-validationlayers` 1.4.309.0-1 and Vulkan-ValidationLayers `vulkan-sdk-1.4.335.0` built from source. ### Host report ```text n/a (ctest only) ``` ### Steps to reproduce ``` ANYPS5_GPU=NVIDIA ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R '^agc_driver_image_table' -V ``` with the distribution's layer, then again with `VK_LAYER_PATH` pointing 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=files` shows which `.so` is 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 ```text 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] ``` ### What was checked `1000579000` is `VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FMA_FEATURES_KHR`; `1000574000` (also unknown to 1.3.275) is `VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_8_FEATURES_KHR`. The same layer also rejects shader modules that declare `SPV_KHR_fma` (`VUID-VkShaderModuleCreateInfo-pCode-08737/08741`: "SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan"), and `agc_driver_mesh_vector_window_writes` logs these and `VUID-CullPrimitiveEXT-CullPrimitiveEXT-07036` next to the pNext error; none of them appear with 1.4.335. | Layer | Full ctest on main 095ff72367, RTX 3070 | The 15 tests above, 5 runs each | |---|---|---| | Debian 1.4.309 | 20 failed: these 15, plus 5 with other causes (`agc_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-pNext` in 911 tests (2,326 lines) | fail every run | | 1.4.335 (source build, `LD_DEBUG` confirms that `.so`) | GCC 13.3 build: 4590 of 4592 passed, no `VUID-` or `SYNC-HAZARD-` line in any test | pass every run, no `VUID-` line | | none | n/a | pass every run | The 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 list `agc_driver_image_table` under "Failing on main too" on every PR. It is not NVIDIA-only: the AMD CI bot (RADV, same `ubuntu:24.04` container) lists `VUID-VkDeviceCreateInfo-pNext-pNext` in 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 `specVersion` against `VK_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)
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#17693
No description provided.