docs/fspx: the FidelityFX loader and upscaler entry points (measured) #2017
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u origin "github-pr/2017:github-pr/2017" git switch "github-pr/2017"
Open
leonida/mandy
BubsMcgee wants to merge 1 commit from
github-pr/2017 into main
pull from: github-pr/2017
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!2017
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/2017"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This branch is out-of-date with the base branch
Reviewers 0 approvals
Details
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Docs-only; measurement from the two shipped DLLs, no game data.
What
docs/fspx.mdgains "The ffx_api entry points (measured)": the five exports in both modules, which four theexecutable imports (all from the loader), the loader's descriptor linked-list walk and module mask, the 16-byte
context layout, the backend vtables
ffxQuery/ffxDispatchcall, the upscaler's two-backend table, and thefunction that holds the pre-#1862 AV at
+0x65ff.Why
This is T-3 in the isolated-RE plan: it turns the upscaler entry contract and the crash location into measured notes.
It does not change translation and does not replace #1862, which is the fix for the two missing FSPX programs.
Tests
python -I tests/test_docs_links.pyand the othertests/test_docs_*.pysuitespython -I scripts/check_no_game_data.py docs/fspx.mdAI-assisted (opencode). Claimed as
FIDELITYFX-ENTRY-CONTRACTin the coordination issue.Native Windows 11 Verification (
2cd7770ff2)Diff-audited
docs/fspx.md(+32/-0) and verified merged ontoorigin/main(ba8b77b390) on Windows 11 (10.0.26200, Python3.12.10with-I).Action Needed:
tests/test_docs_cli_flags.pyFails on--coff-exportsRunning
python -I tests/test_docs_cli_flags.pyonPR #2017merged ontoorigin/mainexits withrc=1:tests/test_docs_cli_flags.pychecks every--flagtoken indocs/*.mdagainst tracked non-Markdown source files and theFOREIGNallowlist (tests/test_docs_cli_flags.py:27-31). Either add"--coff-exports"toFOREIGNintests/test_docs_cli_flags.py(alongside other external tool flags), or phrasedocs/fspx.mdwithout the--coff-exportsflag token (e.g. "read from the COFF export tables on 1.0.2.1").Passing Suites & FidelityFX SDK Cross-Check
tests/test_fspx_prologue_probe.py(7/7),tests/test_fspx_shaders_stage.py,tests/test_fspx_unpack.py(37ran,1skipped),tests/test_fspx_unpack_out.py(5/5),tests/test_docs_links.py(17/17),tests/test_docs_repo_paths.py(5/5),tests/test_docs_table_rows.py(2/2),tests/test_docs_list_items.py(3/3),tests/test_docs_encoding.py(1/1),tests/test_text_write_line_endings.py(3/3), andscripts/check_no_game_data.pyall pass (rc=0).ffx_apiheaders (ffx_api_types.h/ffx_api.h): return codes6(FFX_API_RETURN_ERROR_PARAMETER),2(FFX_API_RETURN_ERROR_UNKNOWN_DESCTYPE),4(FFX_API_RETURN_NO_PROVIDER);type == 4(FFX_API_QUERY_DESC_TYPE_GET_VERSIONS:createDescTypeat+0x10,deviceat+0x18,outputCountat+0x20);type == 5(FFX_API_CREATE_CONTEXT_DESC_TYPE_OVERRIDE_VERSION); and effect mask0x00ff0000(0x10000upscale vs0x20000/0x30000frame generation).AI-assisted.
RUN (local, docs-only PR)
PR #2017, head 2cd7770ff2032a7744a6ee92ba765a3b2c200bbf; main 1bc055e6c2dedaa0de23ec79d8c4007c1dff1fb3; PR merge base b9320a118.
Changed file:
docs/fspx.mdonly (no Rust, Python or test change).git merge-tree --write-tree main prmerges cleanly (no conflicts).Commands (repo root of the PR head, Python 3.13.12, one process per file):
GREEN/overall: 14 of 15 test files pass at the PR head.
tests/test_docs_cli_flags.pyFAILS (1 of 4 tests,test_docs_name_existing_flags): "flags in the docs that no source file mentions: docs/fspx.md:413 --coff-exports". The flag is an llvm-readobj option quoted in the new section, not a Leonida flag. The same file passes on the PR's base (b9320a118) and on main (1bc055e6c), so the failure comes from this PR's added text, not from a pre-existing problem. Fix idea for the author: reword the line so the option is not written as a bare--flagtoken (for example "llvm-readobj, COFF export listing"), or keep it out of backticks if the checker allows it.RED: not applicable. The PR changes documentation only and adds no test, so there is no behaviour to revert and no red was invented. No cargo test is involved (the PR touches nothing under d3d12/).
Machine: NVIDIA GeForce RTX 3090 24 GB, driver 621.40, Windows 11 Pro 10.0.26300. No GPU or game run: docs-only change.
TAKEN by OreoFR (Windows, RTX 4070 8 GB)
Verified by OreoFR — FAILS (
tests/test_docs_cli_flags.py)docs/fspx.md).tests/test_docs_*.pyfiles pass. On the merge, 12 of 13 pass andpython -I tests/test_docs_cli_flags.pyfails (test_docs_name_existing_flags):flags in the docs that no source file mentions: docs/fspx.md:434 --coff-exports. The flag is llvm-readobj's, quoted in the new section; main's later changes to this test do not let it through.scripts/check_no_game_data.py docs/fspx.md: clean.--coff-exportstoFOREIGNintests/test_docs_cli_flags.py.88b290fcb), so those references should name #1662.AI-assisted (Claude Code, Claude Opus 5.5), run for OreoFR.
Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main 4364a4fa6, PR head 2cd7770ff : new doc-test failure
Doc tests run on main and on main + PR (merge commit built with
merge-tree+commit-tree, same tree asmerge --no-ff): the 13tests/test_docs_*.py,test_design_contract_rows,test_progress_dashboard,test_make_game_preflight,test_ci_registration(17 files). Merge: clean.test_docs_cli_flags.py::test_docs_name_existing_flags—flags in the docs that no source file mentions: docs/fspx.md:434 --coff-exports. Passes on main. Same finding as the earlier reports; no new commit since.Verdict: FAILS
AI-assisted: Claude Code
Verification of #2017 (FIDELITYFX-ENTRY-CONTRACT, docs/fspx.md): third-party run on Linux x86_64, no game files.
2cd7770ff, merge baseb9320a118, merged locally (detached, clean merge) intomain45dc41f95. Diff:docs/fspx.md, +32/-0.Commands and results
python -m unittest discover -s tests -p "test_docs_*.py": 57 tests, 1 failure:test_docs_cli_flags.DocsCliFlags.test_docs_name_existing_flagsreportsflags in the docs that no source file mentions: docs/fspx.md:449 --coff-exports.python -I scripts/check_no_game_data.py docs/fspx.md: clean.action_required, so the checks do not show this failure yet. It is the same failure reported earlier in this thread, and it is still not fixed on the current head.Defects
docs/fspx.md:449:llvm-readobj --coff-exportstrips the docs flag checker. Reword it, for example as "the COFF export table, read with llvm-readobj", or write it in a form the checker accepts.AI-assisted (opencode)but does not name the models or the reviewer agent's model (CONTRIBUTING.md).Content: the RVAs and record types are given as measured values with the tool named. The diff quotes no bytes or code from the DLLs.
Verdict: defects. The docs test fails on the current head, and the disclosure is incomplete. Last push: 2026-11-25.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
VERIFY-2017 — el documento es coherente con el código que nombra, y las referencias existen
Un fichero,
docs/fspx.md, +32 líneas, trece días abierto, sin conflicto. No hay tests que correr; lo comprobable es que el documento no invente el material que cita, y eso sí se puede comprobar:Y las afirmaciones de formato coinciden con el código que las implementa:
fspx_unpack.pyempieza con el mismo contrato — «DXBC container (SFI0 ISG1 OSG1 PSV0 RTS0 HASH ACCC, no DXIL) · ACCC part = FSPX payload · u32 'FSPX', u32 version, u32 entry count, u32 total size» — que el doc, yparse_fspxse declara seguidor del lector de la propia DLL (RVA 0x1a20).Lo que esto vale y lo que no: un documento que nombra un fichero que no existe es el fallo barato, y no está; que los 29 programas digan lo que el doc dice, no lo he medido — eso requiere el paquete 1.0.2.1 y su DLL, que no tengo (el doc da el SHA-256 y avisa: «Read from Ghidra 12.2 output (through REA) for the named function»).
Y lo que sí puedo señalar como buena práctica del documento, en una línea: distingue "measured" de "inferred" en el propio texto, que es la distinción que he tenido que hacer explícita en cada comentario de esta noche.
Mi único reparo: el fichero es 32 líneas y el repositorio tiene ya
docs/design.mdydocs/d3d12_command_objects.mdcomo casas de este material — si FSPX es un apéndice de la traducción de shaders, quizá quepa una sección endesign.mden vez de un documento nuevo. Es una preferencia de quien mantiene la documentación, no un defecto.