Repository navigation
Conversation
mjnhbg3
force-pushed
the
fix/kyty-sbuffer-offset-alignment
branch
from
November 26, 2026 12:50
6fce179 to
13393c1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Align the sum of
SOFFSETand the instruction immediate before S_BUFFER dword loads. Apply the same address rule to the SPIR-V emitter, SRT walker, descriptor tracking, and runtime materialization. Ambiguous descriptor shapes use the existing generic path.This addresses the scalar buffer portion of #216. The issue describes separate truncation, while AMD RDNA2 ISA §7.2.1 specifies
offset = OFFSET + SOFFSETand aligns the final buffered address. The debt fragment records that the carry case has not been measured on PS5 hardware. The other #216 points remain open. The branch is based on the currentAnyKytyhead688dbf145d.Tested
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, andVK_LOADER_DEBUG=layer, the final GPU replay fixture fails on exact base688dbf145din both carry cases while its no-carry control passes. The change passes all seven replay cases, including the crossed bound.kyty_shim_flattened_srt_uniformpasses on both.kyty_shim_cross_queue_label_orderandkyty_shim_recompiler_valid_spirvpass 2/2 on both the exact base implementation and the change. Both verbose CTest logs showInsert instance layer "VK_LAYER_KHRONOS_validation"from validation SDK 1.4.350, no missing-layer warning, and zeroVUID-errors. The baseline used the same final fixtures with the four changed implementation files restored from688dbf145d; the candidate was restored and rebuilt afterward.tools/check_conventions.py --base origin/AnyKyty,tools/check_kyty_settings.py,tools/debt_fold.py --check,git diff --check, andtools/pr_overlap.py --branch fix/kyty-sbuffer-offset-alignmentpassed. The requestedorigin/mainconvention check cannot run because this fork does not publish amainbranch. No PS5 hardware or title run was available.13393c1passed: Linux Kyty (115 tests), Windows Kyty (104 tests), Linux ASan, Linux TSan, lavapipe (95 tests), relinker fuzzers, conventions, and portability. Compared with the exact-base jobs, Linux and Windows have the same non-PGO warning classes and counts (44 and 127); no warning is from a changed file. PGO hash-mismatch advisories vary slightly after the changed functions. The Kyty and lavapipe logs contain noVUID-errors.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)