Verify FidelityFX create-to-destroy ownership on Windows #36
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/36"
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-21T12:00:00Z.
Connect the static translation of the local FidelityFX loader create export to the existing destroy translation. The returned wrapper is handed to destroy unchanged. The caller binds a controlled provider and selects either the default CRT allocator or an allocator with user data.
Compare the native source-built create reference and translated create on Windows. Each runs 14 lifecycle cases. The test checks the exact provider status, inner and wrapper pointers, allocation sizes, callback arguments, release order and absence of outstanding allocations. On a provider create error the caller sees a null handle and no wrapper allocation. The Windows adapter also rolls back successful provider creation if wrapper allocation fails. This is an explicit host behavior.
The local package experiment compiled both loader exports and passed the same cases. Public CI builds its own fixture. Live graphics-provider initialization is still open.
Reproduce with
cmake --build --preset devandctest --preset dev --no-tests=error -R '^cpu_aot_context_lifecycle$' -V. Package-local reproduction is in docs/experiments.md.