mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 00:08:52 +00:00
PR #3798 (in the base as 90a7aeea5) gives a card the host reports with no
dedicated memory the engine's figure for the card of the same name. The
match was loose: the first engine card whose name contained the other
won, and nothing stopped it being used twice. Two identical cards of
different sizes both got the first one's size, and a "7900 XT" listed
before a "7900 XTX" took the XTX's 24 GB.
The match is now a pure function (engineVramForHostCards in
lib/hardware-summary.ts): each engine card is used once, the same name
first, then a name that contains the other, then the same position when
both lists have the same length; an unmatched card stays at 0 as before.
Test: tests/onboarding-engine-vram.test.mjs renders the wizard's memory
panel (2 of 4 fail on the base: W7600 8+16 shown as 8+8; 7900 XT shown as
24 GB), 4 pass; onboarding-memory 3/3; tsc clean.