Frame generation: a card's model number is read past a mark in its name (#1028) #1042
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1042
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1042"
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?
@kibagami-nc on GitHub · 2026-11-28 11:55 UTC · original
kibagami-nc:fix/rtx-model-past-marks→main· +72 −9 · 2 files · 2 commits · merged 2026-11-29 08:16 UTCWhat happens
#1028's reporter has an RTX 5080, and the frame generation notice says:
"NOT ON THIS CARD" comes from
dlss_framegen_cardreturning false for the adapter's name. For a card it accepts, the line readsUNAVAILABLE (CHECK HAGS AND LOG)instead. Read as it is printed, "NVIDIA GeForce RTX 5080" returns true.But the notice prints the name filtered to ASCII letters, digits and a few signs (
" .,:()/-+"), because that is what the picture's font draws.dlss_framegen_cardreads the four digits right after "RTX", past whitespace only. So the name Windows gave must have a sign there that the notice dropped: a trademark sign, a zero-width space, or similar. The number stopped at it.The launcher's
older_rtx, which decides whether MFG Unlocker is offered to an RTX 20 or 30, reads the number the same way.What this does not change: whether DLSS Frame Generation runs. Streamline decides that (
dlss_fg_supported), and on #1028's PC it said no, probably for hardware-accelerated GPU scheduling. The name only picks the message (NOT ON THIS CARDagainstUNAVAILABLE (CHECK HAGS AND LOG)), the "unlocked by a mod" line, and whether the launcher offers AMD's FSR 3 files. So the reporter was told their card cannot do it, when the thing to check was HAGS.The change
streamline::rtx_model(name)reads the model number on the name's ASCII letters and digits alone, anything else counting as a space. It also reads past(TM)and(R).dlss_framegen_cardandplay.rs'solder_rtxuse it.older_rtxalso leaves out every carddlss_framegen_cardtakes. Ada workstation cards numbered 2000 and 3000 (NVIDIA RTX 2000 Ada Generation,RTX 3000 Ada Generation Laptop GPU) read as models 2000 and 3000. They were offered MFG Unlocker, though they have DLSS Frame Generation of their own. Found in review by Exopus-0x65f7ad0; it predates this change.Tests
streamline::card_tests::a_card_name_reads_as_its_model_past_marks:RTX™ 5080,RTX+ zero-width space +5080,RTX+ no-break space +5090 Laptop GPU,RTX(TM) 4070 SUPER,RTX® 3080 TiandRTX5060are each read as their model;RTX A4000,GTX 1080,RX 7900 XTXand an empty name are not;dlss_framegen_cardtakes the marked 5080 and the zero-width-space one, and still refuses a marked 3080, a Quadro RTX 4000 and an RTX A6000.play::tests::cards_offered_mfg_unlocker: adds a marked 3080 (offered) and a marked 5080 (not), and the 2000 and 3000 Ada cards (not offered).cargo test -p victory-gpu --lib --locked: 454 passed.cargo test -p victory --locked: 26 + 2 passed.-p victory-gpu -p victory,-D warnings, default and--all-features): nothing in the changed lines. It stops onmain's ownmanual_is_multiple_ofandsome_filterfindings (fixed in #665). With those allowed, both builds are clean.The exact sign in #1028's card name is not known yet. I asked for the
Streamline loaded ... adapter=line of the reporter's log, which prints the name as Windows gives it.No game files, dumps or extracted data are included.
@Exopus-0x65f7ad0 on GitHub · 2026-11-28 12:56 UTC · original
Reviewed the diff. The mark handling looks right to me:
letters_and_digitsturns™,®, NBSP and the zero-width space into spaces, and theTM/Rstrip handles the(TM)/(R)spellings. The import also resolves, sincevictory_hlere-exportsvictory_gpu::streamline(crates/victory-hle/src/lib.rs:29).One gap, which the rewrite of
older_rtxmakes easy to close. It predates this PR, because the old digit check had the same result.Ada workstation cards have model numbers that start with 20 or 30:
rtx_model("NVIDIA RTX 2000 Ada Generation")returnsSome(2000), soolder_rtxis true.rtx_model("NVIDIA RTX 3000 Ada Generation Laptop GPU")returnsSome(3000), soolder_rtxis true.For both names,
dlss_framegen_cardis also true, through the" ADA"check, and the test in this PR asserts that for the 2000 Ada. So inplay.rs:879these cards get the MFG Unlocker offer, even though they run DLSS Frame Generation natively.A one-line fix:
It could go with an assert such as
assert!(!older_rtx("NVIDIA RTX 2000 Ada Generation")).RTX PRO 2000 Blackwellis not affected, becausertx_modelreturnsNonewhen "PRO" follows "RTX".@kibagami-nc on GitHub · 2026-11-28 13:12 UTC · original
Good catch, thanks. Both names read as 2000 and 3000, and
dlss_framegen_cardtakes both, so they were offered a mod they don't need. Your fix is in4796eb9:older_rtxnow leaves out every carddlss_framegen_cardtakes, and the test asserts that the 2000 Ada and the 3000 Ada Laptop are not offered.cargo test -p victory: 26 + 2 passed; clippy clean apart from main's three findings (#665).4796eb95bbto6931338fed