Skip to content

test(agc): load the Vulkan loader by its macOS name in the unimported label order submit gate - #25614

Open
kevinfavv wants to merge 1 commit into
boykopovar:mainfrom
kevinfavv:test/agc-unimported-label-order-macos-loader
Open

kevinfavv wants to merge 1 commit into
boykopovar:mainfrom
kevinfavv:test/agc-unimported-label-order-macos-loader

Conversation

@kevinfavv

Copy link
Copy Markdown

What

UnimportedLabelOrder.cpp's SubmitGate loads the Vulkan loader as libvulkan.so.1 on every non-Windows host. macOS has no such file, so the gate's Require stops all three tests there before any case runs:

AGC graphics: unimported label order: cannot load Vulkan for the submit gate

This loads libvulkan.1.dylib on Apple, as Recorder.cpp and the fixtures fixed in #11706 and #19461 already do.

Tested

Apple M5 Pro, macOS 26.5.1, Apple clang 21.0.0, x86_64 Release under Rosetta 2, MoltenVK and loader from Vulkan SDK 1.4.363.1, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1. Tree: main + #17425 + #11049 + #25331 (needed to build on macOS).

test main this PR
agc_driver_unimported_label_order Failed (cannot load Vulkan for the submit gate) Passed
agc_driver_unimported_label_order_draw_pipeline Failed (same) Passed
agc_driver_unimported_label_order_plan_verify Failed (same) Passed

Linux and Windows take the same branches as before.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: Apple M5 Pro, MoltenVK (Vulkan SDK 1.4.363.1), macOS 26.5.1
  • AI-assisted: yes

🤖 Generated with Claude Code

… label order submit gate

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

Nothing blocks this change; the platform-specific loader name matches the existing macOS convention in the repository.

What I ran

Reviewed head dc7e075b95129b84b3baa22581af60bb9fd39c9a. Read description.md, commits.md, manifest.json, diff.patch, and the changed lines plus surrounding SubmitGate code in UnimportedLabelOrder.cpp; searched for the same macOS loader name in the repository. No tests were run.

Results

Check Result Note
Diff and source review passed Change is limited to Apple loader selection
Tests not run Reported test results are author supplied

Findings

Blocking

None.

Non-blocking

None.

Not verified

The reported macOS test runs were not independently reproduced. files.json was not available through the reader; manifest indicates the sole changed file was included and its changed lines and relevant context were read. Excluded-file list was not verified.

To get this to a good state

Nothing is required.

@github-actions github-actions Bot added the agc libSceAgc* label Nov 22, 2026
@Gonic0

Gonic0 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Independent macOS check of dc7e075b95. Apple M5 Pro, macOS 27.3, x86_64 Release under Rosetta 2. The tree was main ea07e039a9 plus #17425 and #11049, which main still needs to build on macOS; this pull request applied without conflicts. MoltenVK through the Vulkan SDK 1.4.363.0 loader (libvulkan.1.dylib on DYLD_LIBRARY_PATH), with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer; each log shows the loader inserting the layer and none reports it missing.

ctest -R unimported_label main this pull request
agc_driver_unimported_label_order, _draw_pipeline, _plan_verify 0 of 3: "unimported label order: cannot load Vulkan for the submit gate" 3 of 3, in 3 of 3 runs
VUID- none none

Not tested with a title.

@throny

throny commented Nov 22, 2026

Copy link
Copy Markdown

GPU test run: ✅ no new failures or validation errors on Windows / NVIDIA

Basis: built and ran · this PR's head dc7e075b95 merged onto main 337a948bf1 · Windows 11 Pro 26300, RTX 4080 (10de:2704, driver 610.88), WinLibs GCC 15.2.0 r7, Release

Checked

  • The agc_* tests tools/select_tests.py selects for this change: all 43 passed, run with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer (Khronos validation layer, nightly 1.4.369, newer than the 1.4.335 minimum).
  • The loader logged Insert instance layer "VK_LAYER_KHRONOS_validation" 12 times and never was not found but was requested by env var VK_INSTANCE_LAYERS.
  • 0 VUID- messages, the same as a full agc_* run of main 337a948bf1 on this machine with the same settings (all 43 passed there too).

Findings: none from this run; this is a correctness run on a GPU, not a code review or a speed measurement.

AI-assisted test run (Claude Code) · head dc7e075b95 · base main 337a948bf1

@github-actions

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 10442 core/libs/prx/libSceAgcDriver/tests/execution/UnimportedLabelOrder.cpp

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants