Verify FidelityFX create-to-destroy ownership on Windows #36

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

@⁠R0Y00 on GitHub · 2026-11-21 12:00 UTC · original
R0Y00:codex/ffx-context-lifecycle → main · +379 −9 · 9 files · 1 commits · merged 2026-11-21 12:01 UTC

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 dev and ctest --preset dev --no-tests=error -R '^cpu_aot_context_lifecycle$' -V. Package-local reproduction is in docs/experiments.md.

**@⁠R0Y00** on GitHub · 2026-11-21 12:00 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/36) `R0Y00:codex/ffx-context-lifecycle` → `main` · +379 −9 · 9 files · 1 commits · merged 2026-11-21 12:01 UTC 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 dev` and `ctest --preset dev --no-tests=error -R '^cpu_aot_context_lifecycle$' -V`. Package-local reproduction is in docs/experiments.md.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:23:29 +00:00
github manually merged commit 7542bc3bb3 into gh-pr/36/base 2026-11-26 21:23:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.