docs: state the minimum validation-layer version for the GPU-test procedure #17699

Merged
tablefrogpillow merged 1 commit from upstream-pr/17699 into main 2026-11-12 07:24:01 +00:00
tablefrogpillow commented 2026-11-09 10:37:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tablefrogpillow on 2026-11-09T10:37:13Z.


What

An AGC / shader recompiler / VideoOut GPU test run with a Khronos validation layer older than the repo's 3rdparty/Vulkan-Headers submodule logs a spurious VUID-VkDeviceCreateInfo-pNext-pNext: the layer does not know the pNext structs the driver chains (e.g. VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FMA_FEATURES_KHR, and on 1.3.275 also MAINTENANCE_8), so every GPU test trips the VUID- regex and fails. This bites the documented procedure in AGENTS.md / CONTRIBUTING.md and the CI bots (which run the 1.3.275 / 1.4.309 distro layers).

This adds one sentence next to the GPU-test procedure in both files stating the minimum layer version: at least as new as the Vulkan-Headers submodule (VK_HEADER_VERSION 335, i.e. layer 1.4.335+). Docs only; no code change.

Tested

Docs only. Reproduced the spurious VUID-VkDeviceCreateInfo-pNext-pNext on RX Vega (RADV, Linux) with the Ubuntu 24.04 system layer (1.3.275), and confirmed it is absent with a 1.4.335+ layer. python3 tools/check_conventions.py --base origin/main passes.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch) — n/a, docs only
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source — n/a
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: #17693
  • Unblocks: none
  • GPUs tested: n/a (docs change; repro noted above on RX Vega / RADV / Linux)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5222517030 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17699). Originally posted by [tablefrogpillow](https://github.com/tablefrogpillow) on 2026-11-09T10:37:13Z. --- ### What An AGC / shader recompiler / VideoOut GPU test run with a Khronos validation layer **older than the repo's `3rdparty/Vulkan-Headers` submodule** logs a spurious `VUID-VkDeviceCreateInfo-pNext-pNext`: the layer does not know the `pNext` structs the driver chains (e.g. `VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FMA_FEATURES_KHR`, and on 1.3.275 also `MAINTENANCE_8`), so every GPU test trips the `VUID-` regex and fails. This bites the documented procedure in AGENTS.md / CONTRIBUTING.md and the CI bots (which run the 1.3.275 / 1.4.309 distro layers). This adds one sentence next to the GPU-test procedure in both files stating the minimum layer version: at least as new as the Vulkan-Headers submodule (`VK_HEADER_VERSION` 335, i.e. layer 1.4.335+). Docs only; no code change. ### Tested Docs only. Reproduced the spurious `VUID-VkDeviceCreateInfo-pNext-pNext` on RX Vega (RADV, Linux) with the Ubuntu 24.04 system layer (1.3.275), and confirmed it is absent with a 1.4.335+ layer. `python3 tools/check_conventions.py --base origin/main` passes. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`) — n/a, docs only - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source — n/a - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: #17693 - [x] Unblocks: none - [x] GPUs tested: n/a (docs change; repro noted above on RX Vega / RADV / Linux) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gabichuuuuu commented 2026-11-10 17:49:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:49:26Z.

Review: COMMENTED


Read 92590d9df4 against main.

Correctness. 3rdparty/Vulkan-Headers is pinned at 2fa203425e on main and on this head, and its vulkan_core.h:69 defines VK_HEADER_VERSION 335, so the number in the sentence is right. VulkanDevice.cpp (around lines 1820-1830 and 2325-2327) does build VkPhysicalDeviceShaderFmaFeaturesKHR and chain it into the device pNext, as the text says. The sentence is added to the same rule in AGENTS.md and CONTRIBUTING.md, with the same wording in both.

Non-blocking. The FMA struct is chained only if (float16Fma), which needs VK_KHR_shader_fma and shaderFmaFloat16 on the device (VulkanDevice.cpp:1821-1825, :2325). "fails every GPU test" is therefore too strong; "fails every GPU test on a device that exposes the extension" is what the code supports. The CONTRIBUTING.md line it edits is the same one #17896 edits (the VK_LOADER_DEBUG change), so the two will conflict textually; whichever merges second needs a rebase.

Not run here; this is from reading the code.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5846658633 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17699#pullrequestreview-5846658633). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-10T17:49:26Z. **Review:** COMMENTED --- Read `92590d9df4` against `main`. **Correctness.** `3rdparty/Vulkan-Headers` is pinned at `2fa203425e` on main and on this head, and its `vulkan_core.h:69` defines `VK_HEADER_VERSION 335`, so the number in the sentence is right. `VulkanDevice.cpp` (around lines 1820-1830 and 2325-2327) does build `VkPhysicalDeviceShaderFmaFeaturesKHR` and chain it into the device `pNext`, as the text says. The sentence is added to the same rule in `AGENTS.md` and `CONTRIBUTING.md`, with the same wording in both. **Non-blocking.** The FMA struct is chained only `if (float16Fma)`, which needs `VK_KHR_shader_fma` and `shaderFmaFloat16` on the device (`VulkanDevice.cpp:1821-1825`, `:2325`). "fails every GPU test" is therefore too strong; "fails every GPU test on a device that exposes the extension" is what the code supports. The `CONTRIBUTING.md` line it edits is the same one #17896 edits (the `VK_LOADER_DEBUG` change), so the two will conflict textually; whichever merges second needs a rebase. Not run here; this is from reading the code. AI-assisted: yes.
Sign in to join this conversation.
No reviewers
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!17699
No description provided.