host_cpu: move gta6rt's AVX preflight decision into a testable preflight() #183

Closed
leonida/mandy
Andretuta wants to merge 0 commits from old-pr/9915 into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Andretuta commented 2026-11-24 02:37:20 +00:00

Carried over from old PR 9915 by Sunkiller-qc in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9915, 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 ad6e5d6, the clear AVX message is a real improvement. The decision in wmain (only --init/--run, LEONIDA_SKIP_CPU_CHECK, the message and exit code 4) wasn't reachable from a test, so this moves it into rt::host_cpu::preflight() with an injectable feature source and adds cases to host_cpu_test. Behaviour is unchanged.

Not built or run on my side.

> Carried over from **old PR 9915** by `Sunkiller-qc` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9915`, 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 ad6e5d6, the clear AVX message is a real improvement. The decision in wmain (only --init/--run, LEONIDA_SKIP_CPU_CHECK, the message and exit code 4) wasn't reachable from a test, so this moves it into `rt::host_cpu::preflight()` with an injectable feature source and adds cases to host_cpu_test. Behaviour is unchanged. Not built or run on my side.
aslan2142 reviewed 2026-12-01 10:37:34 +00:00
aslan2142 left a comment
No description provided.
Reviewed the diff against current `main`: moving `wmain`'s AVX preflight check into `rt::host_cpu::preflight()` with an injectable feature callback and unit coverage in `runtime/test/host_cpu_test.cpp` is clean, preserves existing behavior (including not reading `LEONIDA_SKIP_CPU_CHECK` on `--dry-run`), applies cleanly, and passes clean-room inspection. Because this is a carried-over Draft PR whose initial CI runs were cancelled and the original author noted it was not built/run locally, please mark it ready for review (or adopt it) and trigger a fresh Windows/Linux runtime CI run before merging. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 12:12:49 +00:00

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.)

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 16:28:48 +00:00

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.

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.
Sign in to join this conversation.
No description provided.