Repository navigation
Conversation
|
The scalar |
This branch was successfully deployed
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
Fixes the scalar-load offset point of #216.
s_buffer_load_*ands_load_*align the registersoffsetand encoded immediate independently to a dword before adding them. The previous final-address alignment could advance to the next dword when the discarded low bits carried. The same rule now reaches direct and indirect SPIR-V reads, the SRT walker, descriptor and table materialization, and ray-query resource evaluation.Raw-word replay checks the carry and bound with distinct source dwords. A synthetic two-row record-table fixture checks descriptor planning, materialization, and valid SPIR-V. The rule follows #216 and Mesa ACO; the differing RDNA2 ISA pseudocode and the need for a PS5 hardware oracle are recorded in the debt fragment and #217. This addresses one point of #216, so the issue remains open.
The review follow-up makes wave-result classification prove the low three bits of the completed register expression before aligning it. Unknown expressions remain unclassified. A focused IR regression covers carry within that register expression, aligned and masked dynamic offsets, and a select whose branches differ.
Tested
AnyKytybase0dea7e8b96and this commit:ctest --test-dir H:\AnyPS5-ScalarLoad216-base-build -R '^kyty_shim_uniform_scalar_(loads|replay)$' -VwithANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, andVK_LOADER_DEBUG=layer. The base failed both tests (two offset replay cases and nine unit assertions); this change passed both tests, including all eight replay cases and the record-table fixture.Insert instance layer "VK_LAYER_KHRONOS_validation",unfinished=0, no missing-layer message, and zeroVUID-errors. The initial differential builds produced the same 107 PGO profile-hash warnings in changed shader sources on each side and no other warning category.8a26fbfd3a: focused build succeeded andctest --test-dir H:\AnyPS5-ScalarLoad216-base-build -R '^(kyty_shim_rt_oracle|kyty_shim_uniform_scalar_(loads|replay))$' -Vpassed 3/3 with the same Vulkan environment. All 16 replay child logs again show layer insertion,unfinished=0, no missing-layer message, and zeroVUID-errors. The revised ray-query source emitted only the existing PGO profile-hash warning class.0dea7e8b96currently passes Linux, Windows, ASan, TSan, and conventions.python3 tools/check_conventions.py --base upstream/AnyKyty,python3 tools/check_kyty_settings.py,python3 tools/debt_fold.py --check, andpython3 tools/pr_overlap.py --repo simnJS/AnyPS5 --base AnyKyty --branch fix/kyty-scalar-load-offset-boundspassed on the final head. The overlap check found no overlap with an open PR. No title, homebrew, or external ray-query corpus run and no AMD or PS5 hardware oracle measurement were available.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)