docs(contributing): check that the validation layer loaded with VK_LOADER_DEBUG=layer #17896
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17896"
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 milescoviello on 2026-11-09T21:09:16Z.
What
CONTRIBUTING.mdasks AGC, shader recompiler and VideoOut changes to "confirm neither log reportswas not found but was requested by env var VK_INSTANCE_LAYERS". In AnyPS5's test programs that line never appears unlessVK_LOADER_DEBUGis set, even when the layer is missing. So a log without it doesn't show the layer ran.The loader prints its messages through a debug messenger or
VK_LOADER_DEBUG.vulkaninforegisters a messenger, which is why it shows the error. The test programs register none.Measured with
agc_driver_stencil_copy_draw_testson Linux (Ubuntu 26.04, NVIDIA 615.71.09, loader 1.4.341), withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_REQUIRE_VULKAN=1:VK_LAYER_PATHVK_LOADER_DEBUGInsert instance layer "VK_LAYER_KHRONOS_validation"lineslayerlayerWithout
VK_LOADER_DEBUGthe first two runs can't be told apart: the test passes with no validation at all, and the log looks like a clean validated run.This changes the rule to set
VK_LOADER_DEBUG=layerand to confirm theInsert instance layer "VK_LAYER_KHRONOS_validation"line, as well as the absence of the "was not found" one.tools/vulkan_validation_gate.pyalready does exactly this: it setsVK_LOADER_DEBUG=layer(line 16) and fails a run without theInsert instance layerline (lines 21 and 212). This brings the manual rule in line with the tool.How
Changed:
CONTRIBUTING.mdline 74, the validation requirement: one variable added to the list, and one confirmation added with its reason. No code change.Tested
Docs only. The table above is the measurement behind the change.
tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.py --branchfinds two open pull requests on the same lines:#14212 could not be compared because it conflicts with
main.I found this when my own validation runs pointed at a layer directory that no longer existed and still produced logs without the "was not found" line. My scripts now use
VK_LOADER_DEBUG=layer, and I'm re-running the runs my pull requests cite.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)CONTRIBUTING.mdline to add the minimum validation-layer version. This one goes after it; I'll mergemaininto this branch once it lands and keep both additions.🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:49:43Z.
Review: COMMENTED
Read
e14ee73dd0againstmain.Correctness.
tools/vulkan_validation_gate.pyon main already setsVK_LOADER_DEBUG=layer(line 16) and requires theInsert instance layer "VK_LAYER_KHRONOS_validation"line (INSERTED_LAYER, line 21, checked around line 212), anddocs/dev/BUILD.md:196documents the same. The newCONTRIBUTING.mdtext matches that, and the phrase it quotes is the one the tool searches for. A grep ofcore/libs/prx/libSceAgcDriverandcore/libs/prx/libSceVideoOutfinds no debug messenger registration, consistent with the claim that the loader prints these lines only underVK_LOADER_DEBUG. The measured table in the description cannot be reproduced from reading.Non-blocking.
AGENTS.md:15states the same rule (VK_INSTANCE_LAYERS, "was not found ...") and is not updated, so the two files now disagree on whetherVK_LOADER_DEBUG=layeris needed. TheCONTRIBUTING.mdline it edits is also edited by #17699, so the two will conflict.Not run here; this is from reading the code.
AI-assisted: yes.