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

Merged
R0Y00 merged 1 commit from upstream-pr/36 into main 2026-11-21 12:01:30 +00:00
R0Y00 commented 2026-11-21 12:00:00 +00:00 (Migrated from github.com)

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

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6528495091 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/36). Originally posted by [R0Y00](https://github.com/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 dev` and `ctest --preset dev --no-tests=error -R '^cpu_aot_context_lifecycle$' -V`. Package-local reproduction is in docs/experiments.md.
upstream-sync closed this pull request 2026-11-24 06:41:04 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!36
No description provided.