fix(agc): keep legacy graphics push data inside its block #16413
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16413"
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 lgqdaxia on 2026-11-06T16:26:26Z.
What
Keep graphics stage allocation inside the active pipeline push block. Non-GPL stages share one 128-byte block and leave one DWORD for a present fragment stage; GPL stages retain separate pre-rasterization and fragment slots. Use the same remaining budget for preparation, materialization and draw-cache reuse, including reserved depth-remap words.
Reserve the stencil replay reference DWORD before choosing push-backed shader data. Spill the data to its storage binding when the remaining budget cannot hold both, and match prepared artifacts using the same decision. Add asset-free preparation, allocator, real draw and cache-refresh regressions at the capacity boundary.
Tested
Recorded Windows comparison: 7/7 focused CTests pass on
91b03f80e6; main3bd88ca11933fails the allocation/preparation and non-GPL draw boundaries as expected. The six Vulkan cases load the validation layer and have zero skips, VUIDs or synchronization errors.14 November maintenance: merged main
a525d57e84f1, retaining both graphics-test selectors (--push-constant-assemblyand--stencil-ref-export). Every production edit and regression addition in this PR is preserved.Windows validation and source pins — 6 November 2026
Paired Windows CTests with the same new regressions and main
3bd88ca11933fcc0a2315743af31b8be72d0a482production files as the control: candidate passes all 7 selected tests; the control fails the allocator, prepared-stage and non-GPL stencil/draw boundaries as expected. The legacy draw check verifies a cache hit, the fragment color after 32 vertex user words, and refreshed fragment data. The fitting 124+4B and separate GPL slots remain covered.The 6 Vulkan tests required Vulkan, disabled shader caching and loaded the Khronos validation instance/device layers. Candidate logs contain zero VUID and synchronization errors; no tests skip. The current-main legacy draw control fails its pixel assertion without a VUID; the previously observed VUID10069 is frozen-source game evidence only. The configured full test-registration audit passed. Latest main
492ed5c5fe5d476257ab52fa8e09cf7c343c8200was checked statically: the eight production paths and related tests are unchanged.ctest --test-dir build -V --no-tests=error -R "^agc_driver_(stencil_ref_export_push_budget|prepared_graphics|stencil_replay(_no_gpl)?|draw_cache_reuse(_off)?|depth_range_remap_draw)$"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)