cs_lds_xchg64_ext: judge ds_or_rtn_b64's returned pair and ds_max_rtn_f32's two results apart #186

Closed
Andretuta wants to merge 1 commit from upstream-pr/186 into main
Andretuta commented 2026-11-24 02:37:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:37:58Z.


Carried over from old PR 9918 by Sunkiller-qc in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9918, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
Sunkiller-qc: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Thanks for d578b48, great coverage. Two small gaps: the returned pair of ds_or_rtn_b64 wasn't judged, and XORing ds_max_rtn_f32's memory value with its returned value couldn't tell a swapped result apart. This fixes both within the 8-word dump (out[2] now also folds in the returned pair, out[7] is the returned value of ds_max_rtn_f32 alone, its memory word is folded into out[6]) and resolves the contradictory GPU-verified wording in design.md.

The new expected words were derived by hand from the header and haven't been re-run on a GPU, so a GPU run would be appreciated.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465037606 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/186). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:37:58Z. --- > Carried over from **old PR 9918** by `Sunkiller-qc` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9918`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `Sunkiller-qc`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Thanks for d578b48, great coverage. Two small gaps: the returned pair of ds_or_rtn_b64 wasn't judged, and XORing ds_max_rtn_f32's memory value with its returned value couldn't tell a swapped result apart. This fixes both within the 8-word dump (out[2] now also folds in the returned pair, out[7] is the returned value of ds_max_rtn_f32 alone, its memory word is folded into out[6]) and resolves the contradictory GPU-verified wording in design.md. The new expected words were derived by hand from the header and haven't been re-run on a GPU, so a GPU run would be appreciated.
aslan2142 commented 2026-12-01 11:42:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:42:30Z.


Draft PR review note: this carried-over PR currently conflicts with main (in docs/design.md, runtime/test/shaders/check.py, and scripts/run_gpu_tests.py) and its CI run was cancelled. The improved judging of ds_or_rtn_b64 and ds_max_rtn_f32 in cs_lds_xchg64_ext.asm is still distinct from main (check.py:196 still expects 0xF00FF000). Please rebase onto current main, mark ready, and run fresh CI if you want to land it.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7310019463 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/186#issuecomment-7310019463). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:42:30Z. --- Draft PR review note: this carried-over PR currently conflicts with `main` (in `docs/design.md`, `runtime/test/shaders/check.py`, and `scripts/run_gpu_tests.py`) and its CI run was cancelled. The improved judging of `ds_or_rtn_b64` and `ds_max_rtn_f32` in `cs_lds_xchg64_ext.asm` is still distinct from `main` (`check.py:196` still expects `0xF00FF000`). Please rebase onto current `main`, mark ready, and run fresh CI if you want to land it. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 12:13:26 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:13:26Z.


Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review.

(AI-assisted triage.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7310826691 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/186#issuecomment-7310826691). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T12:13:26Z. --- Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review. *(AI-assisted triage.)*
aslan2142 commented 2026-12-01 12:57:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:57:41Z.

Review: CHANGES_REQUESTED


Now ready for review, requesting changes before merge:

  • Merge conflicts (CONFLICTING/DIRTY): conflicts with main in docs/design.md, runtime/test/shaders/check.py, and scripts/run_gpu_tests.py.
  • CI: checks from 2026-11-24 were cancelled. The cs_lds_xchg64_ext checks remain distinct from check.py:196; please rebase onto current main and run fresh green CI.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6131697741 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/186#pullrequestreview-6131697741). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T12:57:41Z. **Review:** CHANGES_REQUESTED --- Now ready for review, requesting changes before merge: - **Merge conflicts (`CONFLICTING`/`DIRTY`)**: conflicts with `main` in `docs/design.md`, `runtime/test/shaders/check.py`, and `scripts/run_gpu_tests.py`. - **CI**: checks from 2026-11-24 were cancelled. The `cs_lds_xchg64_ext` checks remain distinct from `check.py:196`; please rebase onto current `main` and run fresh green CI. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 16:28:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:28:51Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317676402 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/186#issuecomment-7317676402). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:28:51Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!186
No description provided.