mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1311] host_cpu: move gta6rt's AVX preflight decision into a testable preflight() (OLD-9915) #1341
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1341
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1311
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9915-host-cpu-preflight📝 Commits (1)
6bb8113host_cpu: move gta6rt's AVX preflight decision into a testable preflight()📊 Changes
4 files changed (+58 additions, -5 deletions)
View changed files
📝
runtime/src/host_cpu.cpp(+15 -0)📝
runtime/src/host_cpu.h(+7 -0)📝
runtime/src/main.cpp(+4 -5)📝
runtime/test/host_cpu_test.cpp(+32 -0)📄 Description
Summary
Coordination item:
OLD-9915(carry-forward ofold-pr/9915, preserving original authorSunkiller-qc).Problem & Root Cause
gta6rt's AVX / host CPU preflight decision (checking missing ISA features, respectingdry_run, and formatting the refusal message) lived inline inruntime/src/main.cpp, so it could not be unit-tested directly against synthetic feature masks.Implementation
host_cpu::preflight(...)inruntime/src/host_cpu.handruntime/src/host_cpu.cpp, returning whether startup should proceed and any refusal message.runtime/src/main.cppto callhost_cpu::preflight(...).runtime/test/host_cpu_test.cppto testpreflight()directly across synthetic feature combinations anddry_runmodes.Tests Run
Environment: Windows 11 Pro 64-bit, Visual Studio 18 Community (
cl.exex64,/std:c++20 /W4 /WX).cl /nologo /std:c++20 /EHsc /W4 /WX /Iruntime/src runtime/test/host_cpu_test.cpp runtime/src/host_cpu.cpp+host_cpu_test.exe— PASS (host: 0 missing feature(s),host_cpu_test: all passed).\scripts\build_runtime.ps1 -jobs 8— PASS (runtime/build/gta6rt.exebuilt cleanly)python -I scripts/check_no_game_data.py runtime/src/host_cpu.cpp runtime/src/host_cpu.h runtime/src/main.cpp runtime/test/host_cpu_test.cpp— PASSDisclosure
AI-assisted: yes (carry-forward, rebase onto current
main, and local MSVC build/test verification; original implementation by Sunkiller-qc).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.