Skip to content

fix(agc): prepare the push-less pixel variant only without fixed push slots - #9563

Draft
EagleBearerYS wants to merge 3 commits into
boykopovar:mainfrom
EagleBearerYS:port/fable-fix-pushless-pixel
Draft

EagleBearerYS wants to merge 3 commits into
boykopovar:mainfrom
EagleBearerYS:port/fable-fix-pushless-pixel

Conversation

@EagleBearerYS

@EagleBearerYS EagleBearerYS commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What

Registration prepares every pixel shader twice: once for its push slot, and once more with no push constants, for pipelines that leave the pixel stage no push room. With fixed push slots (graphics pipeline libraries), every graphics ABI gives the pixel stage its own PipelinePushSlotBytes slot (StagePushOffset, and the room the ABI resolution computes). So no draw asks for the second variant. It is compiled, cached and kept for nothing, and it doubles the pixel work at registration.

This is fable-void's 22e072b from his fork (wip/new-gpu-path), with his authorship:

  • 8ab3fa0 (fable-void): DriverDetail::RegistrationRequests lists the requests registration prepares. The push-less pixel variant is among them only for a target without fixed push slots; the partial-workgroup compute variant stays. His conflict with main's ShaderRegistry was resolved to main's InvocationFor/CaptureInvocation, float-mode helpers, library prebuild switch and undrawn-plan release.
  • 7d177f1 (counter): with APS5_PROFILE_DRAW set, the [draw] driver phases line ends with push-less pixel variants left out at registration N (cumulative). Without the profile it costs one test of a static const bool.

If a draw ever did ask for the variant, it would be prepared at the draw, as any variant registration didn't predict is (#2917).

fable-void's evidence, from his commit: a title that registers about 3,100 pixel shaders kept 8,840 variants with 3.7 GiB of SPIR-V. Its second pixel variants were about 1.3 GiB of that, and 97 % byte-identical to the first (counted over its shader disk cache).

Overlap: checked with git merge-tree against every open PR touching these files, on main df2569d. One conflicts:

