Identify the FidelityFX destroy provider and verify wrapper cleanup #34
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/34"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T11:26:03Z.
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 devandctest --preset dev --no-tests=error -R '^cpu_aot_destroy_contract$' -V.