Repository navigation
Conversation
f075133 to
b050712
Compare
|
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.
|
|
@MarcZX10 I ran The first word of Could you build the inactive case from instructions the translator accepts and that make the load's lanes inactive for certain? For example, clear EXEC first ( |
|
Rebase handoff, with one serializer collision resolved and one open failure — The open failure: To pick it up: Head is |
|
I checked the failing fixture and confirmed |
b050712 to
bde890a
Compare
|
Update: I resolved the current-main conflicts while preserving both |
adriadam10
left a comment
There was a problem hiding this comment.
Thanks for the follow-up. The deferral design looks consistent with #6412, and the s_mov_b64 exec, 0 fixture is correctly encoded. One thing to fix:
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:5466and:5470:CheckFaults()andWriteBackBuffers()now only callbda->CheckFault()whenfaultChecksis set. This is not specific to deferred fragment faults and changes every BDA user. The copied-writes path (Draw.cpp:1683) callsWriteBackBuffers()whether or notfaultChecksis set, so a fault on a draw whereprepareAddressBindingsleftfaultChecksfalse (for exampletableFaultsOnlywithoutimageTableFaults/poisonedSrtReads) is no longer reported. Previously it threw. Please restore the unconditionalif (bda) bda->CheckFault();. The new case already setsfaultChecksthroughdeferredBufferTypeFaults, so nothing else is needed. If you want the skip for a measured reason, scope it and add a test that shows the fault is still reported.
Also note that #6924 and #6683 both take shader disk-cache FormatVersion 41. Whichever lands second has to move to the next free number.
bde890a to
487f12f
Compare
|
Thanks for identifying the regression. I rebased this branch onto current On current main |
|
Ran Kena (PPSA01802) on Windows, RTX 4070 Super, to see whether this PR carries it past Continue.
Suggestion: for Kena the deferral would also have to cover the non-TYPE validations on that slot. I can re-run Kena once #6412 is merged and this PR is rebased on it. |
|
Thanks for the Kena comparison. It confirms the startup failure, “indirect register sentinel semantics are not implemented,” is identical on the PR and its tested base, so this run does not establish a regression or show Kena progressing with this change. I also note that #6412 alone reaches the menu but then stops on typed-buffer format 0, and the stacked combination was not tested because of conflicts. I’ll keep the PR’s claims limited to deferring the guarded TYPE fault and won’t present this as a Kena fix. |
|
I merged current |
|
Thanks for the EXEC fix:
Separately, the branch conflicts with current |
|
I merged current The focused |
|
@oneandonlydean Re your cache-version item (2026-10-29): done in Verified:
Not done: the branch still does not merge cleanly with current |
|
@MarcZX10 two things before this can pass on the current head.
The body also still names head a24ccea and cache format 43, so please refresh it. |
Defer invalid buffer-descriptor TYPE faults for eligible, read-only fragment-stage buffer loads until the shader executes the load. Ineligible descriptors (writes, atomics, aliases, scalar loads) keep the immediate rejection. Add active and inactive EXEC-branch regression cases for the Kena capture from boykopovar#5879. The inactive mask is read from runtime user SGPRs so the load is not folded away. Bump the shader disk cache format to 97 for the new serialized fields.
3e63c04 to
75e1ccb
Compare
|
@oneandonlydean Rebased on current Item 2 (conflicts and tests): done.
Item 1 (deferral on valid descriptors): not changed in this push. The deferral is decided when the shader is compiled, before the V# value is known at runtime. Arming it only when the descriptor is invalid would need shader variants keyed on descriptor validity, which is a design change. I don't want to make that silently. The two options are: |
|
@MarcZX10 thanks for the rebase. adriadam10's request on DeferredBufferTypeFaults() is still open and I agree with it. Right now every pixel buffer that is read-only with plain LoadBufferU32 loads is deferred, even when its V# is valid. ApplyStaticInterface then adds a FaultBuffer binding, turns off readOnlyStorage and changes the shader cache key, so working pixel shaders compile differently. Of your two options I would take (a): arm the deferral only when the descriptor is invalid, so a valid V# keeps today's compile and cache key. If you prefer (b), I need before and after runs on PPSA21564 showing the same shader output and cache key as main, and frame time within the noise floor. I will review again as soon as the head moves, and adriadam10 would need to re-approve. |
What
This is a fragment-stage follow-up to #6412. Its author confirmed that #6412 remains compute-only and asked that the Kena case be handled separately.
Tested
Rebased onto current upstream
main1da991f9bb. Current PR head75e1ccb8be(one commit on top ofmain; the previous head3e63c0489ais replaced).Windows 11, Ryzen 7 260 (AVX2, FMA and BMI2 present), GCC 15.2 UCRT, Release, with
BUILD_TESTING=ON. No GPU or Vulkan validation-layer run on this host.agc_driver_draw_unsupported_buffer_type_tests,agc_driver_stencil_replay_tests,agc_shader_disk_cache_testsandagc_driver_image_table_reuse_tests: passed.draw_unsupported_buffer_type(including_deferred_fault,_skip_refused,_draw_pipeline,_plan_verify),image_table_reuse(all 8 entries),stencil_replay(both entries) andagc_shader_disk_cache(all 5 entries): 24 of 24 passed.python3 tools/check_conventions.py --base origin/main: passed.git diff --check origin/main...HEAD: clean.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)Cache format coordination
Current
mainuses shader cache format 96. This PR uses 97, which is abovemain. TheFormatVersion - 1round-trip checks inShaderDiskCachetests are unchanged. Open #6924 and #6412 may propose other versions; recheck the next unused version if cache-format changes land before this PR.