Tested

  • Red/green on GitHub's Linux and Windows runners (run). agc_driver_prepared_shaders gains RegistrationVariants: one pixel request with fixed push slots, two without, and two compute requests.
    • The test calls the new RegistrationRequests, so main's code can't build it. The red tree is this PR with only the !request.target.fixedPushSlots condition removed.
    • Red: it fails ×3 on both runners with "registration prepared a pixel variant without push data for a target whose pipelines give the pixel stage a fixed push slot".
    • Green: it passes ×10 on Linux. On Windows it skips, as the runner has no Vulkan device.
    • The libc and libkernel suites pass on both runners, with the red and the green tree (115 and 197 tests on Linux, 142 and 207 on Windows).
  • Linux, whole tree: both commits are part of a port of twelve of fable-void's fixes, mirrored as CI's Linux job on main cf2c667. That's 1812/1818, with the same 6 failures as main (IPv6 and socket-buffer tests on that machine), and ^agc ×3 with only the two fill tests that flake on main too.
  • Validation layer, main against this PR (CONTRIBUTING's AGC rule), on one GitHub Linux runner (run). Both runs used VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and ctest -V, with VK_LOADER_DEBUG=layer to show the layer loading. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5, Khronos validation layers 1.3.275.
    • Tests: agc_driver_prepared_shaders, which registers this PR's pixel variants on the real device, and agc_driver_graphics. main's tree ran them once and this PR's three times.
    • The loader inserted VK_LAYER_KHRONOS_validation 3 times on main and 9 with this PR, and neither log has was not found but was requested by env var VK_INSTANCE_LAYERS.
    • Both logs report the same single message, VUID-VkDeviceCreateInfo-pNext-pNext, for a device-creation structure newer than that layer version. This PR adds no VUID- message.
  • b3ef558, main b7d1d47 merged in (clean; the PR's own diff is unchanged), on GitHub's runners (run):
    • Tests: agc_driver_prepared_shaders and agc_driver_graphics pass 10 of 10 on Linux, none skipped. On Windows they build and pass, and one of the two skips without a Vulkan device.
    • Validation, main against this head, on the Linux runner: the loader inserted VK_LAYER_KHRONOS_validation 3 times on main and 30 with this PR, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.
    • Suites: on Linux, libc and libkernel pass. On Windows, libkernel's guest_raise_in_system_call failed in the first attempt with this head, and the rerun of that job passed both suites. The libc and libkernel suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • check_conventions.py passes, with no comment lines added.
  • Resident Evil Village (PPSA01556), 5 minutes at the static main menu, on the RTX 3070 Laptop GPU (NVIDIA 617.42, Windows 11), on a local tree with this PR and our other two ports of fable-void's shared fixes, with APS5_PROFILE_DRAW=1; no fatal error. Every [draw] driver phases line reports push-less pixel variants left out at registration 0 and library prebuilds refused at registration 0 (cumulative), so this title doesn't reach the case. The unit test above is this PR's evidence; no title we run shows the counter yet.
  • Windows 11 and NVIDIA GeForce RTX 4070 Laptop GPU (driver 616.92), by @JulesB40 (comment): b3ef558 merged onto main d4cb893 against that main, built in the same tree, all 1,125 ^agc_ tests under VK_LAYER_KHRONOS_validation with ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1. Both sides: 1,117 pass, 0 fail, 8 skip, the same skips, and the same 18 VUID- lines per test, all VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 from agc_driver_prepared_exports and agc_driver_srgb8_color_target, which main has too (AGC: pipelines use differing per-attachment blend states while independentBlend is never enabled (VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605) #11990). Every device test selected the RTX 4070. No title was run.

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); 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 (no order with feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) #9508, agreed in its thread; see Overlap)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: none needed; RegistrationVariants runs before the test opens a device. The rest of agc_driver_prepared_shaders ran on Mesa llvmpipe (LLVM 20.1.2), Ubuntu 24.04, GitHub's Linux runner. The validation comparison ran on Mesa llvmpipe (LLVM 20.1.2, Mesa 25.2.8), Ubuntu 24.04.5, GitHub's Linux runner. GitHub's Windows runner has no Vulkan device. NVIDIA GeForce RTX 4070 Laptop GPU (616.92), Windows 11, in JulesB40's run of all agc_ tests against main.
  • AI-assisted: yes

fable-void and others added 2 commits October 21, 2026 18:39
… slots

Registration prepared every pixel shader twice: for its push slot and
once more with no push constants, for pipelines that leave the pixel
stage no push room. With fixed push slots (graphics pipeline libraries)
every graphics ABI gives the pixel stage its own slot of
PipelinePushSlotBytes (StagePushOffset, and the room the ABI resolution
computes), so no draw can request the second variant: it was compiled,
cached and kept for nothing, and it doubled the pixel work at
registration.

DriverDetail::RegistrationRequests lists the requests registration
prepares. The push-less pixel variant is among them only for a target
without fixed push slots; the partial-workgroup compute variant stays.

Evidence: a title that registers about 3,100 pixel shaders at load kept
8,840 variants with 3.7 GiB of SPIR-V; its second pixel variants were
about 1.3 GiB of that and 97 % byte-identical to the first (count over
its shader disk cache).

Tested: agc_driver_prepared_shaders gains RegistrationVariants (one
pixel request with fixed push slots, two without, two compute
requests); it fails without the change. Full ctest passes.

Cherry-picked from fable-void's 22e072b; conflict in Execution/include/Driver/Shaders/ShaderRegistry.hpp and Execution/src/Driver/Shaders/ShaderRegistry.cpp resolved to main's InvocationFor/CaptureInvocation declarations, float-mode helpers, library prebuild switch and undrawn resource plan release.
With APS5_PROFILE_DRAW set, the [draw] driver phases line now ends with
the number of pixel shaders registered for a target with fixed push
slots, each of which no longer prepares its variant without push data.
A draw that still asked for that variant would log that it has no
artifact prepared at registration.
@github-actions

github-actions Bot commented Oct 22, 2026 •

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 6188 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 6743 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp
PR 7682 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 9508 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp
PR 10193 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp
PR 11442 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 13928 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp
PR 13929 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp
PR 15499 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp
PR 19181 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 20131 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 20153 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 22251 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 22328 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 22439 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 22546 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 22628 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 22692 core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp
PR 23553 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 24523 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 25489 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 27872 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
PR 28095 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28220 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28252 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28279 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28280 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28289 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28376 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28411 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp
PR 28564 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28586 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28631 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28668 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28702 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28716 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp
PR 28808 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawTiming.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp
PR 28936 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28941 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28952 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28957 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28958 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28962 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 28964 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29042 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29052 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29066 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29067 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29076 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29084 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29085 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29087 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29089 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29095 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29118 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 29188 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp

@MarcZX10

Copy link
Copy Markdown
Contributor

Early review feedback while this remains a draft: the focused request-list test covers fixed-push pixel, non-fixed-push pixel and partial-workgroup compute cases, and the reported red/green result is useful. Before marking it ready, please coordinate the shared ShaderRegistry.cpp work with #9508’s author and record an agreed integration order; add Depends on if one must land first. The PR describes how the changes compose, but I could not find a direct agreement on this PR yet. Also, because this changes AGC driver code, the repository requires a focused main/change Vulkan validation-layer run on the same machine and GPU, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, layer-loaded confirmation and VUID comparison. The CPU-only request-list test is valuable but does not provide that report. I did not run tests locally.

@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.

RegistrationRequests preserves the partial-workgroup compute variant and emits the push-less pixel variant only when the target lacks fixed push slots. PrepareRegistered prepares the first request, retains library prebuild behavior, then prepares only the remaining requests. The regression checks one pixel request for fixed slots, two with the expected push sizes without fixed slots, and both compute variants. I found no correctness issue in the changed logic. The PR reports Linux/Windows red/green runs with 10 green repeats and a focused same-runner Khronos validation comparison; the layer was confirmed loaded and no new VUIDs appeared. Hosted eligibility, intake, labels, report and conventions pass; product Linux/Windows and relinker jobs are skipped. I could not run a local build because the filesystem is full, so I rely on the reported CI runs rather than claiming local test execution. Current-base diff --check and conventions pass. check_main_sync.py reports 2 ahead / 116 behind (94fbb8cea merge base), cleanly mergeable; please refresh from current main before merge. #9508 is not in this branch's ancestry, but its author has agreed #9563 and #9564 can merge in either order; preserve the prebuild changes in #9508 and let RegistrationRequests replace the push-less variant block when composing them. The automated overlap report is partial because older PRs conflict with main; no competing implementation of this request-filtering change was found. Approval is for this reviewed head only.

I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.

@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.

The registration filter still appears correct: fixed-push targets retain only the pushed pixel request, non-fixed targets retain both, and both compute variants remain. The PR reports Linux/Windows red-green runs with 10 focused repeats plus the required same-runner validation-layer comparison; no new VUID was reported. Hosted policy checks pass, while full product and relinker jobs are skipped. I did not run a local GPU build.

Against current upstream/main 329efe1bfdaff116c57cdf62718026ee4f5521ae, the branch is 2 ahead / 161 behind (merge base 94fbb8cea80af91db62ab6ee7e4da23341675c40). Current merge-tree is clean, git diff --check passes, and current-base conventions pass. Please refresh to current main and rerun agc_driver_prepared_shaders plus the focused Vulkan validation comparison before merge; the branch rule requires an up-to-date base.

#9508 is still open at 9f5e875b95d6a5bbee580b03b36ed7773fd80aa0. A current pairwise merge-tree conflicts in ShaderRegistry.cpp; the description records the agreed no-wait composition, preserving #9508’s library prebuild and this PR’s RegistrationRequests filter. Keep that composition and the agreed merge flexibility in the next integration check. I found no duplicate implementation of the push-less request filtering.

@EagleBearerYS

Copy link
Copy Markdown
Contributor Author

Thanks, @MarcZX10. main at b7d1d47 is now merged in (b3ef558), and the PR's own diff is unchanged; it also merges cleanly with main at 8499ea5. On GitHub's runners (run), agc_driver_prepared_shaders passes 10 of 10 on Linux; on Windows it builds, and the test that needs a Vulkan device skips. The same run compares main with this head under the validation layer on Linux: the layer loads in both, and both logs report only VUID-VkDeviceCreateInfo-pNext-pNext. It's in Tested. With #9508, the composition in the description stands: #9508's library prebuild and this PR's RegistrationRequests filter both stay.

@MarcZX10

Copy link
Copy Markdown
Contributor

I’ve noticed that my earlier request to hold this PR based on #5239 was unnecessary. It’s fine to keep submitting PRs; maintainers will handle them in due course. Please disregard that request.

@JulesB40

Copy link
Copy Markdown
Contributor

Note

🤖 Claude Opus 5.5 responding on behalf of JulesB40

On Windows + NVIDIA (Ada), head b3ef558f50 merged onto main d4cb89300f matches that main exactly across all 1,125 agc_ tests: same passes, same skips, same VUID- lines.

Setup: Windows 11 Home 10.0.26200, Intel Core i9-13900HX, NVIDIA GeForce RTX 4070 Laptop GPU (0x2860), driver 616.92, Vulkan SDK 1.4.335 (VK_LAYER_KHRONOS_validation), WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON. Both sides were built in the same tree; the merge (e63fc097b, local only) applied cleanly.

Command, the same on both sides:

ANYPS5_GPU=4070 ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^agc_' -j 6
Passed Failed Skipped VUID- lines Missing-layer lines
main d4cb89300f 1117 0 8 18 0
this PR merged 1117 0 8 18 0

No title was run.

@EagleBearerYS

Copy link
Copy Markdown
Contributor Author

@JulesB40 thank you for the comparison on Windows and the RTX 4070. All 1,125 agc_ tests matching main under the validation layer, down to the 18 VUID- lines that main already has from #11990, is a useful check on an NVIDIA device. I've added it to Tested.

@JJenkx

JJenkx commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

I’m testing a compute-only change that prepares the partial-workgroup variant at the first partial dispatch. The synthetic Vulkan regression confirms that registration and a full dispatch keep one prepared variant, and that two different partial sizes share the second variant. The Yōtei startup cache recorded 731 eager full/partial pairs. Startup cache audit.

I compared the exact ShaderRegistry.cpp versions. The compute change adds one conflict in PrepareRegistered to this PR at b3ef558f50ea and one to #9508 at 7d4214c1f1f7. I propose landing the focused compute change first, then retaining this PR’s pixel-request selection and #9508’s heap prebuild on the updated registration path. @Raghav314, I can rebase the compute change onto either registration rewrite if it is ready first.

@JJenkx

JJenkx commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

I refreshed the first-use compute branch onto 5cbfc40b5a67. The production and fixture files are byte-identical to the pair used for the AllStars run. The same 818 full-workgroup contexts appeared in both caches. The candidate retained zero of the 818 eagerly prepared partial variants, and the matched title-prompt-to-scene times were 93.6 and 93.7 s. AllStars comparison

I also composed your current head with the refreshed compute branch in a separate source checkout. The merge keeps RegistrationRequests and the fixed-pixel-slot decision. It removes the synthetic compute variant and adjusts RegistrationVariants to expect exactly one full-workgroup request. The compute regression still exercises first partial dispatch separately. I carried forward main’s graphics prebuild switch and draw-finisher counters in the existing conflicts.

Does landing the compute-only change first work for this PR? The composition records the exact changes needed if the pixel work goes first.

I checked the combined files at source level. The refreshed Radeon runs cover the compute branch: the negative control fails at eager registration as expected, and the candidate passes all five focused cases with zero VUID messages. Tested branch

AI-assisted: yes

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* needs rebase Conflicts with main, rebase needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants