amd_fidelityfx_loader_xbox: add AMD FidelityFX console loader shim crate #356

Open
github-bot wants to merge 2 commits from github-bot/gh-356 into main AGit
Owner

@⁠FilimonEnc on GitHub · 2026-11-24 05:43 UTC · original
FilimonEnc:feat/compat-amd-fidelityfx-loader-xbox → main · +130 −0 · 8 files · 2 commits · open

Adds the crates/compat/amd_fidelityfx_loader_xbox crate:

  • Exports standard AMD FidelityFX console loader entry points: fxCreateContext, fxDestroyContext, fxDispatch, and fxQuery.
  • Implements memory management for context handles and return codes (FFX_OK, FFX_ERROR_INVALID_POINTER).
  • Validated with pr_gate.py and unit tests for lifecycle, null-pointers, and PE exports.
**@⁠FilimonEnc** on GitHub · 2026-11-24 05:43 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/356) `FilimonEnc:feat/compat-amd-fidelityfx-loader-xbox` → `main` · +130 −0 · 8 files · 2 commits · open Adds the crates/compat/amd_fidelityfx_loader_xbox crate: - Exports standard AMD FidelityFX console loader entry points: fxCreateContext, fxDestroyContext, fxDispatch, and fxQuery. - Implements memory management for context handles and return codes (FFX_OK, FFX_ERROR_INVALID_POINTER). - Validated with pr_gate.py and unit tests for lifecycle, null-pointers, and PE exports.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:20:02 +00:00
Author
Owner

@⁠omonkeyz on GitHub · 2026-11-25 13:51 UTC · original

Thanks. ffxDispatch and ffxQuery return FFX_OK without running or answering anything, and ffxCreateContext returns a placeholder context, while exports.txt marks them implemented. The project does not take accept-and-drop shims. Could you implement them (for example by forwarding to the PC FidelityFX API or a real upscale path), or return an error code and mark the rows with their true status?

**@⁠omonkeyz** on GitHub · 2026-11-25 13:51 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/356#issuecomment-7164397144) Thanks. ffxDispatch and ffxQuery return FFX_OK without running or answering anything, and ffxCreateContext returns a placeholder context, while exports.txt marks them implemented. The project does not take accept-and-drop shims. Could you implement them (for example by forwarding to the PC FidelityFX API or a real upscale path), or return an error code and mark the rows with their true status?
Author
Owner

@⁠FilimonEnc on GitHub · 2026-11-25 15:41 UTC · original

Updated to fail honestly without a PC FidelityFX backend:

ffxCreateContext now sets *context = null and returns FFX_ERROR_BACKEND_API_ERROR (-2) instead of allocating a placeholder context.
ffxDestroyContext, ffxDispatch, and ffxQuery return FFX_ERROR_INVALID_POINTER on null pointers and FFX_ERROR_BACKEND_API_ERROR otherwise instead of returning FFX_OK.
Marked all 4 rows as stub in exports.txt and updated unit tests accordingly (cargo test -p amd_fidelityfx_loader_xbox and pr_gate.py pass).

Provenance: ffxCreateContext, ffxDestroyContext, ffxDispatch, and ffxQuery are imported directly from amd_fidelityfx_loader_xbox.dll in game_scarlett_master.exe's PE import table. Forwarding to a PC FidelityFX backend can be wired in a follow-up once tested against the title's passes.

**@⁠FilimonEnc** on GitHub · 2026-11-25 15:41 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/356#issuecomment-7167234336) Updated to fail honestly without a PC FidelityFX backend: ffxCreateContext now sets *context = null and returns FFX_ERROR_BACKEND_API_ERROR (-2) instead of allocating a placeholder context. ffxDestroyContext, ffxDispatch, and ffxQuery return FFX_ERROR_INVALID_POINTER on null pointers and FFX_ERROR_BACKEND_API_ERROR otherwise instead of returning FFX_OK. Marked all 4 rows as stub in exports.txt and updated unit tests accordingly (cargo test -p amd_fidelityfx_loader_xbox and pr_gate.py pass). Provenance: ffxCreateContext, ffxDestroyContext, ffxDispatch, and ffxQuery are imported directly from amd_fidelityfx_loader_xbox.dll in game_scarlett_master.exe's PE import table. Forwarding to a PC FidelityFX backend can be wired in a follow-up once tested against the title's passes.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/356/head:github-bot/gh-356'
git switch 'github-bot/gh-356'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-356'
git switch 'github-bot/gh-356'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-356'
git switch 'github-bot/gh-356'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-356'
git switch 'main'
git merge --squash 'github-bot/gh-356'
git switch 'main'
git merge --ff-only 'github-bot/gh-356'
git switch 'main'
git merge 'github-bot/gh-356'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.