Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab31488793 | ||
|
|
bc5b458ded | ||
|
|
59d26fa7f1 | ||
|
|
f9436c095f | ||
|
|
428df7f8cd | ||
|
|
c876bbdf71 |
No files matched your search
+67
-2
@@ -19,6 +19,61 @@ GitHub release body, so a missing section will mean an empty release note.
|
||||
|
||||
### Added
|
||||
|
||||
- **A whole-resource tag now yields the size the tagged `sl::Resource` declares.** Streamline
|
||||
documents a zero `extent` as "use the entire resource"; a title tagging that way stated the
|
||||
render size nowhere the Overlay read, and Dying Light: The Beast (SL 2.8.0) still published no
|
||||
extent on the `slSetTagForFrame` build with both tag rows live. `TagSize` in `fl_sl_inputs.h`
|
||||
reads the extent first and, when it is zero, the Resource's own `width/height` — GUID-checked,
|
||||
from the argument the hooked API received, on the local walk and both global-tag detours alike,
|
||||
so the three routes cannot disagree about what a tag says. A Resource declaring no size is
|
||||
still the honest unknown. Unit cases cover the shape, precedence of a non-zero extent over the
|
||||
Resource, a Resource that fails the GUID check and a half-declared size; the harness tags in
|
||||
that shape under `--sl-tag-whole-resource` and an injected case asserts the exact size arrives
|
||||
on every record through the 2.8 export.
|
||||
|
||||
### Changed
|
||||
|
||||
- **7a on Dying Light: The Beast closes as measured `N/A`** (docs): the 00:53 capture on the
|
||||
whole-resource build still carried no render size on either global-tag route, so the quality
|
||||
byte and the render size are `N/A` on this title, honestly, and the derived-label decision
|
||||
applies to the titles that print the line. The DLSS-FG-on `presents = tokens` result is now
|
||||
five for five; by owner decision it is handled in its own session and PR (`HANDOFF` 7a, §H5).
|
||||
- **`20_OPEN_QUESTIONS` §H5 has a candidate title for case 3.** Dying Light: The Beast at DLSS
|
||||
with DLSS Frame Generation on read `presents = tokens` on four captures (the same title with
|
||||
FSR FG read ×2; Cyberpunk on Streamline 2.7.1 read ×3.99), so the report printed `frame
|
||||
generation: none` on a generating title. The two readings the record cannot separate and the
|
||||
discriminator — the owner's counter — are pre-committed there.
|
||||
|
||||
- **A row for `sl.interposer.dll!slSetTagForFrame`, Streamline 2.8's frame-based tag entry
|
||||
point.** Dying Light: The Beast ships Streamline 2.8.0, which deprecates `slSetTag` in favour of
|
||||
`slSetTagForFrame` (the frame token first, then the same tag list); the title published `Dlss`
|
||||
identity on every batch across three captures and the params bit on none, because the only
|
||||
params row hooked the deprecated export. The new detour hands the list to the same tag walk, has
|
||||
its own trampoline, and is selected by SYMBOL
|
||||
through a constant the inventory header binds to its row with a `static_assert` — Pass B forbids
|
||||
the literal anywhere else. **The params family is published when whole**, once every tag export
|
||||
the loaded interposer has is patched — a 2.7 interposer is whole with `slSetTag` alone, a 2.8 one
|
||||
needs both — because the first cut published it on the first row and the frame-based fixture
|
||||
measured 38 of 41 records claiming params, the ffx leaves' install-window defect from #110
|
||||
again. The stub exports it, the harness tags through it under `--sl-tag-for-frame`, and a Catch2
|
||||
case asserts the exact tagged extent arrives on every record with `slSetTag` never called.
|
||||
- **`tools/vendor-exports.ps1` unions exports across every copy of a module name** and lists every
|
||||
distinct version seen, instead of recording the first copy the walk reached. With `sl.interposer.dll`
|
||||
installed as 2.7.1 and 2.8.0 side by side, whether the oracle contained `slSetTagForFrame`
|
||||
depended on directory order; `docs/vendor-exports.json` is regenerated (ten interposer copies,
|
||||
eight versions from 1.5.6 to 2.10.3).
|
||||
|
||||
- **The report's `render -> output` line is computed, not "not computed yet".** Every real-title
|
||||
run since 2026-08-15 printed the raw sizes two lines above an N/A. `UpscaleExtent` takes the
|
||||
MODAL (render, output) tuple over the records that claim both `FL_MEASURED_UPSCALER_PARAMS` and
|
||||
`FL_MEASURED_OUTPUT_RES`, and the line prints the two measured sizes, `03_METRICS` §Upscaling's
|
||||
`sqrt((outW×outH)/(renW×renH))`, the reciprocal as a render-scale percentage, the record counts,
|
||||
and a **SETTINGS MOVED** flag when the window held more than one tuple — modal rather than mean,
|
||||
because averaging across a settings change is the classic way a benchmark number stops meaning
|
||||
anything. Cyberpunk's 1485×835 at 2560×1440 reads `1.72x (58% render scale)`. **No preset name is
|
||||
derived from it**: whether a label such as "≈ Balanced" may appear beside a measured field is
|
||||
HANDOFF item 7a's owner decision, and the quality byte stays what the writer measured.
|
||||
|
||||
- **The SDK 2.x loader is the fourth AMD row, because three loader-shipping titles read silent
|
||||
behind the leaf-only build.** The owner's run on #110 (thirteen captures, nine titles, one launch
|
||||
each) landed rows A1–A3 exactly as pre-committed — Lies of P `Fsr3` / `FsrFg` / `118.98 → 238.02
|
||||
@@ -41,8 +96,16 @@ GitHub release body, so a missing section will mean an empty release note.
|
||||
3.0 route; and **Rune Factory: Guardians of Azuma is HANDOFF 7b's statically linked title** — the
|
||||
monolith ships beside it and is never loaded, yet the Streamline token count still read
|
||||
`59.99 → 119.95 (×2 FG)`, so the ceiling for such a title is the trio with the vendor missing, not
|
||||
Presented FPS alone. Owed: the three loader titles against §H11 row R6. `20_OPEN_QUESTIONS` §H11
|
||||
carries the run table; `HANDOFF` 7b/7c and `spike-notes` §9 carry the corrections.
|
||||
Presented FPS alone. **Row R6 ran the same night on this build:** Dying Light: The Beast at FSR +
|
||||
FSR FG printed `FSR (3.1 or 4 …)` / `FsrFg` / `70.49 → 140.9 (×2 FG)` with `frames/upscale-drained`
|
||||
1.01, and KCD2 at FSR the identity with `none` at 1.00 — the loader row carries both, once, which
|
||||
is the K = 1 control confirmed on a real title. Wukong at FSR with FG off read silent at the
|
||||
monolith and the loader alike with the monolith loaded, and offers no FSR frame generation at
|
||||
all: FSR upscaling compiled into its UE plugin (Rune Factory's shape), the monolith shipped and
|
||||
loaded for nothing this hook sees — the second static title, and nothing more is owed on AMD
|
||||
identity beyond the FSR 3.0 host route.
|
||||
`20_OPEN_QUESTIONS` §H11 carries the run tables; `HANDOFF` 7b/7c and `spike-notes` §9 carry the
|
||||
corrections.
|
||||
|
||||
- **AMD identity is measured through the ffx-api leaves, and the first non-NVIDIA vendor
|
||||
reaches the record.** HANDOFF item 7c. Lies of P at FSR 3.1 + frame generation printed
|
||||
@@ -260,6 +323,8 @@ GitHub release body, so a missing section will mean an empty release note.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **A candidate with no main module yet is counted as unreadable, not dropped as absent.** `TargetResolverTests.OneInstanceResolves` went red on the hosted runner twice in one hour on 2026-09-04 with `TargetNotRunning` about a process the test had just shown was enumerable: a freshly started process can be in the snapshot before its image is mapped, `Process.MainModule` is then null, and the resolver skipped it without counting it — narrowing the set exactly the way its own comment says "could not look" must not. It is now counted like a process we lack the rights to read (so the answer is `TargetAmbiguous`, never a false `TargetNotRunning`), and the test's "visible" wait means readable, not merely enumerated.
|
||||
|
||||
- **Two review checklists were boxes that could not fail**, in `19_SAFETY` §Review checklist and in
|
||||
the pull-request template: *"Is there a Tier-2 degradation path if the hook is unavailable?"*
|
||||
Under a two-rung ladder the answer is always yes. Replaced with something falsifiable — does the
|
||||
|
||||
@@ -149,7 +149,8 @@ Every hook must be listed here with a purpose. Anything not on this list is not
|
||||
| NGX: `NVSDK_NGX_D3D11/D3D12/VULKAN_CreateFeature`, `EvaluateFeature`, `ReleaseFeature` | Which NGX feature is *actually created and evaluated per frame*: SuperSampling (DLSS), RayReconstruction (DLSS-D), FrameGeneration (DLSS-G) |
|
||||
| NGX parameter accessors (`NVSDK_NGX_Parameter_SetI/GetI/SetUI`) — **exported by `sl.common.dll` only; see below** | `Width`/`Height` (render) vs `OutWidth`/`OutHeight` (output), `PerfQualityValue` (quality preset), sharpness |
|
||||
| ✅ Streamline: `slEvaluateFeature` · ⏳ `slInit`, `slSetFeatureLoaded`, `slSetConstants`, `slGetFeatureRequirements` | Feature set actually active when the game goes through SL rather than NGX directly (`kFeatureDLSS`, `DLSS_G`, `DLSS_RR`, `Reflex`, `NIS`). **Built 2026-08-09**, identity only: one MinHook detour on `sl.interposer.dll!slEvaluateFeature`, resolved **module-scoped** and installed lazily by the watchdog. Sets `FL_MEASURED_UPSCALER` + `FL_HOOK_UPSCALER_IDENTITY`; decodes `kFeatureDLSS`/`kFeatureNIS` and reports `FL_UPSCALER_UNKNOWN` for anything else. **Never `FL_UPSCALER_NONE`** — a Streamline-only writer cannot see FFX, XeSS or NGX-direct, and `NONE` is the only one of the three states that may be aggregated as a negative |
|
||||
| ✅ Streamline: `slSetTag` | The **global** resource tags, where a title states the size of the buffer it is upscaling *from*: `kBufferTypeScalingInputColor`'s extent → `renderW/H`. **Built 2026-08-15** (`FL_HOOK_UPSCALER_PARAMS`), and it is an ALTERNATIVE to the local tags in `slEvaluateFeature`'s `inputs`, not a layer over them — `sl_core_api.h:258` says global and local tags "do NOT interact", so a title using one yields nothing from the other and both are read. Published only on a frame where an evaluation was also seen, because a tag is viewport state that outlives any one frame. This row was MISSING from this table while the hook shipped, which is the gap the banner above now names |
|
||||
| ✅ Streamline: `slSetTag` | The **global** resource tags, where a title states the size of the buffer it is upscaling *from*: `kBufferTypeScalingInputColor`'s extent → `renderW/H` — **or, since 2026-09-05, the size the tagged `sl::Resource` declares when the extent is zero** (`TagSize` in `fl_sl_inputs.h`, shared by all three tag routes; GUID-checked; a Resource declaring no size is still the honest unknown). **Built 2026-08-15** (`FL_HOOK_UPSCALER_PARAMS`), and it is an ALTERNATIVE to the local tags in `slEvaluateFeature`'s `inputs`, not a layer over them — `sl_core_api.h:258` says global and local tags "do NOT interact", so a title using one yields nothing from the other and both are read. Published only on a frame where an evaluation was also seen, because a tag is viewport state that outlives any one frame. This row was MISSING from this table while the hook shipped, which is the gap the banner above now names |
|
||||
| ✅ Streamline: `slSetTagForFrame` | The same global tags through **Streamline 2.8's frame-based entry point**, which deprecates `slSetTag`: `(const FrameToken&, const ViewportHandle&, const ResourceTag*, uint32_t, CommandBuffer*)` — the token first, then exactly `slSetTag`'s list, handed to the same tag walk. **Built 2026-09-04** (`FL_HOOK_UPSCALER_PARAMS`, its own trampoline; the family is now **published when whole** — once every tag export the loaded interposer has is patched — because publishing on the first row entitled records the second was not yet producing, 38 of 41 on the fixture: the ffx leaves' #110 defect again, fixed the same way). Measured need: Dying Light: The Beast (SL 2.8.0) published `Dlss` identity on every batch and the params bit on none across three captures, because a 2.8 title that tags per frame never calls the deprecated export. The token is not read; the frame count stays with `slGetNewFrameToken`. The installer picks this detour by SYMBOL (`kSymbolSlSetTagForFrame`, bound to the row by `static_assert`), not by family, since the two rows share a family bit and differ in signature |
|
||||
| ✅ **FidelityFX ffx-api: `ffxDispatch` on the FOUR modules a game calls** — `amd_fidelityfx_dx12.dll` (SDK 1.1.x monolith), `amd_fidelityfx_upscaler_dx12.dll`, `amd_fidelityfx_framegeneration_dx12.dll`, **and `amd_fidelityfx_loader_dx12.dll`** (added the evening of 2026-09-04: three loader-shipping titles at FSR produced zero dispatches at any leaf export, so the loader is where their calls arrive) · ⏳ FSR 3.0 host route `ffx_fsr3_x64.dll!ffxFsr3ContextDispatchUpscale` / `ffxFsr3DispatchFrameGeneration` · ~~`ffxFsr2ContextCreate`~~ · ~~`ffxCreateContext`~~ | **Built 2026-09-04** (`HANDOFF` item 7c). One observer behind three trampolines reads the DESCRIPTOR the title passed — head type first, body only after the type matched a constant from the vendored MIT headers (`third_party/fidelityfx/`, tag v2.3.0): **UPSCALE** → identity (`FSR3` from the monolith, `FSR_UNVERSIONED` from the 2.x upscaler DLL, which hosts FSR 3.1 and FSR 4 behind one type) + `renderSize` → `renderW/H` (quality and sharpness `0xFF`: the dispatch carries neither) + one COUNT; **PREPARE / PREPARE_V2** → `frameID` counted on a *new* index only — this vendor's `slGetNewFrameToken`, the `fgEvaluations` producer once a title has ever prepared, with the UPSCALE count as the fallback for a title that never does; **FRAMEGENERATION** → `fgMode = FSR_FG` on that present. Rule 4: the argument of the API we hooked, never `context`, `pNext`, a command list or a resource. **Why all four:** a UE5 title ships the two leaves with no loader and calls their exports; a loader-shipping title calls the loader's export and the signed loader reaches its providers through an object, not the leaves' exports (measured: Dying Light: The Beast, KCD2, Wukong). The morning's "never the loader" rested on the export tables alone and was reversed by the run. What guards against a loader that DID re-enter a leaf's export is the K = 1 control with all four hooked and the consumer's `frames/upscale-drained`, both of which read 2× in that case. `ffxCreateContext` is deliberately NOT a row — nothing it carries fills a field the dispatch does not, and its honest family would collide with `slEvaluateFeature`'s under the installer's equality binding. The family is compound (`IDENTITY \| PARAMS \| FG_EVALUATIONS`), pinned by `static_assert`s that also bind the leaf table to the rows both ways and refuse the loader as a row. Streamline keeps precedence for the count once it has ever issued a token, so every §S31-validated title is byte-identical. Second count: the consumer prints `frames/upscale-drained`, the AMD `tokens/batch`. **FSR 3.0** (Cyberpunk's `ffx_fsr3_x64.dll`, named exports) is its own later PR — ten host headers from tag v1.1.4, and one title here to test on |
|
||||
| XeSS: `xessD3D12CreateContext`, `xessD3D12Init`, `xessD3D12Execute` | `outputResolution`, `qualitySetting`, XeSS version; `xess_fg` variants for XeFG |
|
||||
| ✅ **Application frames per present** (`fgEvaluations`) — **`sl.interposer.dll!slGetNewFrameToken` since 2026-09-03** | Native vs Displayed frame counts at Tier 1 — see `03_METRICS` §Frame Generation. **The producer is the frame-token export**: Streamline hands a title one token per application frame and the title must ask; the detour counts distinct tokens between two presents (pointer changes, nothing dereferenced), `FL_HOOK_FG_EVALUATIONS` is its family, and it installs on every Streamline 2 title including the ones that evaluate nothing through `slEvaluateFeature`. Rule 4: the out-parameter of an API we hooked. Premise and its gate in `03_METRICS`; pre-committed table in `20_OPEN_QUESTIONS` §S31. *The row as it stood before:* ~~NGX/SL/FFX/XeSS FG feature evaluations per present. **Built 2026-08-15 for Streamline, and MEASURED TO YIELD NOTHING ON THAT ROUTE**~~ — `slEvaluateFeature(kFeatureDLSS_G)` is never called by Cyberpunk 2077 (0 across ~14,000 batches, four FG settings), so this row installs, is honest, and counts zero; see `docs/HANDOFF.md` item 3. Built on the detour that was already there: `kFeatureDLSS_G` contributes to a saturating COUNT in the same word the feature bits live in (`fl_sl_seen.h`) rather than to a bit, because a bit collapses several evaluations between two presents into one — and under multi-frame generation that is the common case, not the edge. The row's family is therefore compound (`FL_HOOK_UPSCALER_IDENTITY \| FL_HOOK_FG_EVALUATIONS`), pinned by a `static_assert` because `hookinventory-check` reads that column as an opaque identifier. **Counts EVALUATIONS, not generated frames** — the 2026-08-14 owner ruling; the multiplier lives in `sl::DLSSGOptions`, which is only reachable by the route §2b refused. ~~Non-NVIDIA FG vendors are **deferred with a written rationale**: `amd_fidelityfx_framegeneration_dx12.dll` 3.1.5 exports only the five generic `ffx*` entry points, identical to five sibling modules, so identity is in the arguments and we have no headers~~ — **AMD has a producer since 2026-09-04** (the FidelityFX row above: the PREPARE dispatch's `frameID`, or the UPSCALE count on a title that never prepares, feeds `fgEvaluations` when Streamline has never issued a token); Intel stays at the census (`20_OPEN_QUESTIONS` §Scope decisions, by licence); the FSR 3.0 host DLLs are deferred to their own PR |
|
||||
|
||||
@@ -30,7 +30,7 @@ Rules for this document:
|
||||
| — | **No `v1 → v2` migration** | Nothing shipped, so no such database exists. `0001_init.sql` creates the current schema |
|
||||
| — | ~~**Multi-process titles are refused as `TargetAmbiguous` in v1**~~ — **the Chromium case is RESOLVED the same day (2026-09-03), by the vendor's own label** | Chromium-based runtimes — NW.js, Electron, RPG Maker MV/MZ, a large share of the VN catalogue — run several processes from ONE image path (browser, renderer, GPU), and *Flower in Us* refused as `TargetAmbiguous`. The presenting process is Chromium's GPU process, which owns no window, so "the one with the window" and "the parent" were both wrong picks. **What resolves it:** Chromium marks that process with `--type=gpu-process` on its own command line. `TargetResolver` now reads each candidate's command line through `NtQueryInformationProcess(ProcessCommandLineInformation)` — **served by the kernel, no `ReadProcessMemory`, no PEB walk, `PROCESS_QUERY_LIMITED_INFORMATION` only**, which is the rule-4 line `HeldProcessHandle` already draws — and resolves only when **exactly one** readable candidate carries the flag as a whole argument. Two GPU processes (two instances), none, or any unreadable candidate still refuse. §S27 is untouched: consent is keyed on the path, every candidate is that path, the guard scans the pid chosen, and `--pid` stays forbidden. **Measured the same evening, and the first rule did not fire:** *Flower in Us* runs **six** processes — browser, `crashpad-handler`, three `utility`, `renderer` — and **no `--type=gpu-process` at all**. NW.js runs the GPU **in-process, in the browser**, which is the one process Chromium leaves untyped. Second rule added: exactly one untyped candidate, every other candidate typed, no GPU process ⇒ the browser is the target; two untyped candidates are two instances and refuse. The refusal line now prints the tree (`browser=1, renderer=1, utility=3, …`) so the next unknown shape is data rather than a bare `TargetAmbiguous`. **Still unmeasured:** whether the Overlay loads and sees presents inside that browser process |
|
||||
| — | **Intel XeSS / XeFG identity is closed at the census — no hook on any `libxess*.dll` export** (decided 2026-09-04, delegated by the owner) | The XeSS SDK failed `18_GPU_VENDOR_APIS` §Checklist (Intel Simplified Software License: binary-only grant, no reverse engineering, termination; headers forbid copying), so no declaration may be vendored or re-declared. The signature-free counter that seemed to survive that — an assembly thunk on a named export — still inline-patches Intel's code inside the game process, which the same licence forbids as *modification*; it would also be the only entry outside `FL_HOOK_GUARD` and a second build language, for identity alone. An Intel title therefore reports upscaler `NOT_REPORTED` and, with `libxess_fg.dll` in the census, Presented FPS under rule 6's *"MAY include generated frames"* qualifier — honest, and the same answer NGX-direct got. **Reversal condition:** Intel relicenses the headers so the checklist clears; then §H11's AMD route applies to Intel verbatim |
|
||||
| — | **A title whose upscaler or frame generation is compiled into its executable is Presented FPS + the census's qualifier, in attach mode, and that is the ceiling for IDENTITY** (recorded 2026-09-04; **one such title found the same evening**) | No module for the census, no export for the inventory: nothing by name. What survives static linking is behaviour on interfaces we hook — the FSR3 frame-generation proxy swapchain at *creation* (launch mode only, §S1 deferred) and queue-side cadence with no vendor name on it. ~~**No installed title has this shape**~~ — **Rune Factory: Guardians of Azuma has it**: `amd_fidelityfx_dx12.dll` ships beside the executable and is never loaded (the census has no AMD module), FSR frame generation is on, and the report read `59.99 → 119.95 (×2 FG)`, *technology not identified* — because on a UE5 title **Streamline's frame token is requested whether or not NVIDIA's features are the ones running**, so the application-frame COUNT survives static linking even though the identity cannot. The ceiling is therefore lower than this row first said: the trio with an unidentified technology, not Presented FPS alone (§H11's run table). Identity for such a title stays out of reach by name |
|
||||
| — | **A title whose upscaler or frame generation is compiled into its executable is Presented FPS + the census's qualifier, in attach mode, and that is the ceiling for IDENTITY** (recorded 2026-09-04; **two such titles found the same night — Rune Factory, and Black Myth: Wukong for its upscaling, which ships and loads the 1.1.x monolith and never dispatches to it**) | No module for the census, no export for the inventory: nothing by name. What survives static linking is behaviour on interfaces we hook — the FSR3 frame-generation proxy swapchain at *creation* (launch mode only, §S1 deferred) and queue-side cadence with no vendor name on it. ~~**No installed title has this shape**~~ — **Rune Factory: Guardians of Azuma has it**: `amd_fidelityfx_dx12.dll` ships beside the executable and is never loaded (the census has no AMD module), FSR frame generation is on, and the report read `59.99 → 119.95 (×2 FG)`, *technology not identified* — because on a UE5 title **Streamline's frame token is requested whether or not NVIDIA's features are the ones running**, so the application-frame COUNT survives static linking even though the identity cannot. The ceiling is therefore lower than this row first said: the trio with an unidentified technology, not Presented FPS alone (§H11's run table). Identity for such a title stays out of reach by name |
|
||||
| — | ~~**Tier 2 requires an elevated Agent**~~ | **CLOSED 2026-08-28 by the two-rung ladder.** The requirement came from Windows restricting ETW trace sessions; there is no ETW rung, so **no capture tier needs elevation**. Elevation is optional everywhere and buys exactly two things (CPU temperatures via PawnIO, attaching to elevated targets — ADR-9). An unelevated Agent whose Tier-1 attempt fails lands on Tier 2, which is what every unhooked session lands on regardless of privilege |
|
||||
|
||||
---
|
||||
@@ -94,7 +94,7 @@ or it becomes the next stale status claim this file exists to record.
|
||||
| **S29** | 🔴 **open, new 2026-08-05 — five ✅ and two ◐, counted off the glyphs below on 2026-08-20** | (a) ◐ **CORRECTED**: the honesty assertion *is* in the merge gate, natively (`fl_guard`, 20.58 s on CI); only the **managed** drain is ungated, and §S19(b) is **not** a prerequisite of the feature hooks — the original claim was wrong and had been used to re-order the work. **Sharpened 2026-08-06:** fixing §S19(b) alone would still gate nothing, because `build.ps1`'s `-SkipIntegration` applies `--filter 'Category!=Integration'` and excludes the class *before* the guard is ever asked. Two independent mechanisms produce one absence, and `ci.yml` must drop the switch too; (b) ✅ `fl_vtable_indices` now pins the Overlay's indices through a shared header; (c) ✅ **closed 2026-08-06 by deleting `ShouldUnhookAsync`** — zero production callers, strictly weaker than `ScanOnceAsync`, and inverted in polarity; the gate's public instance surface is now pinned to `{StartAsync}`; (d) ◐ `vklayer-blastradius` case 3 is now an assertion, but the script still runs only by hand; (e) ✅ **closed 2026-08-06 host-side**, with a held process handle and a classifier that takes no elapsed-time parameter, so a frozen `writeIndex` can never end a session; (f) ✅ **closed 2026-08-20**: the normative contradiction between CLAUDE.md rule 7 and `03_METRICS` about inline RayQuery is settled the way the entry proposed — AS-build activity proves ray tracing is happening, *naming the technique* is what needs a DXIL scan — and rule 7 is amended in the PR that wrote the hooks. Its second half closes with it: `FL_MEASURED_RT` now has a producer (both command-list detours, installed off the game's own device), so all three conjuncts of the `No` branch are live and **`Yes` and `No` are both reachable for the first time**, proved by injection in both directions; (g) ✅ the present-only writer claimed `FL_MEASURED_OUTPUT_RES` unconditionally, including on records with no size |
|
||||
| **S30** | ✅ **closed 2026-08-15** | Answered on the title that raised it: with Ray Reconstruction on, Cyberpunk 2077 evaluates `kFeatureDLSS_RR` on every application frame and `kFeatureDLSS` **not once**, so RR was doing the upscaling and the decode had no arm for it. Evidence rather than inference: `renderW/H` are published only on a frame that drained an evaluation and read 1485×835 = 0.58 × 2560×1440, so the scaling-input tag arrives ON the RR evaluation. Two further defects fell out — the pre-committed decision table had two holes, and the fix contaminated the census that found it (it derived the id from the decoded byte) |
|
||||
| **S31** | ✅ **resolved 2026-09-04 — row P1, and `tokens/batch = 1.00`** | Is a drained Streamline batch an application frame? **Yes.** The `slGetNewFrameToken` count (#103, #105) reads 1.00 / 2.99 / 3.99 against Cyberpunk's own off / ×3 / ×4 and 4.00 on Hell Is Us, and on every leg with batches the two counts agree to the frame. Two independent per-frame API counts are the oracle four instruments could not be. `fg_factor` is published; `none` is reachable by counting. *(The row as it stood while open:)* ◐ **row P2, 2026-08-27 — the ORACLE is retired, the QUESTION is not** | Is a drained Streamline batch an application frame? The PresentMon 2.x `FrameType` test, with its decision table pre-committed BEFORE the run and `tools/frametype-oracle.ps1` producing the input as two dimensionless ratios. **Two obstacles measured before it could be run**: the console binary will not start a trace session unelevated on the dev box (exit 6; the account is in neither Administrators nor Performance Log Users, and the running shared service does not help), and `--track_frame_type` is a **beta** option whose own help says it needs application or driver instrumentation of the Intel-PresentMon provider — so it may be as unavailable as `fl-baseline-probe` proved to be. Two of the table's six rows retire it outright. Blocks HANDOFF item 3's producer decision |
|
||||
| **H11** | ◐ **AMD ffx-api BUILT and RUN 2026-09-04 (A1–A3 accepted; the loader row added the same evening after three loader titles read silent); Intel closed at the census by licence; FSR 3.0 host route deferred to its own PR** | XeFG and FSR3-FG identity. The AMD half is measured on nine titles: the three ffx-api leaves AND the SDK 2.x loader are hooked (the loader turned out to be the game's entry on loader-shipping titles, with the leaves silent behind it), the vendored MIT headers (tag v2.3.0) decode the dispatch descriptor, and rows A1–A3 landed as pre-committed. Owed: the three loader titles again, against row R6. Intel's SDK failed the licence checklist, so XeSS/XeFG stay at the census (§Scope decisions). `ffx_fsr3_x64.dll` (FSR 3.0, Cyberpunk only here) needs ten host headers from tag v1.1.4 and is deferred with that costing written |
|
||||
| **H11** | ◐ **AMD ffx-api BUILT and RUN 2026-09-04 (A1–A3 accepted; the loader row added the same evening after three loader titles read silent); Intel closed at the census by licence; FSR 3.0 host route deferred to its own PR** | XeFG and FSR3-FG identity. The AMD half is measured on nine titles: the three ffx-api leaves AND the SDK 2.x loader are hooked (the loader turned out to be the game's entry on loader-shipping titles, with the leaves silent behind it), the vendored MIT headers (tag v2.3.0) decode the dispatch descriptor, and rows A1–A3 landed as pre-committed and **R6 closed on Dying Light: The Beast and KCD2 the same night** (`FSR (3.1 or 4 …)` / `FsrFg` / ×2 / 1.01 and `none` / 1.00 through the loader row). Wukong's FSR upscaling is compiled in (Rune Factory's shape; the title has no FSR frame generation), so nothing more is owed on the AMD half; the FSR 3.0 host route is the one deferred piece Intel's SDK failed the licence checklist, so XeSS/XeFG stay at the census (§Scope decisions). `ffx_fsr3_x64.dll` (FSR 3.0, Cyberpunk only here) needs ten host headers from tag v1.1.4 and is deferred with that costing written |
|
||||
|
||||
~~**Six items are ❓ and one is 🚫.**~~ **Recounted 2026-08-05: TWELVE items block
|
||||
exit criterion 2, not seven, and the undercount came from reading only the ❓ rows.**
|
||||
@@ -3129,6 +3129,40 @@ probe never showed a deadlock.
|
||||
|
||||
### H5 ◐ · Proxy swapchains defeat the dummy-vtable assumption
|
||||
|
||||
> ### CASE 3 HAS A CANDIDATE TITLE — Dying Light: The Beast, Streamline 2.8.0, DLSS Frame Generation ON, 2026-09-05
|
||||
>
|
||||
> **The numbers.** Five 58 s captures at DLSS with DLSS Frame Generation on (the owner's
|
||||
> setting, confirmed after the runs): `presents = tokens = batches` on every one —
|
||||
> 4706 / 4258 / 4560 / 4311 / 3441 — so the report printed `FPS: 80.41 / 72.73 / 77.69 /
|
||||
> 73.64 / 58.87` and **`frame generation: none`**, with `sl.dlss_g.dll` and `nvngx_dlssg.dll`
|
||||
> (310.6) in the census. The fifth ran on the #116 build, 2026-09-05 00:53. **Owner decision
|
||||
> the same night: a separate session and a separate PR own this; nothing below is started
|
||||
> until the discriminator has a reading.**
|
||||
> **The same title with FSR frame generation on** read presents 8255 against 4129 tokens
|
||||
> (×2, the loader row, §H11 R6). **Cyberpunk 2077 on Streamline 2.7.1 with the same DLSS-G
|
||||
> generation (310.8), same GPU,** read presents 13706 against 3439 tokens (×3.99) on 2026-09-03.
|
||||
>
|
||||
> **What that means, stated as the two readings the record cannot separate.** Either (a)
|
||||
> Streamline 2.8's DLSS-G presents its generated frames on a path the class-vtable hook on
|
||||
> `Present`/`Present1` does not see — case 3 of this entry, realised, with the application
|
||||
> frames still counted by `slGetNewFrameToken` and the generated ones simply absent — or (b)
|
||||
> the title was not generating in those runs despite the setting. **The discriminator is the
|
||||
> owner's counter reading**: an in-game or Steam frame counter near 2× our `FPS:` line is (a);
|
||||
> one near our line is (b). It is pre-committed here so the next run answers it rather than
|
||||
> being read into whichever reading is more comfortable.
|
||||
>
|
||||
> **Why this is a rule-6 exposure and not a curiosity.** `none` there is computed —
|
||||
> `presents == application frames` — and under reading (a) that equality holds *because*
|
||||
> the generated presents are missing, so the report states the absence of frame generation on
|
||||
> a title that is generating. The consumer cannot tell this from a real off. Until the
|
||||
> discriminator runs, a `none` on a Streamline 2.8 title with DLSS-G in the census is a
|
||||
> **count**, not a verdict, and `03_METRICS` §FG has no wording for that case yet. This is the
|
||||
> §H5 outcome the entry was written to fear, on a newer Streamline than the one that measured
|
||||
> it not happening; whether the fix is a wording, a census-version gate (the interposer's file
|
||||
> version is ours to read — it is a module in our process, not game memory), or a second
|
||||
> present sink is the owner's decision after the reading. **What is NOT in doubt:** the
|
||||
> Streamline tag row (`slSetTagForFrame`, #115) is unrelated — this is about presents.
|
||||
|
||||
> ### NARROWED, NOT CLOSED — five real-title captures, 2026-08-15
|
||||
>
|
||||
> **What is now measured.** Cyberpunk 2077, SL 2.7.1, RTX 5080, D3D12, 2560×1440, DLSS
|
||||
@@ -3381,6 +3415,28 @@ load-bearing rather than stylistic.
|
||||
> title Streamline's token is there even when the upscaler and FG are AMD's, so the application-frame
|
||||
> count survives static linking. The identity does not, and cannot.
|
||||
>
|
||||
> **ROW R6 RUN, 2026-09-04 night, on #111 (one launch each):**
|
||||
>
|
||||
> | Title / setting | `upscaler` | `frame generation` | Trio | `frames/upscale-drained` | Verdict |
|
||||
> |---|---|---|---|---|---|
|
||||
> | **Dying Light: The Beast**, FSR + FSR FG | `FSR (3.1 or 4 …)`, 1505×847 | `FsrFg` | `70.49 → 140.9 (×2 FG)` | **1.01** (fg-dispatch/frame 0.99) | **R6-accept** — the loader row carries the title the leaf rows could not, at 1×, no double count |
|
||||
> | **KCD2**, FSR | `FSR (3.1 or 4 …)`, 1505×847 | `none` by count (3523 / 3523) | `FPS: 59.97` | **1.00** | **R6-accept** |
|
||||
> | **Black Myth: Wukong**, FSR (×2 runs; **the title has no FSR frame-generation option**) | `N/A` | `none` (Streamline tokens = presents) | `FPS: 39.15 / 90.64` | — (no dispatch at the monolith OR the loader) | **not R6 at all** — Rune Factory's shape, see below |
|
||||
>
|
||||
> Two of the three loader titles are closed on the first rerun, and the K = 1 control the fixtures
|
||||
> run is confirmed by a real title: with all four modules hooked, DL:TB's loader route counts
|
||||
> once. **Wukong is a different shape**: `amd_fidelityfx_dx12.dll` is *loaded* (it is in the census)
|
||||
> and *never dispatched to*, with the loader silent too, while FSR upscaling is on and Streamline's
|
||||
> tokens equal the presents. That is Rune Factory's shape with one difference — the monolith is in
|
||||
> the process — and the reading that fits every number is **FSR upscaling compiled into the UE
|
||||
> plugin (static, as Rune Factory's) with the 1.1.x monolith loaded for FSR frame generation and
|
||||
> idle while FG is off.** ~~The leg that tests it is Wukong with FSR frame generation ON~~ —
|
||||
> **the owner reports the title offers no FSR frame generation at all**, so the monolith is loaded
|
||||
> for nothing this hook can see (a plugin that ships it and never dispatches to it), and **Wukong
|
||||
> joins Rune Factory in §Scope decisions' static row**: FSR upscaling compiled into the UE plugin,
|
||||
> identity out of reach by name, the application-frame count carried by Streamline's token. Nothing
|
||||
> is owed on it.
|
||||
>
|
||||
> **Still deferred, with the costing written:** the FSR 3.0 host route — `ffx_fsr3_x64.dll!ffxFsr3ContextDispatchUpscale`
|
||||
> / `ffxFsr3DispatchFrameGeneration`, named exports, no struct decode for identity — needs ten
|
||||
> host headers from tag `v1.1.4` (`main` dropped `ffx_fsr3.h`), whose closure reaches
|
||||
|
||||
+48
-6
@@ -265,8 +265,14 @@ It is the route `17_HOOK_ENGINE` reads as natural, and it fails five ways:
|
||||
1. It needs an "indirect" inventory class, which becomes an **unconditional escape hatch
|
||||
from `hookinventory-check` Pass A** — its oracle would be "a `PFun_*` exists in a
|
||||
vendored header", and `sl_core_api.h:63` declares `PFun_slSetTagForFrame` for a symbol
|
||||
**zero measured modules export**. Any name the headers declare could be laundered past
|
||||
the gate.
|
||||
~~zero measured modules export~~. Any name the headers declare could be laundered past
|
||||
the gate. *(2026-09-04: `slSetTagForFrame` IS now exported — by `sl.interposer.dll` 2.8.0,
|
||||
which Dying Light: The Beast ships — and it entered the inventory the ordinary way, as a row
|
||||
Pass A checks against the measured oracle. The argument stands: the point was never that
|
||||
this one symbol was fictional, it was that a header-declared oracle cannot tell the two
|
||||
apart. The oracle itself needed a fix to see it: `tools/vendor-exports.ps1` took the FIRST
|
||||
copy of each module name, and with 2.7.1 and 2.8.0 both installed the row's verdict
|
||||
depended on directory order. It unions across copies now and lists every version seen.)*
|
||||
2. A second MinHook install site **reopens the install-after-stop window**
|
||||
`dllmain.cpp:643-646` exists to close.
|
||||
3. MinHook v1.3.4 has **no function-length oracle for a runtime-returned address**, so a
|
||||
@@ -694,7 +700,15 @@ Cyberpunk 2077 never chains `sl::DLSSOptions`, so 0xFF there is the title's trut
|
||||
`quality=` off the `render … quality=… upscaler=…` line. If it reads the preset, criterion 1
|
||||
is 5 of 5 on that title and this item is a spike-notes entry. If it reads 0xFF too, the
|
||||
Streamline options route yields nothing on either measured title, and the decision below is
|
||||
live.
|
||||
live. *(Runbook title 12 is Alan Wake 2 as of 2026-09-04; Epic may update the executable on
|
||||
launch, so launch first and grant after.)*
|
||||
- **The input to that decision is on the report now** (2026-09-04): `render -> output` prints the
|
||||
two measured sizes, `03_METRICS`' ratio and the render-scale percentage — Cyberpunk reads
|
||||
`1485x835 -> 2560x1440 = 1.72x (58% render scale)` — plus a **SETTINGS MOVED** flag when the
|
||||
window held more than one tuple. It prints **no preset name**; that is the decision below,
|
||||
still the owner's. Every FSR title measured on 2026-09-04 also reads `0xFF` for the quality
|
||||
byte, and on that route it is the true value rather than a gap: the ffx-api dispatch carries
|
||||
no quality mode at all, so the derived label is the only route to a preset name for AMD too.
|
||||
- **The decision, if 0xFF everywhere:** `renderW/H ÷ outputW/H` is *exact* (Cyberpunk: 1485×835
|
||||
at 2560×1440 = 0.58, which IS DLSS Balanced, and the menu agreed), and DLSS's preset ratios
|
||||
are documented constants (DLAA 1.0, Quality 0.667, Balanced 0.58, Performance 0.5, Ultra
|
||||
@@ -706,6 +720,28 @@ Cyberpunk 2077 never chains `sl::DLSSOptions`, so 0xFF there is the title's trut
|
||||
call, and if built, the byte stays 0xFF and the report says *derived*.
|
||||
- **Do not** reach for `slDLSSSetOptions` via `slGetFeatureFunction`: §2b refused it on five
|
||||
grounds that have not changed, and NGX-direct `NVSDK_NGX_Parameter_GetUI` is licence-blocked.
|
||||
- **Alan Wake 2 did not run on 2026-09-04** (the owner tried every workaround; the title is
|
||||
broken on this machine), so the measurement moved to **Dying Light: The Beast at DLSS**, the
|
||||
first Streamline title measured whose batches carry `kFeatureDLSS` — identity `Dlss` on 4,575
|
||||
of 4,575 batches. It read `UpscalerParams = 0` on three captures, because DL:TB ships
|
||||
**Streamline 2.8.0, which deprecates `slSetTag` for `slSetTagForFrame`**, and only the
|
||||
deprecated export had a row. The `slSetTagForFrame` row exists as of this entry (#115) —
|
||||
**and the rerun on it still read `UpscalerParams = 0` with both rows live**, so the title
|
||||
tags with a zero extent or not on this route at all. The next build reads the size the
|
||||
tagged `sl::Resource` declares when the extent is zero (`TagSize`, every route); one more
|
||||
DL:TB DLSS capture on it is ~~owed~~ **ran 2026-09-05 00:53 (#116 build): `N/A` stands** —
|
||||
params 0 of 3523 with both rows live and the fallback in. The route yields nothing on this
|
||||
title; the honest answer is `N/A`, and 7a on DL:TB is closed on that. What would reopen it
|
||||
is a tag-route census (calls per export, zero-extent seen, Resource-size seen), which needs
|
||||
a layout bump and is not worth one for a preset byte. The derived-label decision above is
|
||||
unchanged and applies to the titles that do print the line.
|
||||
- **Separately, and more important than the preset:** every DL:TB DLSS run (five, the last at
|
||||
00:53 on the #116 build) had DLSS Frame Generation ON per the owner, and every one read
|
||||
`presents = tokens`, `frame generation: none`. That is `20_OPEN_QUESTIONS` §H5 case 3's
|
||||
candidate title. **Owner decision 2026-09-05: this is its own session and its own PR.** Read
|
||||
§H5 first; the discriminator (the owner's counter beside our `FPS:` line) is pre-committed
|
||||
there and is the first thing that session asks for. Nothing in FG counting changes before
|
||||
that reading.
|
||||
|
||||
#### 7b. Titles whose upscaler or frame generation is compiled into the executable
|
||||
|
||||
@@ -739,7 +775,8 @@ hole; it does not close it.
|
||||
token is requested on that UE5 title regardless, so the count read `59.99 → 119.95 (×2 FG)`,
|
||||
*technology not identified* — the trio, with the vendor missing. Identity by name stays out of
|
||||
reach; §Scope decisions carries the corrected row. A disk scan cannot find this shape; a
|
||||
capture with the census line can.
|
||||
capture with the census line can. **Black Myth: Wukong is the second** — its FSR upscaling
|
||||
dispatches to neither the loaded monolith nor the loader, and it offers no FSR frame generation.
|
||||
|
||||
#### ~~7c. AMD and Intel identity, measured rather than inferred~~ — **AMD LANDED 2026-09-04; Intel closed; the owner's three launches are owed**
|
||||
|
||||
@@ -775,8 +812,13 @@ corrections to the entry below, each of which changed what got built:**
|
||||
`FsrFg` / ×2 on Hell Is Us), Expedition 33 showed the mixed-vendor shape (FSR upscale + DLSS FG ×3
|
||||
→ *active, technology not identified* at ×2.97), Cyberpunk at FSR 3 split across two AMD
|
||||
generations, and **Rune Factory turned out to be 7b's statically linked title** with the Streamline
|
||||
token count still reading ×2. **Owed after the loader row lands:** Dying Light: The Beast at
|
||||
FSR + FSR FG, KCD2 at FSR, Wukong at FSR — against row R6. **The FSR 3.0 host route
|
||||
token count still reading ×2. **Row R6 ran the same night on #111:** Dying Light: The Beast at
|
||||
FSR + FSR FG printed `FSR (3.1 or 4 …)` / `FsrFg` / `70.49 → 140.9 (×2)` with the counts agreeing
|
||||
at 1.01, KCD2 at FSR printed the identity and `none` by count at 1.00 — the loader row carries
|
||||
both, once. **Wukong at FSR read silent at the monolith AND the loader with the monolith loaded**:
|
||||
FSR upscaling compiled into its UE plugin (Rune Factory's shape) with the monolith loaded and
|
||||
unused — ~~owed: Wukong with FSR frame generation ON~~ **the title has no FSR frame-generation
|
||||
option (owner, same night)**, so Wukong is the second static title and nothing is owed on it. **The FSR 3.0 host route
|
||||
(`ffx_fsr3_x64.dll`, step 3 below) is deferred to its own PR** — ten host headers from `v1.1.4`;
|
||||
Cyberpunk at FSR 3 is its oracle and already prints `FsrFg` from the monolith beside it.
|
||||
|
||||
|
||||
+46
-2
@@ -1723,8 +1723,52 @@ one launch per capture, consent granted after launch. Exit codes and full report
|
||||
**Wukong** (FSR): **zero dispatches at any leaf export**, `upscaler: N/A` — the loader-row
|
||||
reversal; **Rune Factory** (FSR FG): no AMD module in the census, `59.99 → 119.95 (×2)` from
|
||||
Streamline tokens, *technology not identified* — 7b's statically linked title, with the count
|
||||
surviving and the identity not. **Owed after the loader row:** the three loader titles again,
|
||||
against row R6.
|
||||
surviving and the identity not. **Row R6, same night, on #111:** DL:TB FSR + FSR FG →
|
||||
`FSR (3.1 or 4 …)` / `FsrFg` / `70.49 → 140.9 (×2)` / 1.01 and KCD2 FSR → identity + `none` /
|
||||
1.00, both through the loader row at 1×; Wukong FSR (×2 runs) → silent at monolith and loader
|
||||
with the monolith loaded, and the title has no FSR frame-generation option — FSR upscaling
|
||||
compiled in (Rune Factory's shape), the monolith shipped and loaded for nothing this hook sees.
|
||||
- **2026-09-04, late: Dying Light: The Beast at DLSS, three captures (23:31 / 23:39 / 23:43), for
|
||||
7a after Alan Wake 2 would not run.** The first Streamline title measured whose batches carry
|
||||
`kFeatureDLSS`: `upscaler: Dlss` on 4720/4783, 4271/4345 and 4575/4657 records, `FPS 80.41 /
|
||||
72.73 / 77.69`, every batch identified, RT measured on ~98% of presents. **`UpscalerParams`
|
||||
0 of N on all three**, `render -> output: N/A`, quality byte never published. Cause, measured
|
||||
with dumpbin: DL:TB ships `sl.interposer.dll` **2.8.0**, which exports `slSetTagForFrame`
|
||||
(Cyberpunk's 2.7.1 does not); `sl.h` marks `slSetTag` deprecated in its favour, and a 2.8 title
|
||||
tagging per frame never calls the export the only params row hooked. The oracle had hidden it:
|
||||
`vendor-exports.ps1` recorded the FIRST `sl.interposer.dll` found (2.7.4.0), so the 2.8 export
|
||||
was absent from `docs/vendor-exports.json` until the tool unioned across copies (ten copies,
|
||||
eight distinct versions from 1.5.6 to 2.10.3). All three runs read `frame generation: none`
|
||||
with presents = tokens = batches; **which of the three had DLSS Frame Generation on is the
|
||||
owner's to say** — if any did, `none` there is the §H5 false negative on a title where the FG
|
||||
runtime (`sl.dlss_g.dll`) is in the census, and it is a finding about DLSS-G on SL 2.8, not
|
||||
about the tag row. Row added; rerun owed.
|
||||
- **2026-09-05 00:19, DL:TB at DLSS again, on the #115 build** (the payload is the CaptureHost
|
||||
bin's `FrameLedger.Overlay.dll`, rebuilt 00:17): `Dlss` 4331/4401, `FPS 73.64`, and
|
||||
**`UpscalerParams` still 0 of 4401** with the params family live — which, under
|
||||
publish-when-whole, means BOTH tag rows were patched. So the title either tags the scaling
|
||||
input with a **zero extent** ("use the entire resource") or tags it nowhere we hook. The
|
||||
zero-extent reading is the one the record can still act on: `sl::Resource` carries its own
|
||||
`width/height` (mandatory only on Vulkan, so filled or not on D3D12 at the title's choice),
|
||||
and `TagSize` in `fl_sl_inputs.h` now reads them when the extent is zero — on every route,
|
||||
local and both global — GUID-checked, from the argument the hooked API received. If the
|
||||
next run prints a `render -> output` line, that was the shape; if not, the title does not
|
||||
state the size on this route at all and the honest line stays `N/A`.
|
||||
- **2026-09-05 00:53, DL:TB at DLSS on the #116 build (payload rebuilt 00:51): `N/A` stands.**
|
||||
`Dlss` 3460/3523, `FPS 58.87`, **`UpscalerParams` 0 of 3523**, both tag rows live, the
|
||||
whole-resource fallback in. So on this title the scaling-input tag reaches neither global
|
||||
export with a size in either place, or does not reach them at all — the record cannot
|
||||
separate those two, and that is the one thing left to instrument if 7a is ever reopened on
|
||||
this title (a tag-route census: calls seen per export, zero-extent seen, Resource-size seen —
|
||||
a record bit or a writer-state word, so a layout bump). **7a on DL:TB closes as measured
|
||||
`N/A`** for the quality byte and the render size; the derived label has no input here and
|
||||
stays the owner's decision for the titles that do print the line (Cyberpunk).
|
||||
`frame generation: none` again with presents = tokens = 3441 and DLSS FG on — the fifth
|
||||
such run, §H5.
|
||||
- **And the owner's answer to the FG question: all four DLSS runs had DLSS Frame Generation
|
||||
ON.** `presents = tokens` on every one, against ×2 with FSR FG on the same title and ×3.99
|
||||
on Cyberpunk (SL 2.7.1, DLSS-G 310.8) — recorded in `20_OPEN_QUESTIONS` §H5 as case 3's
|
||||
candidate, with the discriminator (the owner's counter reading) pre-committed there.
|
||||
|
||||
## 10 · Telemetry layering
|
||||
|
||||
|
||||
+253
-72
@@ -8,6 +8,9 @@
|
||||
"amd_fidelityfx_denoiser_dx12.dll": {
|
||||
"exportCount": 5,
|
||||
"version": "1.0.1.0",
|
||||
"versions": [
|
||||
"1.0.1.0"
|
||||
],
|
||||
"exports": [
|
||||
"ffxConfigure",
|
||||
"ffxCreateContext",
|
||||
@@ -20,6 +23,9 @@
|
||||
"amd_fidelityfx_dx12.dll": {
|
||||
"exportCount": 5,
|
||||
"version": "1.0.1.41314",
|
||||
"versions": [
|
||||
"1.0.1.41314"
|
||||
],
|
||||
"exports": [
|
||||
"ffxConfigure",
|
||||
"ffxCreateContext",
|
||||
@@ -27,11 +33,16 @@
|
||||
"ffxDispatch",
|
||||
"ffxQuery"
|
||||
],
|
||||
"copiesFound": 7
|
||||
"copiesFound": 6
|
||||
},
|
||||
"amd_fidelityfx_loader_dx12.dll": {
|
||||
"exportCount": 5,
|
||||
"version": "2.1.0.450",
|
||||
"versions": [
|
||||
"2.1.0.450",
|
||||
"1.0.2.44888",
|
||||
"2.2.0.0"
|
||||
],
|
||||
"exports": [
|
||||
"ffxConfigure",
|
||||
"ffxCreateContext",
|
||||
@@ -39,11 +50,16 @@
|
||||
"ffxDispatch",
|
||||
"ffxQuery"
|
||||
],
|
||||
"copiesFound": 3
|
||||
"copiesFound": 4
|
||||
},
|
||||
"libxess_dx11.dll": {
|
||||
"exportCount": 51,
|
||||
"version": "2.0.2.68",
|
||||
"versions": [
|
||||
"2.0.2.68",
|
||||
"2.0.1.41",
|
||||
"2.0.2.53"
|
||||
],
|
||||
"exports": [
|
||||
"INTC_D3D11_XessCreateContext",
|
||||
"INTC_D3D11_XessDestroyContext",
|
||||
@@ -97,15 +113,68 @@
|
||||
"xessSetVelocityScale",
|
||||
"xessStartDump"
|
||||
],
|
||||
"copiesFound": 5
|
||||
"copiesFound": 6
|
||||
},
|
||||
"libxess_fg.dll": {
|
||||
"exportCount": 31,
|
||||
"exportCount": 78,
|
||||
"version": "1.3.1.68",
|
||||
"versions": [
|
||||
"1.3.1.68",
|
||||
"1.3.1.78",
|
||||
"1.2.2.118",
|
||||
"1.2.0.87"
|
||||
],
|
||||
"exports": [
|
||||
"?xefgDebugLogMessage@@YAXPEB_W@Z",
|
||||
"INTC_D3D11_XessCreateContext",
|
||||
"INTC_D3D11_XessDestroyContext",
|
||||
"INTC_D3D11_XessExecute",
|
||||
"INTC_D3D11_XessForceLegacyScaleFactors",
|
||||
"INTC_D3D11_XessGetExposureMultiplier",
|
||||
"INTC_D3D11_XessGetInitParams",
|
||||
"INTC_D3D11_XessGetInputResolution",
|
||||
"INTC_D3D11_XessGetIntelXeFXVersion",
|
||||
"INTC_D3D11_XessGetJitterScale",
|
||||
"INTC_D3D11_XessGetOptimalInputResolution",
|
||||
"INTC_D3D11_XessGetProfilingData",
|
||||
"INTC_D3D11_XessGetVelocityScale",
|
||||
"INTC_D3D11_XessGetVersion",
|
||||
"INTC_D3D11_XessInit",
|
||||
"INTC_D3D11_XessIsOptimalDriver",
|
||||
"INTC_D3D11_XessSelectNetworkModel",
|
||||
"INTC_D3D11_XessSetExposureMultiplier",
|
||||
"INTC_D3D11_XessSetJitterScale",
|
||||
"INTC_D3D11_XessSetLoggingCallback",
|
||||
"INTC_D3D11_XessSetVelocityScale",
|
||||
"INTC_D3D12_GetApplicationInfo",
|
||||
"INTC_D3D12_GetGpuCrashDumpBufferInfo",
|
||||
"INTC_D3D12_GpuCrashDumpOnCommandListCreate",
|
||||
"INTC_D3D12_GpuCrashDumpOnCommandListDestroy",
|
||||
"INTC_D3D12_GpuCrashDumpOnDeviceDestroy",
|
||||
"INTC_D3D12_RegisterDriverCallbacks",
|
||||
"xefgAILGetDecision",
|
||||
"xefgAILGetVersion",
|
||||
"xefgAILSetAppXeFGVersion",
|
||||
"xefgD3D12BuildPipelines",
|
||||
"xefgD3D12CreateContext",
|
||||
"xefgD3D12Execute",
|
||||
"xefgD3D12GetInitParams",
|
||||
"xefgD3D12GetProfilingData",
|
||||
"xefgD3D12GetResourcesToDump",
|
||||
"xefgD3D12Init",
|
||||
"xefgDebugLog",
|
||||
"xefgDebugLogMessage",
|
||||
"xefgDestroyContext",
|
||||
"xefgGetContextParameterP",
|
||||
"xefgGetPipelineBuildStatus",
|
||||
"xefgGetProperties",
|
||||
"xefgGetVersion",
|
||||
"xefgSelectTechnique",
|
||||
"xefgSetColorSpace",
|
||||
"xefgSetContextParameterF",
|
||||
"xefgSetLoggingCallback",
|
||||
"xefgSetSceneChangeThreshold",
|
||||
"xefgStartDump",
|
||||
"xefgSwapChainD3D12BuildPipelines",
|
||||
"xefgSwapChainD3D12CreateContext",
|
||||
"xefgSwapChainD3D12GetInitializationParameters",
|
||||
@@ -135,11 +204,17 @@
|
||||
"xefgSwapChainSetUiCompositionState",
|
||||
"xefgSwapChainTagFrameConstants"
|
||||
],
|
||||
"copiesFound": 5
|
||||
"copiesFound": 6
|
||||
},
|
||||
"libxess.dll": {
|
||||
"exportCount": 72,
|
||||
"version": "2.0.2.68",
|
||||
"versions": [
|
||||
"2.0.2.68",
|
||||
"2.0.1.41",
|
||||
"1.1.0.21",
|
||||
"2.0.2.53"
|
||||
],
|
||||
"exports": [
|
||||
"INTC_D3D11_XessCreateContext",
|
||||
"INTC_D3D11_XessDestroyContext",
|
||||
@@ -217,8 +292,16 @@
|
||||
"copiesFound": 10
|
||||
},
|
||||
"nvngx_dlss.dll": {
|
||||
"exportCount": 59,
|
||||
"exportCount": 62,
|
||||
"version": "310,6,0,0",
|
||||
"versions": [
|
||||
"310,6,0,0",
|
||||
"310,8,0,0",
|
||||
"2,3,11,0",
|
||||
"2,2,10,0",
|
||||
"310,3,0,0",
|
||||
"310,5,0,0"
|
||||
],
|
||||
"exports": [
|
||||
"NGX_SNIPPETS_GetRequiredDriverSupport",
|
||||
"NVSDK_NGX_CUDA_CreateFeature",
|
||||
@@ -228,6 +311,7 @@
|
||||
"NVSDK_NGX_CUDA_Init",
|
||||
"NVSDK_NGX_CUDA_Init_Ext",
|
||||
"NVSDK_NGX_CUDA_Init_Ext1",
|
||||
"NVSDK_NGX_CUDA_Init1",
|
||||
"NVSDK_NGX_CUDA_PopulateParameters_Impl",
|
||||
"NVSDK_NGX_CUDA_ReleaseFeature",
|
||||
"NVSDK_NGX_CUDA_Shutdown",
|
||||
@@ -263,7 +347,9 @@
|
||||
"NVSDK_NGX_GetDriverVersionEx",
|
||||
"NVSDK_NGX_GetGPUArchitecture",
|
||||
"NVSDK_NGX_GetSnippetVersion",
|
||||
"NVSDK_NGX_SetInfoCallback",
|
||||
"NVSDK_NGX_SetOverrideStatusCallback",
|
||||
"NVSDK_NGX_SetTelemetryCallback",
|
||||
"NVSDK_NGX_SetTelemetryEvaluateCallback",
|
||||
"NVSDK_NGX_VULKAN_CreateFeature",
|
||||
"NVSDK_NGX_VULKAN_CreateFeature1",
|
||||
@@ -283,8 +369,14 @@
|
||||
"copiesFound": 15
|
||||
},
|
||||
"nvngx_dlssd.dll": {
|
||||
"exportCount": 59,
|
||||
"exportCount": 61,
|
||||
"version": "310,6,0,0",
|
||||
"versions": [
|
||||
"310,6,0,0",
|
||||
"310,7,129,0",
|
||||
"310,3,0,0",
|
||||
"310,5,0,0"
|
||||
],
|
||||
"exports": [
|
||||
"NGX_SNIPPETS_GetRequiredDriverSupport",
|
||||
"NVSDK_NGX_CUDA_CreateFeature",
|
||||
@@ -294,6 +386,7 @@
|
||||
"NVSDK_NGX_CUDA_Init",
|
||||
"NVSDK_NGX_CUDA_Init_Ext",
|
||||
"NVSDK_NGX_CUDA_Init_Ext1",
|
||||
"NVSDK_NGX_CUDA_Init1",
|
||||
"NVSDK_NGX_CUDA_PopulateParameters_Impl",
|
||||
"NVSDK_NGX_CUDA_ReleaseFeature",
|
||||
"NVSDK_NGX_CUDA_Shutdown",
|
||||
@@ -329,6 +422,7 @@
|
||||
"NVSDK_NGX_GetDriverVersionEx",
|
||||
"NVSDK_NGX_GetGPUArchitecture",
|
||||
"NVSDK_NGX_GetSnippetVersion",
|
||||
"NVSDK_NGX_SetInfoCallback",
|
||||
"NVSDK_NGX_SetOverrideStatusCallback",
|
||||
"NVSDK_NGX_SetTelemetryEvaluateCallback",
|
||||
"NVSDK_NGX_VULKAN_CreateFeature",
|
||||
@@ -349,14 +443,21 @@
|
||||
"copiesFound": 8
|
||||
},
|
||||
"nvngx_dlssg.dll": {
|
||||
"exportCount": 50,
|
||||
"exportCount": 52,
|
||||
"version": "310,6,0,0",
|
||||
"versions": [
|
||||
"310,6,0,0",
|
||||
"310,8,0,0",
|
||||
"310,3,0,0",
|
||||
"310,5,2,0"
|
||||
],
|
||||
"exports": [
|
||||
"NVSDK_NGX_CUDA_CreateFeature",
|
||||
"NVSDK_NGX_CUDA_EvaluateFeature",
|
||||
"NVSDK_NGX_CUDA_GetScratchBufferSize",
|
||||
"NVSDK_NGX_CUDA_Init",
|
||||
"NVSDK_NGX_CUDA_Init_Ext",
|
||||
"NVSDK_NGX_CUDA_PopulateParameters_Impl",
|
||||
"NVSDK_NGX_CUDA_ReleaseFeature",
|
||||
"NVSDK_NGX_CUDA_Shutdown",
|
||||
"NVSDK_NGX_D3D11_CreateFeature",
|
||||
@@ -387,6 +488,7 @@
|
||||
"NVSDK_NGX_GetDriverVersionEx",
|
||||
"NVSDK_NGX_GetGPUArchitecture",
|
||||
"NVSDK_NGX_GetSnippetVersion",
|
||||
"NVSDK_NGX_SetInfoCallback",
|
||||
"NVSDK_NGX_SetOverrideStatusCallback",
|
||||
"NVSDK_NGX_SetTelemetryEvaluateCallback",
|
||||
"NVSDK_NGX_VULKAN_CreateFeature",
|
||||
@@ -403,11 +505,21 @@
|
||||
"NVSDK_NGX_VULKAN_Shutdown",
|
||||
"NVSDK_NGX_VULKAN_Shutdown1"
|
||||
],
|
||||
"copiesFound": 11
|
||||
"copiesFound": 10
|
||||
},
|
||||
"sl.common.dll": {
|
||||
"exportCount": 60,
|
||||
"version": "2,7,4,0",
|
||||
"versions": [
|
||||
"2,7,4,0",
|
||||
"2,7,1,0",
|
||||
"2,8,0,0",
|
||||
"2,7,30,0",
|
||||
"2,7,3,0",
|
||||
"1.5.6.0",
|
||||
"2,10,3,0",
|
||||
"2,7,0,0"
|
||||
],
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"NVSDK_NGX_D3D11_AllocateParameters",
|
||||
@@ -470,20 +582,40 @@
|
||||
"NVSDK_NGX_VULKAN_Shutdown1",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 11
|
||||
"copiesFound": 10
|
||||
},
|
||||
"sl.dlss_g.dll": {
|
||||
"exportCount": 2,
|
||||
"version": "2,7,4,0",
|
||||
"versions": [
|
||||
"2,7,4,0",
|
||||
"2,7,1,0",
|
||||
"2,8,0,0",
|
||||
"2,7,30,0",
|
||||
"2,7,3,0",
|
||||
"1.5.6.0",
|
||||
"2,10,3,0",
|
||||
"2,7,0,0"
|
||||
],
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 11
|
||||
"copiesFound": 10
|
||||
},
|
||||
"sl.interposer.dll": {
|
||||
"exportCount": 261,
|
||||
"exportCount": 269,
|
||||
"version": "2,7,4,0",
|
||||
"versions": [
|
||||
"2,7,4,0",
|
||||
"2,7,1,0",
|
||||
"2,8,0,0",
|
||||
"2,7,30,0",
|
||||
"2,7,3,0",
|
||||
"1.5.6.0",
|
||||
"2,10,3,0",
|
||||
"2,7,0,0"
|
||||
],
|
||||
"exports": [
|
||||
"CreateDXGIFactory",
|
||||
"CreateDXGIFactory1",
|
||||
@@ -502,18 +634,26 @@
|
||||
"slAllocateResources",
|
||||
"slEvaluateFeature",
|
||||
"slFreeResources",
|
||||
"slGetFeatureConfiguration",
|
||||
"slGetFeatureFunction",
|
||||
"slGetFeatureRequirements",
|
||||
"slGetFeatureSettings",
|
||||
"slGetFeatureVersion",
|
||||
"slGetHooks",
|
||||
"slGetNativeInterface",
|
||||
"slGetNewFrameToken",
|
||||
"slGetNumHooks",
|
||||
"slInit",
|
||||
"slIsFeatureEnabled",
|
||||
"slIsFeatureLoaded",
|
||||
"slIsFeatureSupported",
|
||||
"slSetConstants",
|
||||
"slSetD3DDevice",
|
||||
"slSetFeatureConstants",
|
||||
"slSetFeatureEnabled",
|
||||
"slSetFeatureLoaded",
|
||||
"slSetTag",
|
||||
"slSetTagForFrame",
|
||||
"slSetVulkanInfo",
|
||||
"slShutdown",
|
||||
"slUpgradeInterface",
|
||||
@@ -747,29 +887,49 @@
|
||||
"vkWaitForFences",
|
||||
"vkWaitSemaphores"
|
||||
],
|
||||
"copiesFound": 11
|
||||
"copiesFound": 10
|
||||
},
|
||||
"sl.pcl.dll": {
|
||||
"exportCount": 2,
|
||||
"version": "2,7,4,0",
|
||||
"versions": [
|
||||
"2,7,4,0",
|
||||
"2,7,1,0",
|
||||
"2,8,0,0",
|
||||
"2,7,30,0",
|
||||
"2,7,3,0",
|
||||
"2,10,3,0",
|
||||
"2,7,0,0"
|
||||
],
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 9
|
||||
},
|
||||
"sl.reflex.dll": {
|
||||
"exportCount": 2,
|
||||
"version": "2,7,4,0",
|
||||
"versions": [
|
||||
"2,7,4,0",
|
||||
"2,7,1,0",
|
||||
"2,8,0,0",
|
||||
"2,7,30,0",
|
||||
"2,7,3,0",
|
||||
"1.5.6.0",
|
||||
"2,10,3,0",
|
||||
"2,7,0,0"
|
||||
],
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 10
|
||||
},
|
||||
"sl.reflex.dll": {
|
||||
"exportCount": 2,
|
||||
"version": "2,7,4,0",
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 11
|
||||
},
|
||||
"ffx_backend_dx12_x64.dll": {
|
||||
"exportCount": 21,
|
||||
"version": null,
|
||||
"versions": [],
|
||||
"exports": [
|
||||
"?ffxFrameInterpolationUiComposition@@YAHPEBUFfxPresentCallbackDescription@@@Z",
|
||||
"ffxAssertReport",
|
||||
@@ -798,6 +958,7 @@
|
||||
"ffx_frameinterpolation_x64.dll": {
|
||||
"exportCount": 8,
|
||||
"version": null,
|
||||
"versions": [],
|
||||
"exports": [
|
||||
"ffxAssertReport",
|
||||
"ffxAssertSetPrintingCallback",
|
||||
@@ -813,6 +974,7 @@
|
||||
"ffx_fsr3_x64.dll": {
|
||||
"exportCount": 17,
|
||||
"version": null,
|
||||
"versions": [],
|
||||
"exports": [
|
||||
"ffxAssertReport",
|
||||
"ffxAssertSetPrintingCallback",
|
||||
@@ -837,6 +999,7 @@
|
||||
"ffx_fsr3upscaler_x64.dll": {
|
||||
"exportCount": 15,
|
||||
"version": null,
|
||||
"versions": [],
|
||||
"exports": [
|
||||
"ffxAssertReport",
|
||||
"ffxAssertSetPrintingCallback",
|
||||
@@ -859,6 +1022,7 @@
|
||||
"ffx_opticalflow_x64.dll": {
|
||||
"exportCount": 10,
|
||||
"version": null,
|
||||
"versions": [],
|
||||
"exports": [
|
||||
"?ffxOpticalflowResourceIsNull@@YA_NUFfxResource@@@Z",
|
||||
"ffxAssertReport",
|
||||
@@ -876,45 +1040,52 @@
|
||||
"sl.dlss_d.dll": {
|
||||
"exportCount": 2,
|
||||
"version": "2,7,1,0",
|
||||
"versions": [
|
||||
"2,7,1,0",
|
||||
"2,7,0,0"
|
||||
],
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 3
|
||||
"copiesFound": 2
|
||||
},
|
||||
"sl.dlss.dll": {
|
||||
"exportCount": 2,
|
||||
"version": "2,7,1,0",
|
||||
"versions": [
|
||||
"2,7,1,0",
|
||||
"2,8,0,0",
|
||||
"1.5.6.0",
|
||||
"2,7,0,0"
|
||||
],
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 5
|
||||
"copiesFound": 4
|
||||
},
|
||||
"sl.nis.dll": {
|
||||
"exportCount": 2,
|
||||
"version": "2,7,1,0",
|
||||
"versions": [
|
||||
"2,7,1,0",
|
||||
"2,8,0,0"
|
||||
],
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 3
|
||||
"copiesFound": 2
|
||||
},
|
||||
"amd_fidelityfx_framegeneration_dx12.dll": {
|
||||
"exportCount": 5,
|
||||
"version": "3.1.5.44888",
|
||||
"exports": [
|
||||
"ffxConfigure",
|
||||
"ffxCreateContext",
|
||||
"ffxDestroyContext",
|
||||
"ffxDispatch",
|
||||
"ffxQuery"
|
||||
"versions": [
|
||||
"3.1.5.44888",
|
||||
"4.0.0.604",
|
||||
"4.0.0.0"
|
||||
],
|
||||
"copiesFound": 3
|
||||
},
|
||||
"amd_fidelityfx_upscaler_dx12.dll": {
|
||||
"exportCount": 5,
|
||||
"version": "4.0.2.44888",
|
||||
"exports": [
|
||||
"ffxConfigure",
|
||||
"ffxCreateContext",
|
||||
@@ -924,9 +1095,32 @@
|
||||
],
|
||||
"copiesFound": 4
|
||||
},
|
||||
"amd_fidelityfx_upscaler_dx12.dll": {
|
||||
"exportCount": 5,
|
||||
"version": "4.0.2.44888",
|
||||
"versions": [
|
||||
"4.0.2.44888",
|
||||
"4.0.3.604",
|
||||
"4.1.0.0"
|
||||
],
|
||||
"exports": [
|
||||
"ffxConfigure",
|
||||
"ffxCreateContext",
|
||||
"ffxDestroyContext",
|
||||
"ffxDispatch",
|
||||
"ffxQuery"
|
||||
],
|
||||
"copiesFound": 5
|
||||
},
|
||||
"nvngx_deepdvc.dll": {
|
||||
"exportCount": 36,
|
||||
"exportCount": 37,
|
||||
"version": "310,2,0,0",
|
||||
"versions": [
|
||||
"310,2,0,0",
|
||||
"310,1,0,0",
|
||||
"310,3,0,0",
|
||||
"310,5,2,0"
|
||||
],
|
||||
"exports": [
|
||||
"NvOptimusEnablementCuda",
|
||||
"NVSDK_NGX_D3D11_CreateFeature",
|
||||
@@ -953,6 +1147,7 @@
|
||||
"NVSDK_NGX_GetSnippetVersion",
|
||||
"NVSDK_NGX_PopulateParameters",
|
||||
"NVSDK_NGX_SetInfoCallback",
|
||||
"NVSDK_NGX_SetOverrideStatusCallback",
|
||||
"NVSDK_NGX_SetTelemetryEvaluateCallback",
|
||||
"NVSDK_NGX_VULKAN_CreateFeature",
|
||||
"NVSDK_NGX_VULKAN_CreateFeature1",
|
||||
@@ -965,20 +1160,27 @@
|
||||
"NVSDK_NGX_VULKAN_Shutdown",
|
||||
"NVSDK_NGX_VULKAN_Shutdown1"
|
||||
],
|
||||
"copiesFound": 6
|
||||
"copiesFound": 5
|
||||
},
|
||||
"sl.deepdvc.dll": {
|
||||
"exportCount": 2,
|
||||
"version": "2,7,30,0",
|
||||
"versions": [
|
||||
"2,7,30,0",
|
||||
"2,7,3,0",
|
||||
"2,8,0,0",
|
||||
"2,10,3,0"
|
||||
],
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 6
|
||||
"copiesFound": 5
|
||||
},
|
||||
"ffx_fsr2_api_dx12_x64.dll": {
|
||||
"exportCount": 8,
|
||||
"version": null,
|
||||
"versions": [],
|
||||
"exports": [
|
||||
"ffxAssertReport",
|
||||
"ffxAssertSetPrintingCallback",
|
||||
@@ -994,6 +1196,7 @@
|
||||
"ffx_fsr2_api_vk_x64.dll": {
|
||||
"exportCount": 11,
|
||||
"version": null,
|
||||
"versions": [],
|
||||
"exports": [
|
||||
"ffxAssertReport",
|
||||
"ffxAssertSetPrintingCallback",
|
||||
@@ -1012,6 +1215,7 @@
|
||||
"ffx_fsr2_api_x64.dll": {
|
||||
"exportCount": 11,
|
||||
"version": null,
|
||||
"versions": [],
|
||||
"exports": [
|
||||
"ffxAssertReport",
|
||||
"ffxAssertSetPrintingCallback",
|
||||
@@ -1027,39 +1231,13 @@
|
||||
],
|
||||
"copiesFound": 1
|
||||
},
|
||||
"amd_fidelityfx_vk.dll": {
|
||||
"exportCount": 5,
|
||||
"version": "1.0.1.42386",
|
||||
"exports": [
|
||||
"ffxConfigure",
|
||||
"ffxCreateContext",
|
||||
"ffxDestroyContext",
|
||||
"ffxDispatch",
|
||||
"ffxQuery"
|
||||
],
|
||||
"copiesFound": 1
|
||||
},
|
||||
"sl.directsr.dll": {
|
||||
"exportCount": 2,
|
||||
"version": "2,11,1,0",
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 1
|
||||
},
|
||||
"sl.nvperf.dll": {
|
||||
"exportCount": 2,
|
||||
"version": "2,11,1,0",
|
||||
"exports": [
|
||||
"DllMain",
|
||||
"slGetPluginFunction"
|
||||
],
|
||||
"copiesFound": 1
|
||||
},
|
||||
"_nvngx.dll": {
|
||||
"exportCount": 75,
|
||||
"version": "32.0.16.1088",
|
||||
"version": "32.0.16.1664",
|
||||
"versions": [
|
||||
"32.0.16.1664",
|
||||
"32.0.16.1656"
|
||||
],
|
||||
"exports": [
|
||||
"NVSDK_NGX_CUDA_AllocateParameters",
|
||||
"NVSDK_NGX_CUDA_CreateFeature",
|
||||
@@ -1137,11 +1315,14 @@
|
||||
"NVSDK_NGX_VULKAN_Shutdown",
|
||||
"NVSDK_NGX_VULKAN_Shutdown1"
|
||||
],
|
||||
"copiesFound": 1
|
||||
"copiesFound": 2
|
||||
},
|
||||
"nvngx.dll": {
|
||||
"exportCount": 59,
|
||||
"version": "30.0.14.9516",
|
||||
"versions": [
|
||||
"30.0.14.9516"
|
||||
],
|
||||
"exports": [
|
||||
"NVSDK_NGX_CUDA_AllocateParameters",
|
||||
"NVSDK_NGX_CUDA_CreateFeature",
|
||||
@@ -1203,7 +1384,7 @@
|
||||
"NVSDK_NGX_VULKAN_Shutdown",
|
||||
"NVSDK_NGX_VULKAN_Shutdown1"
|
||||
],
|
||||
"copiesFound": 1
|
||||
"copiesFound": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -94,8 +94,19 @@ internal sealed class TargetResolver : ITargetResolver
|
||||
// A process we cannot read is NOT a match — "could not look" must not widen the set —
|
||||
// but it is counted below so it cannot narrow one either.
|
||||
string? image = p.MainModule?.FileName;
|
||||
if (image is not null
|
||||
&& string.Equals(ExecutableIdentity.Normalise(image), normalisedExePath,
|
||||
if (image is null)
|
||||
{
|
||||
// A process that is in the snapshot with NO main module yet -- it exists and has
|
||||
// not finished mapping its image. Measured on the hosted runner 2026-09-04, twice
|
||||
// in one hour, on a single freshly started instance: the resolver skipped it here
|
||||
// without counting it and answered TargetNotRunning about a process it had just
|
||||
// enumerated. "Could not look" must not narrow the set, and that includes this
|
||||
// shape; it is counted like a process we lack the rights to read.
|
||||
unreadable++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (string.Equals(ExecutableIdentity.Normalise(image), normalisedExePath,
|
||||
StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
matches.Add(p.Id);
|
||||
|
||||
@@ -132,8 +132,24 @@ internal sealed record MeasuredFacts
|
||||
public bool CensusInconsistent =>
|
||||
!CensusRan && (RuntimeCensus & ~FlRuntimeCensus.Ran) != FlRuntimeCensus.None;
|
||||
|
||||
/// <summary>Null, because <c>renderW/H</c> are always 0 and the ratio would divide by zero.</summary>
|
||||
public double? UpscaleRatio { get; init; }
|
||||
/// <summary>
|
||||
/// The dominant render → output extent over the records that claim <see cref="FlMeasured.UpscalerParams"/>
|
||||
/// and carry an output size, or null when no record carried both.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>The ratio is <c>03_METRICS</c> §Upscaling's own formula — <c>sqrt((outW×outH)/(renW×renH))</c>
|
||||
/// — and nothing more.</b> A preset NAME derived from it ("58% ≈ Balanced") is HANDOFF item 7a's
|
||||
/// owner decision and is deliberately not printed here: the quality byte stays what the writer
|
||||
/// measured (<c>0xFF</c> on every title so far), and this line says what the title rendered at,
|
||||
/// which is a measurement, beside the ratio, which is arithmetic on two measurements. The modal
|
||||
/// tuple rather than a mean, because averaging across a settings change is the classic way a
|
||||
/// benchmark number stops meaning anything; <see cref="UpscaleExtent.DistinctGroups"/> says
|
||||
/// whether one happened.
|
||||
/// </remarks>
|
||||
public UpscaleExtent? Extent { get; init; }
|
||||
|
||||
/// <summary><c>sqrt((outW×outH)/(renW×renH))</c> of the dominant extent, or null.</summary>
|
||||
public double? UpscaleRatio => Extent?.Ratio;
|
||||
|
||||
public Tri RayTracing { get; init; }
|
||||
|
||||
@@ -199,9 +215,7 @@ internal sealed record MeasuredFacts
|
||||
stream, static r => ((FlMeasured)r.MeasuredMask).HasFlag(FlMeasured.Fg)) < stream.Count,
|
||||
RuntimeCensus = (FlRuntimeCensus)writer.RuntimeCensus,
|
||||
|
||||
// Still a deliberate absence: renderW/H are 0 unless a params hook ran, and the
|
||||
// ratio would divide by zero. See the property doc.
|
||||
UpscaleRatio = null,
|
||||
Extent = UpscaleExtent.From(stream),
|
||||
Upscaler = UpscalerOf(stream),
|
||||
RayTracing = RayTracingOf(stream, writer),
|
||||
RayReconstruction = RayReconstructionOf(stream),
|
||||
|
||||
@@ -161,9 +161,7 @@ internal static class SessionReport
|
||||
+ "upscaling is off in this title's settings, or it runs through a path this build does not "
|
||||
+ "hook — measured on 3 of 5 Streamline titles — or a vendor this build does not decode)"
|
||||
: NoHookRan("upscaler", facts.CensusRan, facts.UpscalerRuntimesLoaded)));
|
||||
sb.Append(" render -> output: ").AppendLine(facts.UpscaleRatio is null
|
||||
? "N/A (the ratio is not computed yet; the raw sizes are above)"
|
||||
: Num(facts.UpscaleRatio));
|
||||
sb.Append(" render -> output: ").AppendLine(RenderToOutput(facts.Extent));
|
||||
sb.Append(" frame generation: ").AppendLine(facts.FgMode
|
||||
?? (facts.FgHookRan
|
||||
? "N/A (a hook ran and saw no frame-generation evaluation — see the FG counts above)"
|
||||
@@ -307,6 +305,25 @@ internal static class SessionReport
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The extent line: two measured sizes, the ratio <c>03_METRICS</c> defines over them, and
|
||||
/// whether the window ran at one tuple. Never a preset name — that is HANDOFF 7a's owner call.
|
||||
/// </summary>
|
||||
private static string RenderToOutput(UpscaleExtent? e)
|
||||
{
|
||||
if (e is null)
|
||||
{
|
||||
return "N/A (no record carried both a render size and an output size)";
|
||||
}
|
||||
|
||||
string line = $"{e.RenderW}x{e.RenderH} -> {e.OutputW}x{e.OutputH} = {Num(e.Ratio)}x "
|
||||
+ $"({e.RenderScalePercent.ToString("0", CultureInfo.InvariantCulture)}% render scale) "
|
||||
+ $"on {Count(e.Records)} of {Count(e.Measured)} record(s)";
|
||||
return e.DistinctGroups > 1
|
||||
? line + $" — SETTINGS MOVED: {Count(e.DistinctGroups)} distinct extents in the window, this is the dominant one"
|
||||
: line;
|
||||
}
|
||||
|
||||
private static string Num(double? v) =>
|
||||
v is null ? "N/A" : v.Value.ToString("0.##", CultureInfo.InvariantCulture);
|
||||
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
using FrameLedger.Shared;
|
||||
|
||||
namespace FrameLedger.CaptureHost.Consume;
|
||||
|
||||
/// <summary>
|
||||
/// The render → output extent a session ran at, taken as the MODAL tuple over the records
|
||||
/// that claim <see cref="FlMeasured.UpscalerParams"/> and carry an output size.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// <b>Two measurements, one piece of arithmetic.</b> <c>renderW/H</c> come off the upscaler's own
|
||||
/// dispatch (Streamline's scaling-input tag, or the ffx-api descriptor's <c>renderSize</c>) and
|
||||
/// <c>outputW/H</c> off the swapchain the present hook read; the ratio is <c>03_METRICS</c>
|
||||
/// §Upscaling's <c>sqrt((outW×outH)/(renW×renH))</c>, and the render scale is its reciprocal as
|
||||
/// a percentage. Measured on Cyberpunk 2077 at <c>DLSS = Balanced</c>: 1485×835 against 2560×1440
|
||||
/// is 1.72× and 58%, which is a number a writer that hardcoded a plausible resolution could not
|
||||
/// have produced.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>Modal, not mean, and the count of distinct tuples is published beside it.</b> Averaging
|
||||
/// across a settings change or a dynamic-resolution swing is the classic way a benchmark number
|
||||
/// stops meaning anything (<c>03_METRICS</c> §Upscaling, segments); until P2's segmenter cuts the
|
||||
/// session, the throwaway consumer reports the tuple most records ran at and says how many others
|
||||
/// it saw.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
internal sealed record UpscaleExtent
|
||||
{
|
||||
public required ushort RenderW { get; init; }
|
||||
|
||||
public required ushort RenderH { get; init; }
|
||||
|
||||
public required ushort OutputW { get; init; }
|
||||
|
||||
public required ushort OutputH { get; init; }
|
||||
|
||||
/// <summary>Records that ran at exactly this tuple.</summary>
|
||||
public required int Records { get; init; }
|
||||
|
||||
/// <summary>Records in the window that carried both sizes, whatever their tuple.</summary>
|
||||
public required int Measured { get; init; }
|
||||
|
||||
/// <summary>Distinct (render, output) tuples in the window. More than 1 means the settings moved.</summary>
|
||||
public required int DistinctGroups { get; init; }
|
||||
|
||||
/// <summary><c>sqrt((outW×outH)/(renW×renH))</c>.</summary>
|
||||
public double Ratio => Math.Sqrt((double)OutputW * OutputH / ((double)RenderW * RenderH));
|
||||
|
||||
/// <summary>The per-axis render scale as a percentage — <c>100 / Ratio</c>.</summary>
|
||||
public double RenderScalePercent => 100.0 / Ratio;
|
||||
|
||||
/// <summary>The dominant extent over the params-claiming window, or null when no record carried both sizes.</summary>
|
||||
public static UpscaleExtent? From(IReadOnlyList<FlFrameRecord> stream)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(stream);
|
||||
|
||||
int start = RecordWindow.ClaimedSuffixStart(
|
||||
stream, static r => ((FlMeasured)r.MeasuredMask).HasFlag(FlMeasured.UpscalerParams));
|
||||
if (start == stream.Count)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var groups = new Dictionary<(ushort, ushort, ushort, ushort), int>();
|
||||
int measured = 0;
|
||||
for (int i = start; i < stream.Count; i++)
|
||||
{
|
||||
FlFrameRecord r = stream[i];
|
||||
var mask = (FlMeasured)r.MeasuredMask;
|
||||
// BOTH bits, not just the values: a value set while its bit is clear is the writer's
|
||||
// defect (IsHonest counts it), and this must not quietly average it in.
|
||||
if (!mask.HasFlag(FlMeasured.UpscalerParams) || !mask.HasFlag(FlMeasured.OutputRes)
|
||||
|| r.RenderW == 0 || r.RenderH == 0 || r.OutputW == 0 || r.OutputH == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
measured++;
|
||||
(ushort, ushort, ushort, ushort) key = (r.RenderW, r.RenderH, r.OutputW, r.OutputH);
|
||||
groups[key] = groups.GetValueOrDefault(key) + 1;
|
||||
}
|
||||
|
||||
if (measured == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
KeyValuePair<(ushort, ushort, ushort, ushort), int> modal = groups.MaxBy(static g => g.Value);
|
||||
return new UpscaleExtent
|
||||
{
|
||||
RenderW = modal.Key.Item1,
|
||||
RenderH = modal.Key.Item2,
|
||||
OutputW = modal.Key.Item3,
|
||||
OutputH = modal.Key.Item4,
|
||||
Records = modal.Value,
|
||||
Measured = measured,
|
||||
DistinctGroups = groups.Count,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -279,15 +279,52 @@ inline int FfxLeafOf(const wchar_t* module) noexcept {
|
||||
// because Pass A's parser reads literals; the static_asserts under the table bind
|
||||
// these spellings to kFfxLeafModules in both directions, so neither list can gain or
|
||||
// lose a module alone.
|
||||
// TWO ROWS, ONE FAMILY, TWO DETOURS -- the params family has a second row since
|
||||
// 2026-09-04. Streamline 2.8 (Dying Light: The Beast ships 2.8.0) deprecates slSetTag
|
||||
// in favour of slSetTagForFrame, which takes the frame token first and the same tag
|
||||
// list after; a 2.8 title that tags per frame never calls slSetTag, and the first
|
||||
// title measured on 2.8 published DLSS identity on 4,575 of 4,575 batches with
|
||||
// UpscalerParams on ZERO of them. The two rows share the family bit because they
|
||||
// produce the same fields from the same ResourceTag list; the installer tells them
|
||||
// apart by SYMBOL (kSymbolSlSetTagForFrame below), never by family, because their
|
||||
// signatures differ and the neighbour's body would read a FrameToken as a viewport.
|
||||
// And the family is published WHEN WHOLE -- once every one of these two symbols the
|
||||
// loaded interposer exports is patched -- not on the first row: published on the
|
||||
// first, it entitled records the second row was not yet producing (measured 38 of
|
||||
// 41 on the frame-based fixture), which is the ffx leaves' defect from #110 again.
|
||||
#define FL_HOOK_INVENTORY(X) \
|
||||
X(L"sl.interposer.dll", "slEvaluateFeature", fl::inventory::kFamilyEvaluateFeature) \
|
||||
X(L"sl.interposer.dll", "slSetTag", fl::FL_HOOK_UPSCALER_PARAMS) \
|
||||
X(L"sl.interposer.dll", "slSetTagForFrame", fl::FL_HOOK_UPSCALER_PARAMS) \
|
||||
X(L"sl.interposer.dll", "slGetNewFrameToken", fl::FL_HOOK_FG_EVALUATIONS) \
|
||||
X(L"amd_fidelityfx_dx12.dll", "ffxDispatch", fl::inventory::kFamilyFfxDispatch) \
|
||||
X(L"amd_fidelityfx_upscaler_dx12.dll", "ffxDispatch", fl::inventory::kFamilyFfxDispatch) \
|
||||
X(L"amd_fidelityfx_framegeneration_dx12.dll", "ffxDispatch", fl::inventory::kFamilyFfxDispatch) \
|
||||
X(L"amd_fidelityfx_loader_dx12.dll", "ffxDispatch", fl::inventory::kFamilyFfxDispatch)
|
||||
|
||||
// The module and the two symbols dllmain's params arm keys on: the frame-based
|
||||
// symbol picks the detour, and all three name what "whole" means when the family is
|
||||
// published. Named constants HERE, because Pass B forbids the symbol literals
|
||||
// anywhere else in the Overlay -- and bound to the table below, so a row and the
|
||||
// arm that installs it cannot drift apart.
|
||||
inline constexpr const wchar_t* kModuleSlInterposer = L"sl.interposer.dll";
|
||||
inline constexpr const char* kSymbolSlSetTag = "slSetTag";
|
||||
inline constexpr const char* kSymbolSlSetTagForFrame = "slSetTagForFrame";
|
||||
|
||||
constexpr bool InventoryHasRow(const wchar_t* module, const char* symbol) noexcept {
|
||||
#define FL_ROW_HAS(mod, sym, family) \
|
||||
if (SameW(mod, module) && SameA(sym, symbol)) { \
|
||||
return true; \
|
||||
}
|
||||
FL_HOOK_INVENTORY(FL_ROW_HAS)
|
||||
#undef FL_ROW_HAS
|
||||
return false;
|
||||
}
|
||||
static_assert(InventoryHasRow(kModuleSlInterposer, kSymbolSlSetTag),
|
||||
"the params arm keys on slSetTag by this constant, and the table no longer has that row");
|
||||
static_assert(InventoryHasRow(kModuleSlInterposer, kSymbolSlSetTagForFrame),
|
||||
"the params arm keys on slSetTagForFrame by this constant, and the table no longer has that row");
|
||||
|
||||
// THE LEAF TABLE AND THE ROWS ARE BOUND TO EACH OTHER AT COMPILE TIME, BOTH WAYS.
|
||||
// A leaf without a row would be a trampoline slot nothing installs into; a row
|
||||
// without a leaf would resolve, reach InstallByFamily, and find no slot -- and the
|
||||
|
||||
@@ -105,6 +105,41 @@ inline bool IsReadableResourceTag(const sl::BaseStructure* s) noexcept {
|
||||
return IsReadable<sl::ResourceTag>(s);
|
||||
}
|
||||
|
||||
// The size a scaling-input tag states, from EITHER of the two places the vendor
|
||||
// struct can carry it. Shared by the local walk below and by the global-tag detours
|
||||
// (slSetTag, slSetTagForFrame), so the three routes cannot disagree about what a
|
||||
// tag says.
|
||||
//
|
||||
// 1. `extent` -- "the area of the tagged resource to use". Set by titles that
|
||||
// render into a buffer larger than the render resolution (dynamic resolution
|
||||
// on an output-sized target). Cyberpunk 2077 sets it: 1485x835.
|
||||
// 2. `resource->width/height` when the extent is ZERO. sl_core_types.h documents a
|
||||
// zero extent as "using the entire resource" and the Resource's own size as
|
||||
// "MANDATORY only when using Vulkan" -- so on D3D12 it MAY be filled and may not
|
||||
// be, and a filled one is the title's statement of the buffer's size, which for a
|
||||
// whole-resource tag IS the render resolution. Both are fields of the argument
|
||||
// the hooked API received (CLAUDE.md rule 4), nothing is dereferenced beyond the
|
||||
// struct the title passed, and the Resource is GUID-checked the way every other
|
||||
// Streamline structure is before a field is read.
|
||||
//
|
||||
// A tag with neither is the honest unknown fl_shm.h already defines for renderW/H:
|
||||
// reported as not-found rather than as a resolution of zero. Measured need: Dying
|
||||
// Light: The Beast (SL 2.8.0) published DLSS identity on every batch and no extent
|
||||
// from either global-tag route on four captures; the whole-resource shape is the
|
||||
// remaining reading the record can distinguish, and this is how it is tested.
|
||||
inline bool TagSize(const sl::ResourceTag& tag, uint32_t& w, uint32_t& h) noexcept {
|
||||
w = tag.extent.width;
|
||||
h = tag.extent.height;
|
||||
if (w == 0 || h == 0) {
|
||||
if (!IsReadable<sl::Resource>(tag.resource)) {
|
||||
return false;
|
||||
}
|
||||
w = tag.resource->width;
|
||||
h = tag.resource->height;
|
||||
}
|
||||
return w != 0 && h != 0 && w <= 0xFFFFu && h <= 0xFFFFu;
|
||||
}
|
||||
|
||||
// Find the extent a title tagged as the upscaler's INPUT colour buffer.
|
||||
//
|
||||
// kBufferTypeScalingInputColor is the render target the upscaler reads, so its
|
||||
@@ -114,9 +149,10 @@ inline bool IsReadableResourceTag(const sl::BaseStructure* s) noexcept {
|
||||
// A ZERO EXTENT IS NOT AN ERROR AND NOT A MEASUREMENT. sl_core_types.h documents
|
||||
// `extent` as "the area of the tagged resource to use (if using the entire
|
||||
// resource leave as null)", and it is a value member defaulting to all-zero. So
|
||||
// a title tagging whole resources yields 0, which is the in-band unknown
|
||||
// fl_shm.h already defines for renderW/H. Reported as not-found rather than as
|
||||
// a resolution of zero.
|
||||
// a title tagging whole resources yields 0 from the extent -- and TagSize then
|
||||
// reads the Resource's own declared size, which is the in-band unknown fl_shm.h
|
||||
// already defines for renderW/H when the title left that zero too. Reported as
|
||||
// not-found rather than as a resolution of zero.
|
||||
inline ScanResult FindScalingInputExtent(const sl::BaseStructure** inputs, uint32_t numInputs) noexcept {
|
||||
ScanResult out;
|
||||
if (inputs == nullptr || numInputs == 0) {
|
||||
@@ -143,16 +179,16 @@ inline ScanResult FindScalingInputExtent(const sl::BaseStructure** inputs, uint3
|
||||
if (IsReadableResourceTag(s)) {
|
||||
const auto* tag = static_cast<const sl::ResourceTag*>(s);
|
||||
if (tag->type == sl::kBufferTypeScalingInputColor && !out.found) {
|
||||
const uint32_t w = tag->extent.width;
|
||||
const uint32_t h = tag->extent.height;
|
||||
if (w != 0 && h != 0 && w <= 0xFFFFu && h <= 0xFFFFu) {
|
||||
uint32_t w = 0;
|
||||
uint32_t h = 0;
|
||||
if (TagSize(*tag, w, h)) {
|
||||
out.renderW = static_cast<uint16_t>(w);
|
||||
out.renderH = static_cast<uint16_t>(h);
|
||||
out.found = true;
|
||||
}
|
||||
// Otherwise a whole-resource tag, or a size that cannot be a
|
||||
// render target. Keep looking: a title may chain several tags
|
||||
// and only one of them carries an extent.
|
||||
// Otherwise a whole-resource tag whose Resource states no size,
|
||||
// or a size that cannot be a render target. Keep looking: a title
|
||||
// may chain several tags and only one of them carries a size.
|
||||
}
|
||||
} else if (IsReadable<sl::DLSSOptions>(s) && !out.qualityFound) {
|
||||
// `mode` is the FIRST member of DLSSOptions and has been since
|
||||
|
||||
@@ -716,6 +716,18 @@ std::atomic<uint32_t> g_upscalerParamsLive{0};
|
||||
using PFN_SlSetTag = ::PFun_slSetTag*;
|
||||
PFN_SlSetTag g_origSlSetTag = nullptr;
|
||||
|
||||
// The frame-based twin (Streamline 2.8: slSetTag is deprecated in favour of it).
|
||||
// Its own trampoline; and the two rows carry PATCHED flags of their own while the
|
||||
// family keeps ONE published latch (g_upscalerParamsLive), because the family is
|
||||
// published when whole -- PublishParamsFamilyIfWhole -- and not by whichever row
|
||||
// installed first. InstallRow's latch would have done both jobs wrongly: shared, the
|
||||
// first row would have claimed it and the second would never patch; separate, the
|
||||
// first row would have published a family the second was not yet producing.
|
||||
using PFN_SlSetTagForFrame = ::PFun_slSetTagForFrame*;
|
||||
PFN_SlSetTagForFrame g_origSlSetTagForFrame = nullptr;
|
||||
std::atomic<uint32_t> g_slSetTagPatched{0};
|
||||
std::atomic<uint32_t> g_slSetTagForFramePatched{0};
|
||||
|
||||
// The application-frame count (HANDOFF item 3, decided 2026-09-03). Streamline
|
||||
// hands a title one FrameToken per frame through slGetNewFrameToken, and a title
|
||||
// has to ask for it -- so the number of DISTINCT tokens handed out between two
|
||||
@@ -870,18 +882,18 @@ void NoteTags(const sl::ResourceTag* tags, uint32_t numTags) noexcept {
|
||||
if (t.type != sl::kBufferTypeScalingInputColor) {
|
||||
continue;
|
||||
}
|
||||
// extent is by VALUE and defaults to all-zero, which the vendor header
|
||||
// documents as "using the entire resource". That is the honest unknown
|
||||
// fl_shm.h already defines for renderW/H, so it is stored as such rather
|
||||
// than guessed at from the resource description -- which for D3D12 is
|
||||
// itself unset (sl_core_types.h: mandatory only for Vulkan).
|
||||
const uint64_t w = t.extent.width;
|
||||
const uint64_t h = t.extent.height;
|
||||
if (w == 0 || h == 0 || w > 0xFFFFu || h > 0xFFFFu) {
|
||||
// The extent, or -- when the title tagged the whole resource -- the size the
|
||||
// Resource itself declares; fl_sl_inputs.h's TagSize is the one reading of a
|
||||
// tag all three routes share. Neither present is the honest unknown fl_shm.h
|
||||
// already defines for renderW/H, stored as such rather than guessed.
|
||||
uint32_t w = 0;
|
||||
uint32_t h = 0;
|
||||
if (!fl::slinputs::TagSize(t, w, h)) {
|
||||
g_tagExtent.store(0, std::memory_order_release);
|
||||
return;
|
||||
}
|
||||
g_tagExtent.store(w | (h << 16) | kTagValid, std::memory_order_release);
|
||||
g_tagExtent.store(static_cast<uint64_t>(w) | (static_cast<uint64_t>(h) << 16) | kTagValid,
|
||||
std::memory_order_release);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -898,6 +910,21 @@ sl::Result STDMETHODCALLTYPE Hook_SlSetTag(const sl::ViewportHandle& viewport, c
|
||||
return g_origSlSetTag(viewport, tags, numTags, cmdBuffer);
|
||||
}
|
||||
|
||||
// slSetTagForFrame: the FrameToken first, then the same list slSetTag takes. The
|
||||
// token is not read -- the frame count comes from slGetNewFrameToken -- and the tag
|
||||
// list is handed to the same NoteTags, because a per-frame tag and a viewport tag
|
||||
// state the same thing about the input buffer. Forwarded exactly once on every path.
|
||||
sl::Result STDMETHODCALLTYPE Hook_SlSetTagForFrame(const sl::FrameToken& frame, const sl::ViewportHandle& viewport,
|
||||
const sl::ResourceTag* tags, uint32_t numTags,
|
||||
sl::CommandBuffer* cmdBuffer) {
|
||||
FL_HOOK_GUARD({
|
||||
if (MayObserve()) {
|
||||
NoteTags(tags, numTags);
|
||||
}
|
||||
})
|
||||
return g_origSlSetTagForFrame(frame, viewport, tags, numTags, cmdBuffer);
|
||||
}
|
||||
|
||||
sl::Result STDMETHODCALLTYPE Hook_SlEvaluateFeature(sl::Feature feature, const sl::FrameToken& frame,
|
||||
const sl::BaseStructure** inputs, uint32_t numInputs,
|
||||
sl::CommandBuffer* cmdBuffer) {
|
||||
@@ -1360,8 +1387,33 @@ bool InstallByFamily(const wchar_t* module, const char* symbol, uint32_t family)
|
||||
reinterpret_cast<void**>(&g_origSlEvaluateFeature), g_upscalerIdentityLive);
|
||||
}
|
||||
if (family == static_cast<uint32_t>(fl::FL_HOOK_UPSCALER_PARAMS)) {
|
||||
return InstallRow(module, symbol, family, reinterpret_cast<void*>(&Hook_SlSetTag),
|
||||
reinterpret_cast<void**>(&g_origSlSetTag), g_upscalerParamsLive);
|
||||
// TWO ROWS IN THIS FAMILY WITH DIFFERENT SIGNATURES, so the family alone would
|
||||
// bind the wrong body to one of them. The symbol decides, through the constant
|
||||
// the inventory header binds to its own row -- no literal here, which is what
|
||||
// keeps hookinventory-check Pass B able to see every resolver in the Overlay.
|
||||
//
|
||||
// PATCHED WITHOUT PUBLISHING, as the ffx leaves are. The family is published by
|
||||
// PublishParamsFamilyIfWhole once every row this interposer exports is in;
|
||||
// published on the first row, it entitled records the second was not yet
|
||||
// producing -- 38 of 41 records claiming params on the frame-based fixture.
|
||||
const bool frameRow = fl::inventory::SameA(symbol, fl::inventory::kSymbolSlSetTagForFrame);
|
||||
std::atomic<uint32_t>& patched = frameRow ? g_slSetTagForFramePatched : g_slSetTagPatched;
|
||||
if (patched.load(std::memory_order_acquire) != 0) {
|
||||
return true;
|
||||
}
|
||||
void* target = fl::inventory::ResolveScoped(module, symbol);
|
||||
if (target == nullptr) {
|
||||
return false; // not loaded, a generation without this export, or an ABI we do not speak
|
||||
}
|
||||
void* detour =
|
||||
frameRow ? reinterpret_cast<void*>(&Hook_SlSetTagForFrame) : reinterpret_cast<void*>(&Hook_SlSetTag);
|
||||
void** original =
|
||||
frameRow ? reinterpret_cast<void**>(&g_origSlSetTagForFrame) : reinterpret_cast<void**>(&g_origSlSetTag);
|
||||
if (!PatchTarget(target, detour, original)) {
|
||||
return false;
|
||||
}
|
||||
patched.store(1, std::memory_order_release);
|
||||
return true;
|
||||
}
|
||||
if (family == static_cast<uint32_t>(fl::FL_HOOK_FG_EVALUATIONS)) {
|
||||
return InstallRow(module, symbol, family, reinterpret_cast<void*>(&Hook_SlGetNewFrameToken),
|
||||
@@ -1431,11 +1483,43 @@ void PublishFfxFamilyIfWhole() noexcept {
|
||||
}
|
||||
}
|
||||
|
||||
// Publish FL_HOOK_UPSCALER_PARAMS once EVERY TAG EXPORT THE LOADED INTERPOSER HAS is
|
||||
// patched, and at least one is. "Has" is the export table, not the module list: a
|
||||
// 2.7 interposer exports slSetTag alone and is whole with that one row patched; a
|
||||
// 2.8 interposer exports both, and is whole only with both. Runs after the rows on
|
||||
// every watchdog tick, so a row whose patch failed once holds the family back until
|
||||
// it is in rather than letting the other row publish over it.
|
||||
void PublishParamsFamilyIfWhole() noexcept {
|
||||
if (g_upscalerParamsLive.load(std::memory_order_acquire) != 0) {
|
||||
return;
|
||||
}
|
||||
struct Row {
|
||||
const char* symbol;
|
||||
std::atomic<uint32_t>* patched;
|
||||
};
|
||||
const Row rows[] = {{fl::inventory::kSymbolSlSetTag, &g_slSetTagPatched},
|
||||
{fl::inventory::kSymbolSlSetTagForFrame, &g_slSetTagForFramePatched}};
|
||||
bool anyPatched = false;
|
||||
for (const Row& r : rows) {
|
||||
if (r.patched->load(std::memory_order_acquire) != 0) {
|
||||
anyPatched = true;
|
||||
continue;
|
||||
}
|
||||
if (fl::inventory::ResolveScoped(fl::inventory::kModuleSlInterposer, r.symbol) != nullptr) {
|
||||
return; // exported and not yet patched: the family is not whole
|
||||
}
|
||||
}
|
||||
if (anyPatched) {
|
||||
PublishHookFamily(static_cast<uint32_t>(fl::FL_HOOK_UPSCALER_PARAMS), g_upscalerParamsLive);
|
||||
}
|
||||
}
|
||||
|
||||
bool InstallUpscalerHooks() noexcept {
|
||||
bool any = false;
|
||||
#define FL_INSTALL_ROW(mod, sym, family) any = InstallByFamily(mod, sym, static_cast<uint32_t>(family)) || any;
|
||||
FL_HOOK_INVENTORY(FL_INSTALL_ROW)
|
||||
#undef FL_INSTALL_ROW
|
||||
PublishParamsFamilyIfWhole();
|
||||
PublishFfxFamilyIfWhole();
|
||||
return any;
|
||||
}
|
||||
|
||||
@@ -2919,6 +2919,145 @@ TEST_CASE("the injected Overlay measures an upscaler it can identify", "[guard][
|
||||
CloseHandle(mapping);
|
||||
}
|
||||
|
||||
// The global-tag routes, injected: tag through the given harness flags, wait for
|
||||
// the params family, and assert the EXACT tagged size on every record after the
|
||||
// backlog. Shared by the two cases below so the assertion cannot drift between the
|
||||
// export a title uses and the shape of the tag it passes.
|
||||
void AssertGlobalTagRoutePublishesExactExtent(const wchar_t* harnessFlags) {
|
||||
Child child;
|
||||
std::wstring cmd =
|
||||
std::wstring(L"\"") + FL_HARNESS_EXE + L"\" --real " + harnessFlags + L" --hold-presenting-upscaled 12";
|
||||
|
||||
STARTUPINFOW si{};
|
||||
|
||||
si.cb = sizeof(si);
|
||||
|
||||
REQUIRE(CreateProcessW(FL_HARNESS_EXE, cmd.data(), nullptr, nullptr, FALSE, CREATE_NO_WINDOW, nullptr, nullptr, &si,
|
||||
|
||||
&child.pi));
|
||||
|
||||
Sleep(800);
|
||||
|
||||
REQUIRE(WaitForSingleObject(child.pi.hProcess, 0) == WAIT_TIMEOUT);
|
||||
|
||||
ResetFake();
|
||||
|
||||
g.modules = {"kernel32.dll"};
|
||||
|
||||
g.scanSet = {child.pi.dwProcessId};
|
||||
|
||||
REQUIRE(GuardedInjectWithSources(child.pi.dwProcessId, FL_OVERLAY_DLL, FakeSources()).Allowed());
|
||||
|
||||
wchar_t name[128]{};
|
||||
|
||||
REQUIRE(_snwprintf_s(name, _TRUNCATE, L"Local\\FrameLedger.Ring.%lu", child.pi.dwProcessId) > 0);
|
||||
|
||||
HANDLE mapping = nullptr;
|
||||
|
||||
for (int i = 0; i < 100 && mapping == nullptr; ++i) {
|
||||
|
||||
mapping = OpenFileMappingW(FILE_MAP_READ, FALSE, name);
|
||||
|
||||
if (mapping == nullptr) {
|
||||
|
||||
Sleep(50);
|
||||
}
|
||||
}
|
||||
|
||||
REQUIRE(mapping != nullptr);
|
||||
|
||||
const void* base = MapViewOfFile(mapping, FILE_MAP_READ, 0, 0, 0);
|
||||
|
||||
REQUIRE(base != nullptr);
|
||||
|
||||
const auto* st =
|
||||
|
||||
reinterpret_cast<const fl::FlWriterState*>(static_cast<const unsigned char*>(base) + FL_SHM_WRITER_OFFSET);
|
||||
|
||||
for (int i = 0; i < 100 && st->status != fl::FL_STATUS_READY; ++i) {
|
||||
|
||||
Sleep(50);
|
||||
}
|
||||
|
||||
REQUIRE(st->status == fl::FL_STATUS_READY);
|
||||
|
||||
REQUIRE(WaitForIdentityHook(st));
|
||||
|
||||
REQUIRE(WaitForHookFamily(st, static_cast<uint32_t>(fl::FL_HOOK_UPSCALER_PARAMS)));
|
||||
|
||||
fl::RingReader rd;
|
||||
|
||||
REQUIRE(rd.Init(base, FL_SHM_DEFAULT_CAPACITY));
|
||||
|
||||
DiscardBacklog(rd);
|
||||
|
||||
const std::vector<fl::FlFrameRecord> all = DrainAtLeast(rd, 40, 8000);
|
||||
|
||||
REQUIRE(all.size() > 20);
|
||||
|
||||
int claimedParams = 0;
|
||||
|
||||
int wrongExtent = 0;
|
||||
|
||||
int identified = 0;
|
||||
|
||||
for (const auto& r : all) {
|
||||
|
||||
if (r.upscaler == fl::FL_UPSCALER_DLSS) {
|
||||
|
||||
++identified;
|
||||
}
|
||||
|
||||
if ((r.measuredMask & fl::FL_MEASURED_UPSCALER_PARAMS) != 0u) {
|
||||
|
||||
++claimedParams;
|
||||
|
||||
if (r.renderW != FL_TAGGED_RENDER_W || r.renderH != FL_TAGGED_RENDER_H) {
|
||||
|
||||
++wrongExtent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
INFO("identified " << identified << ", params on " << claimedParams << " of " << all.size());
|
||||
|
||||
CHECK(identified > static_cast<int>(all.size()) - 3);
|
||||
|
||||
// Every record once BOTH rows' family is live and the backlog is gone -- the same
|
||||
|
||||
// equality the slSetTag case asserts, from the other export.
|
||||
|
||||
CHECK(claimedParams == static_cast<int>(all.size()));
|
||||
|
||||
CHECK(wrongExtent == 0);
|
||||
|
||||
CHECK(st->faultCount == 0);
|
||||
|
||||
UnmapViewOfFile(base);
|
||||
|
||||
CloseHandle(mapping);
|
||||
}
|
||||
|
||||
TEST_CASE("a Streamline 2.8 title that tags through slSetTagForFrame still publishes the extent",
|
||||
"[guard][inject][shm][upscaler]") {
|
||||
// THE ROW THAT DID NOT EXIST ON 2026-09-04 MORNING. Dying Light: The Beast ships
|
||||
// Streamline 2.8.0, which deprecates slSetTag for slSetTagForFrame; the title
|
||||
// published DLSS identity on every batch and the params bit on none, because the
|
||||
// only tag row hooked the deprecated export. This fixture tags ONLY through the
|
||||
// frame-based export, so an extent in the record can only have come from the new
|
||||
// row -- and the exact tagged size is asserted, not "non-zero".
|
||||
AssertGlobalTagRoutePublishesExactExtent(L"--sl-tag-for-frame");
|
||||
}
|
||||
|
||||
TEST_CASE("a title that tags the WHOLE input resource publishes the size the Resource declares",
|
||||
"[guard][inject][shm][upscaler]") {
|
||||
// The shape left after the row above landed and DL:TB still read no extent: a
|
||||
// zero extent ("use the entire resource") with the size on the Resource. Tagged
|
||||
// through the 2.8 export, as that title would. An extent in the record can only
|
||||
// have come from Resource::width/height, and it must be the exact tagged size.
|
||||
AssertGlobalTagRoutePublishesExactExtent(L"--sl-tag-for-frame --sl-tag-whole-resource");
|
||||
}
|
||||
|
||||
TEST_CASE("an upscaler the Overlay cannot identify is UNKNOWN, never NONE", "[guard][inject][shm][upscaler]") {
|
||||
// THE OTHER DIRECTION, and the one that makes the case above mean anything.
|
||||
// A writer that simply hardcoded FL_UPSCALER_DLSS would pass every assertion
|
||||
|
||||
@@ -52,6 +52,12 @@
|
||||
// production call site at all
|
||||
// --presents-per-eval K
|
||||
// the FG factor --hold-presenting-fg emits. 1 is the control
|
||||
// --sl-tag-for-frame
|
||||
// make --hold-presenting-upscaled tag through slSetTagForFrame
|
||||
// (Streamline 2.8's frame-based API) instead of slSetTag
|
||||
// --sl-tag-whole-resource
|
||||
// make --hold-presenting-upscaled tag with a ZERO extent and the
|
||||
// size on the Resource instead (the whole-resource shape)
|
||||
// --probe-ffx-resolve
|
||||
// AMD ffx-api: the Overlay's resolver picks each LEAF's own
|
||||
// ffxDispatch with the loader decoy present, and a dispatch
|
||||
@@ -1725,7 +1731,55 @@ bool ProbeSlInputs() {
|
||||
const sl::BaseStructure* one[] = {&tagWholeResource};
|
||||
const auto r = fl::slinputs::FindScalingInputExtent(one, 1);
|
||||
Check(!r.found && r.renderW == 0 && r.renderH == 0,
|
||||
"a whole-resource tag yields the honest unknown, not a 0x0 resolution");
|
||||
"a whole-resource tag with NO size on the Resource yields the honest unknown, not a 0x0 resolution");
|
||||
}
|
||||
{
|
||||
// THE WHOLE-RESOURCE SHAPE WITH THE SIZE ON THE RESOURCE: extent zero, and
|
||||
// the Resource the tag points at declares width/height. That is the title's
|
||||
// statement of the input buffer's size, read from the argument it passed.
|
||||
sl::Resource sized(sl::ResourceType::eTex2d, nullptr);
|
||||
sized.width = kTaggedRenderW;
|
||||
sized.height = kTaggedRenderH;
|
||||
sl::ResourceTag whole(&sized, sl::kBufferTypeScalingInputColor, sl::ResourceLifecycle::eValidUntilPresent,
|
||||
&zero);
|
||||
const sl::BaseStructure* one[] = {&whole};
|
||||
const auto r = fl::slinputs::FindScalingInputExtent(one, 1);
|
||||
Check(r.found && r.renderW == kTaggedRenderW && r.renderH == kTaggedRenderH,
|
||||
"a whole-resource tag takes the exact size the Resource declares");
|
||||
}
|
||||
{
|
||||
// A non-zero extent WINS over the Resource's size: the extent is the area in
|
||||
// use, the Resource may be the larger dynamic-resolution target.
|
||||
sl::Resource bigger(sl::ResourceType::eTex2d, nullptr);
|
||||
bigger.width = kTaggedRenderW * 2u;
|
||||
bigger.height = kTaggedRenderH * 2u;
|
||||
sl::ResourceTag sub(&bigger, sl::kBufferTypeScalingInputColor, sl::ResourceLifecycle::eValidUntilPresent,
|
||||
&real);
|
||||
const sl::BaseStructure* one[] = {&sub};
|
||||
const auto r = fl::slinputs::FindScalingInputExtent(one, 1);
|
||||
Check(r.found && r.renderW == kTaggedRenderW && r.renderH == kTaggedRenderH,
|
||||
"an extent takes precedence over the Resource's own size");
|
||||
}
|
||||
{
|
||||
// The Resource pointer names something that is NOT a Resource: GUID-checked
|
||||
// and skipped, never read as one.
|
||||
sl::ViewportHandle notAResource{9u};
|
||||
sl::ResourceTag bad(reinterpret_cast<sl::Resource*>(¬AResource), sl::kBufferTypeScalingInputColor,
|
||||
sl::ResourceLifecycle::eValidUntilPresent, &zero);
|
||||
const sl::BaseStructure* one[] = {&bad};
|
||||
Check(!fl::slinputs::FindScalingInputExtent(one, 1).found,
|
||||
"a whole-resource tag whose Resource fails the GUID check yields nothing");
|
||||
}
|
||||
{
|
||||
// TagSize is the SAME reading the global-tag detours use, so the direct
|
||||
// call is asserted too: a Resource with one zero dimension is not a size.
|
||||
sl::Resource half(sl::ResourceType::eTex2d, nullptr);
|
||||
half.width = kTaggedRenderW;
|
||||
sl::ResourceTag whole(&half, sl::kBufferTypeScalingInputColor, sl::ResourceLifecycle::eValidUntilPresent,
|
||||
&zero);
|
||||
uint32_t w = 0;
|
||||
uint32_t h = 0;
|
||||
Check(!fl::slinputs::TagSize(whole, w, h), "a Resource declaring only a width is not a size");
|
||||
}
|
||||
{
|
||||
const sl::BaseStructure* one[] = {&tagOtherBuffer};
|
||||
@@ -2178,13 +2232,18 @@ bool ProbeFfxResolve() {
|
||||
// ---------------------------------------------------------------------------
|
||||
using StubSetTagFn = sl::Result(STDMETHODCALLTYPE*)(const sl::ViewportHandle&, const sl::ResourceTag*, uint32_t,
|
||||
sl::CommandBuffer*);
|
||||
// The token slot is integer-class (a reference is a pointer) and nothing on either
|
||||
// side dereferences it, so the dummy buffer stands in exactly as it does for
|
||||
// slEvaluateFeature's token below.
|
||||
using StubSetTagForFrameFn = sl::Result(STDMETHODCALLTYPE*)(const void*, const sl::ViewportHandle&,
|
||||
const sl::ResourceTag*, uint32_t, sl::CommandBuffer*);
|
||||
|
||||
using StubEvaluateFn = sl::Result(STDMETHODCALLTYPE*)(sl::Feature, const void*, const void*, uint32_t, void*);
|
||||
using StubTokenFn = sl::Result(STDMETHODCALLTYPE*)(sl::FrameToken*&, const uint32_t*);
|
||||
|
||||
alignas(16) unsigned char g_dummyFrameToken[64]{};
|
||||
|
||||
int HoldPresentingUpscaled(Gfx& g, int seconds, bool real, sl::Feature feature) {
|
||||
int HoldPresentingUpscaled(Gfx& g, int seconds, bool real, sl::Feature feature, bool tagForFrame, bool wholeResource) {
|
||||
const HMODULE stub = LoadStubExactly(FL_STUB_SL_INTERPOSER);
|
||||
if (stub == nullptr) {
|
||||
Check(false, "the sl.interposer.dll stub loaded for the upscaled hold");
|
||||
@@ -2214,16 +2273,36 @@ int HoldPresentingUpscaled(Gfx& g, int seconds, bool real, sl::Feature feature)
|
||||
Check(false, "the stub exports slSetTag");
|
||||
return 1;
|
||||
}
|
||||
// THE 2.8 ROUTE: the same tag list through slSetTagForFrame, and NEVER through
|
||||
// slSetTag in that mode -- so an extent in the record can only have come from the
|
||||
// frame-based row, which is what the injected case for it asserts.
|
||||
auto setTagForFrame =
|
||||
reinterpret_cast<StubSetTagForFrameFn>(reinterpret_cast<void*>(GetProcAddress(stub, "slSetTagForFrame")));
|
||||
if (setTagForFrame == nullptr) {
|
||||
Check(false, "the stub exports slSetTagForFrame");
|
||||
return 1;
|
||||
}
|
||||
// Two shapes of the same statement. The extent shape is Cyberpunk's; the
|
||||
// whole-resource shape (zero extent, size on the Resource) is the one a title
|
||||
// that tags entire buffers produces, and under it an extent in the record can
|
||||
// only have come from the Resource's declared size.
|
||||
sl::Extent extent{};
|
||||
sl::Extent zero{};
|
||||
extent.width = kTaggedRenderW;
|
||||
extent.height = kTaggedRenderH;
|
||||
sl::ResourceTag tag(nullptr, sl::kBufferTypeScalingInputColor, sl::ResourceLifecycle::eValidUntilPresent, &extent);
|
||||
sl::Resource sized(sl::ResourceType::eTex2d, nullptr);
|
||||
sized.width = kTaggedRenderW;
|
||||
sized.height = kTaggedRenderH;
|
||||
sl::ResourceTag tag(wholeResource ? &sized : nullptr, sl::kBufferTypeScalingInputColor,
|
||||
sl::ResourceLifecycle::eValidUntilPresent, wholeResource ? &zero : &extent);
|
||||
sl::ViewportHandle viewport{0u};
|
||||
|
||||
const UINT flags = real ? 0u : DXGI_PRESENT_TEST;
|
||||
std::printf(" presenting for %d second(s) [%s], evaluating feature %u before each present\n", seconds,
|
||||
real ? "REAL" : "DXGI_PRESENT_TEST", static_cast<unsigned>(feature));
|
||||
std::printf(" tagged kBufferTypeScalingInputColor extent %ux%u\n", kTaggedRenderW, kTaggedRenderH);
|
||||
std::printf(" tagged kBufferTypeScalingInputColor %s %ux%u through %s\n",
|
||||
wholeResource ? "whole resource, Resource size" : "extent", kTaggedRenderW, kTaggedRenderH,
|
||||
tagForFrame ? "slSetTagForFrame (Streamline 2.8, frame-based)" : "slSetTag");
|
||||
std::fflush(stdout);
|
||||
|
||||
const ULONGLONG until = GetTickCount64() + static_cast<ULONGLONG>(seconds) * 1000ULL;
|
||||
@@ -2233,7 +2312,11 @@ int HoldPresentingUpscaled(Gfx& g, int seconds, bool real, sl::Feature feature)
|
||||
// Tag, then evaluate, then present -- the order a Streamline title uses,
|
||||
// and the order that matters: the extent must be in place before the
|
||||
// evaluation the Overlay attributes it to.
|
||||
setTag(viewport, &tag, 1, nullptr);
|
||||
if (tagForFrame) {
|
||||
setTagForFrame(g_dummyFrameToken, viewport, &tag, 1, nullptr);
|
||||
} else {
|
||||
setTag(viewport, &tag, 1, nullptr);
|
||||
}
|
||||
// ONE EVALUATION PER PRESENT, which is what a real upscaled title does
|
||||
// and what makes the drained record's identity checkable frame by frame.
|
||||
eval(feature, g_dummyFrameToken, nullptr, 0, nullptr);
|
||||
@@ -2562,6 +2645,8 @@ int main(int argc, char** argv) {
|
||||
// hold mode drives every combination and the tests assert one expression.
|
||||
FfxTopology ffxTopology = FfxTopology::Loader;
|
||||
bool ffxPrepare = true;
|
||||
bool slTagForFrame = false;
|
||||
bool slTagWholeResource = false;
|
||||
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
if (std::strcmp(argv[i], "--real") == 0) {
|
||||
@@ -2589,13 +2674,18 @@ int main(int argc, char** argv) {
|
||||
: FfxTopology::Loader;
|
||||
} else if (std::strcmp(argv[i], "--ffx-no-prepare") == 0) {
|
||||
ffxPrepare = false;
|
||||
} else if (std::strcmp(argv[i], "--sl-tag-for-frame") == 0) {
|
||||
slTagForFrame = true;
|
||||
} else if (std::strcmp(argv[i], "--sl-tag-whole-resource") == 0) {
|
||||
slTagWholeResource = true;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
if (std::strcmp(argv[i], "--real") == 0 || std::strcmp(argv[i], "--plus-ui") == 0 ||
|
||||
std::strcmp(argv[i], "--present-interval-ms") == 0 || std::strcmp(argv[i], "--presents-per-eval") == 0 ||
|
||||
std::strcmp(argv[i], "--ffx-topology") == 0 || std::strcmp(argv[i], "--ffx-no-prepare") == 0) {
|
||||
std::strcmp(argv[i], "--ffx-topology") == 0 || std::strcmp(argv[i], "--ffx-no-prepare") == 0 ||
|
||||
std::strcmp(argv[i], "--sl-tag-for-frame") == 0 || std::strcmp(argv[i], "--sl-tag-whole-resource") == 0) {
|
||||
if (std::strcmp(argv[i], "--plus-ui") == 0 || std::strcmp(argv[i], "--present-interval-ms") == 0 ||
|
||||
std::strcmp(argv[i], "--presents-per-eval") == 0 || std::strcmp(argv[i], "--ffx-topology") == 0) {
|
||||
++i;
|
||||
@@ -2611,7 +2701,9 @@ int main(int argc, char** argv) {
|
||||
ok = HoldPresentingFfx(g, std::atoi(argv[++i]), real, presentsPerEval, ffxTopology, ffxPrepare) == 0 && ok;
|
||||
ranSomething = true;
|
||||
} else if (std::strcmp(argv[i], "--hold-presenting-upscaled") == 0 && i + 1 < argc) {
|
||||
ok = HoldPresentingUpscaled(g, std::atoi(argv[++i]), real, sl::kFeatureDLSS) == 0 && ok;
|
||||
ok = HoldPresentingUpscaled(g, std::atoi(argv[++i]), real, sl::kFeatureDLSS, slTagForFrame,
|
||||
slTagWholeResource) == 0 &&
|
||||
ok;
|
||||
ranSomething = true;
|
||||
} else if (std::strcmp(argv[i], "--hold-presenting-upscaled-unknown") == 0 && i + 1 < argc) {
|
||||
// The SAME target, evaluating a feature id the Overlay does not
|
||||
@@ -2619,7 +2711,9 @@ int main(int argc, char** argv) {
|
||||
// SET -- "a hook ran and could not identify what it saw" -- and must
|
||||
// never report FL_UPSCALER_NONE, which is the only state that may be
|
||||
// aggregated as a negative. 0xF00D is not a Streamline feature.
|
||||
ok = HoldPresentingUpscaled(g, std::atoi(argv[++i]), real, static_cast<sl::Feature>(0xF00Du)) == 0 && ok;
|
||||
ok = HoldPresentingUpscaled(g, std::atoi(argv[++i]), real, static_cast<sl::Feature>(0xF00Du), slTagForFrame,
|
||||
slTagWholeResource) == 0 &&
|
||||
ok;
|
||||
ranSomething = true;
|
||||
} else if (std::strcmp(argv[i], "--probe-upscaler-resolve") == 0) {
|
||||
ok = ProbeUpscalerResolve() && ok;
|
||||
|
||||
@@ -59,6 +59,9 @@ StubFrameToken g_tokenPool[8];
|
||||
static_assert(fl::stub::InventoryHas("slGetNewFrameToken"),
|
||||
"fl_hook_inventory.h no longer contains \"slGetNewFrameToken\", so the frame-token fixture would "
|
||||
"exercise a row the Overlay does not install.");
|
||||
static_assert(fl::stub::InventoryHas("slSetTagForFrame"),
|
||||
"fl_hook_inventory.h no longer contains \"slSetTagForFrame\", so the frame-based tag fixture would "
|
||||
"exercise a row the Overlay does not install.");
|
||||
static_assert(fl::stub::InventoryHas("slEvaluateFeature"),
|
||||
"fl_hook_inventory.h no longer contains \"slEvaluateFeature\", so this stub would export a name "
|
||||
"the Overlay does not look for -- the fixture would pass while proving nothing "
|
||||
@@ -99,6 +102,22 @@ SL_API sl::Result slSetTag(const sl::ViewportHandle& viewport, const sl::Resourc
|
||||
return sl::Result::eOk;
|
||||
}
|
||||
|
||||
// THE FRAME-BASED TAG ENTRY POINT (Streamline 2.8: Dying Light: The Beast ships
|
||||
// 2.8.0, which exports this beside the deprecated slSetTag). Signature from the
|
||||
// vendored header, as above. The stub records nothing here either; the harness
|
||||
// drives it with a known extent so the injected case can assert the Overlay read
|
||||
// renderW/H off THIS route rather than off slSetTag.
|
||||
SL_API sl::Result slSetTagForFrame(const sl::FrameToken& frame, const sl::ViewportHandle& viewport,
|
||||
const sl::ResourceTag* resources, uint32_t numResources,
|
||||
sl::CommandBuffer* cmdBuffer) {
|
||||
(void)frame;
|
||||
(void)viewport;
|
||||
(void)resources;
|
||||
(void)numResources;
|
||||
(void)cmdBuffer;
|
||||
return sl::Result::eOk;
|
||||
}
|
||||
|
||||
// THE ABI MARKERS. Three SL2-only entry points, exported so this stub actually
|
||||
// looks like the generation it stands in for.
|
||||
//
|
||||
|
||||
@@ -61,14 +61,35 @@ public sealed class TargetResolverTests : IDisposable
|
||||
SpinWait.SpinUntil(() =>
|
||||
{
|
||||
Process[] seen = Process.GetProcessesByName(name);
|
||||
int count = seen.Length;
|
||||
int count = 0;
|
||||
foreach (Process p in seen)
|
||||
{
|
||||
p.Dispose();
|
||||
try
|
||||
{
|
||||
// VISIBLE MEANS READABLE, not merely enumerated. A process can be in the
|
||||
// snapshot before its image is mapped, with MainModule null -- measured on
|
||||
// the hosted runner 2026-09-04 (OneInstanceResolves, twice in an hour): the
|
||||
// count below reached 1 and the resolver then saw a candidate with no image.
|
||||
// The resolver now counts that as unreadable rather than absent, so a test
|
||||
// that resolved at that instant would read TargetAmbiguous -- still not the
|
||||
// state under test. Wait for the state the case is about.
|
||||
if (p.MainModule?.FileName is not null)
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception)
|
||||
{
|
||||
// Not readable yet; keep waiting.
|
||||
}
|
||||
finally
|
||||
{
|
||||
p.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
return count >= _children.Count;
|
||||
}, TimeSpan.FromSeconds(10)).Should().BeTrue("every started instance must be enumerable before resolving");
|
||||
}, TimeSpan.FromSeconds(10)).Should().BeTrue("every started instance must be enumerable AND readable before resolving");
|
||||
}
|
||||
|
||||
private int? ResolveNow(out SessionEndReason reason)
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
using System.Diagnostics;
|
||||
using FluentAssertions;
|
||||
using FrameLedger.CaptureHost.Consume;
|
||||
using FrameLedger.Shared;
|
||||
|
||||
namespace FrameLedger.CaptureHost.Tests.Consume;
|
||||
|
||||
/// <summary>
|
||||
/// The render → output line: <c>03_METRICS</c>' ratio over two measured sizes, modal, with the
|
||||
/// settings-moved flag — and never a preset name.
|
||||
/// </summary>
|
||||
public sealed class UpscaleExtentTests
|
||||
{
|
||||
private static FlFrameRecord Record(ushort renderW, ushort renderH, ushort outputW, ushort outputH,
|
||||
FlMeasured extra = FlMeasured.UpscalerParams | FlMeasured.Upscaler) => new()
|
||||
{
|
||||
SwapchainId = 1,
|
||||
OutputW = outputW,
|
||||
OutputH = outputH,
|
||||
RenderW = renderW,
|
||||
RenderH = renderH,
|
||||
UpscalerQuality = 0xFF,
|
||||
UpscalerSharpness = 0xFF,
|
||||
Upscaler = (byte)FlUpscaler.Dlss,
|
||||
MeasuredMask = (ushort)(FlMeasured.OutputRes | FlMeasured.PresentArgs | extra),
|
||||
};
|
||||
|
||||
[Fact]
|
||||
public void CyberpunkAtBalancedIs172xAnd58Percent()
|
||||
{
|
||||
// The number measured on 2026-08-15 against the title's own menu: 1485x835 at 2560x1440 is
|
||||
// DLSS Balanced's 0.58, and a writer that hardcoded a plausible resolution cannot produce it.
|
||||
var stream = Enumerable.Range(0, 40).Select(_ => Record(1485, 835, 2560, 1440)).ToList();
|
||||
|
||||
UpscaleExtent? e = UpscaleExtent.From(stream);
|
||||
|
||||
e.Should().NotBeNull();
|
||||
e!.Ratio.Should().BeApproximately(1.724, 0.001);
|
||||
e.RenderScalePercent.Should().BeApproximately(58.0, 0.5);
|
||||
e.Records.Should().Be(40);
|
||||
e.Measured.Should().Be(40);
|
||||
e.DistinctGroups.Should().Be(1);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheReportPrintsBothSizesTheRatioAndTheScaleAndNoPresetName()
|
||||
{
|
||||
var stream = Enumerable.Range(0, 40).Select(_ => Record(1485, 835, 2560, 1440)).ToList();
|
||||
var writer = new FlWriterState
|
||||
{
|
||||
HooksInstalledMask = (uint)(FlHookFamily.Present | FlHookFamily.UpscalerIdentity | FlHookFamily.UpscalerParams),
|
||||
RuntimeCensus = (uint)FlRuntimeCensus.Ran,
|
||||
};
|
||||
|
||||
MeasuredFacts facts = MeasuredFacts.From(stream, writer, Stopwatch.Frequency, 0, 0);
|
||||
string text = SessionReport.Render(facts);
|
||||
|
||||
facts.UpscaleRatio.Should().BeApproximately(1.724, 0.001);
|
||||
text.Should().Contain("render -> output: 1485x835 -> 2560x1440 = 1.72x (58% render scale) on 40 of 40 record(s)");
|
||||
text.Should().NotContain("Balanced", "a preset name derived from the ratio is HANDOFF 7a's owner decision, not this line's");
|
||||
text.Should().NotContain("SETTINGS MOVED");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ASettingsChangeMidWindowIsTheDominantTupleWithTheFlag()
|
||||
{
|
||||
// Quality for the first third, Balanced after. Averaging would print a resolution nobody
|
||||
// rendered at; the modal tuple is a resolution somebody did, and the flag says it moved.
|
||||
var stream = Enumerable.Range(0, 30).Select(_ => Record(1707, 960, 2560, 1440))
|
||||
.Concat(Enumerable.Range(0, 60).Select(_ => Record(1485, 835, 2560, 1440))).ToList();
|
||||
|
||||
UpscaleExtent? e = UpscaleExtent.From(stream);
|
||||
string text = SessionReport.Render(MeasuredFacts.From(stream, new FlWriterState
|
||||
{
|
||||
HooksInstalledMask = (uint)(FlHookFamily.Present | FlHookFamily.UpscalerIdentity | FlHookFamily.UpscalerParams),
|
||||
}, Stopwatch.Frequency, 0, 0));
|
||||
|
||||
e.Should().NotBeNull();
|
||||
e!.RenderW.Should().Be(1485);
|
||||
e.Records.Should().Be(60);
|
||||
e.Measured.Should().Be(90);
|
||||
e.DistinctGroups.Should().Be(2);
|
||||
text.Should().Contain("SETTINGS MOVED: 2 distinct extents");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RecordsWithoutBothBitsDoNotCount()
|
||||
{
|
||||
// A value without its bit is the writer's defect; params without an output size cannot make
|
||||
// a ratio; a window with neither is null and the report says so rather than printing 0.
|
||||
List<FlFrameRecord> stream =
|
||||
[
|
||||
Record(1485, 835, 2560, 1440, extra: FlMeasured.Upscaler), // params bit clear
|
||||
Record(1485, 835, 0, 0), // no output size
|
||||
];
|
||||
|
||||
UpscaleExtent.From(stream).Should().BeNull();
|
||||
string text = SessionReport.Render(MeasuredFacts.From(stream,
|
||||
new FlWriterState { HooksInstalledMask = (uint)FlHookFamily.Present }, Stopwatch.Frequency, 0, 0));
|
||||
text.Should().Contain("render -> output: N/A (no record carried both a render size and an output size)");
|
||||
}
|
||||
}
|
||||
@@ -87,15 +87,32 @@ if ($files.Count -eq 0) {
|
||||
|
||||
# One entry per DISTINCT module name. Titles ship the same DLL repeatedly; the
|
||||
# question is what a module of that name exports, not how many copies exist.
|
||||
#
|
||||
# THE UNION ACROSS COPIES, since 2026-09-04, and not the first copy found. Two
|
||||
# generations of the same name coexist on this machine -- sl.interposer.dll 2.7.1
|
||||
# beside 2.8.0, which added slSetTagForFrame -- and "what a module of that name
|
||||
# exports" depends on which copy the walk happened to reach first. A row for a
|
||||
# symbol only the newer generation exports would then pass or fail Pass A on
|
||||
# directory order. Every distinct version is listed, so the oracle says which
|
||||
# generations it saw; `version` keeps the first for the existing readers.
|
||||
$modules = [ordered]@{}
|
||||
$seen = @{}
|
||||
foreach ($f in $files) {
|
||||
if ($seen.ContainsKey($f.Name)) { $seen[$f.Name]++; continue }
|
||||
$seen[$f.Name] = 1
|
||||
$ex = Get-Exports $f.FullName
|
||||
$ver = (Get-Item $f.FullName).VersionInfo.FileVersion
|
||||
if ($seen.ContainsKey($f.Name)) {
|
||||
$seen[$f.Name]++
|
||||
$m = $modules[$f.Name]
|
||||
$m.exports = @(@($m.exports) + $ex | Sort-Object -Unique)
|
||||
$m.exportCount = $m.exports.Count
|
||||
if ($ver -and ($m.versions -notcontains $ver)) { $m.versions = @(@($m.versions) + $ver) }
|
||||
continue
|
||||
}
|
||||
$seen[$f.Name] = 1
|
||||
$modules[$f.Name] = [ordered]@{
|
||||
exportCount = $ex.Count
|
||||
version = (Get-Item $f.FullName).VersionInfo.FileVersion
|
||||
version = $ver
|
||||
versions = @(if ($ver) { $ver })
|
||||
exports = @($ex)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user