Identify the FidelityFX destroy provider and verify wrapper cleanup #34

Manually merged
github merged 1 commit from gh-pr/34/head into gh-pr/34/base 2026-11-26 21:23:22 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-21 11:26 UTC · original
R0Y00:codex/ffx-provider-contract → main · +249 −9 · 8 files · 1 commits · merged 2026-11-21 11:27 UTC

Fixes #33.

On the upscaler route, the loader's create path initializes the provider table by resolving exports from the selected module. Slot 1 resolves to ffxDestroyContext in the packaged upscaler. The provider reads the address of the inner context and the optional allocator. The loader preserves the unsigned 32-bit status while releasing the outer wrapper. The experiment notes give the resolver, table and independently identified export RVAs, the provider's incoming register uses and AMD's public declaration.

The new explicit destroy profile translates both cleanup branches. Its binding checks run before dispatch. The regression uses a source-built provider resolved by name and compares the native caller with its translation on Windows. It checks two null exits, provider and allocator argument identity, cleanup ordering, preserved error codes and unresolved bindings.

Local comparison also ran the same regression against the static translation of all four owned intervals of the packaged loader. The package upscaler was inspected as a file. Its live graphics teardown remains open. No package inputs or generated DLLs are included.

Reproduce with cmake --build --preset dev and ctest --preset dev --no-tests=error -R '^cpu_aot_destroy_contract$' -V.

**@⁠R0Y00** on GitHub · 2026-11-21 11:26 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/34) `R0Y00:codex/ffx-provider-contract` → `main` · +249 −9 · 8 files · 1 commits · merged 2026-11-21 11:27 UTC Fixes #33. On the upscaler route, the loader's create path initializes the provider table by resolving exports from the selected module. Slot 1 resolves to ffxDestroyContext in the packaged upscaler. The provider reads the address of the inner context and the optional allocator. The loader preserves the unsigned 32-bit status while releasing the outer wrapper. The experiment notes give the resolver, table and independently identified export RVAs, the provider's incoming register uses and AMD's public declaration. The new explicit destroy profile translates both cleanup branches. Its binding checks run before dispatch. The regression uses a source-built provider resolved by name and compares the native caller with its translation on Windows. It checks two null exits, provider and allocator argument identity, cleanup ordering, preserved error codes and unresolved bindings. Local comparison also ran the same regression against the static translation of all four owned intervals of the packaged loader. The package upscaler was inspected as a file. Its live graphics teardown remains open. No package inputs or generated DLLs are included. Reproduce with `cmake --build --preset dev` and `ctest --preset dev --no-tests=error -R '^cpu_aot_destroy_contract$' -V`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:23:20 +00:00
github manually merged commit 3044173e52 into gh-pr/34/base 2026-11-26 21:23:22 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.