Recompile and verify the first D3D12 device calls in upscaler creation #38

Merged
R0Y00 merged 1 commit from upstream-pr/38 into main 2026-11-21 12:25:49 +00:00
R0Y00 commented 2026-11-21 12:24:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T12:24:04Z.


Change

Trace the packaged upscaler create export through provider selection to the first device-dependent block of the backend. The optional offline translation executes that block against a real Windows D3D12 device, verifies each heap description and output slot, and stops at the return from the fifth heap creation.

Verification

Tested commit 248b759. The local package build passed both tests with ctest --test-dir out/build/ffx-device -R '^ffx_device_init_' --no-tests=error -V. RTX 4060 Laptop and Microsoft WARP each returned S_OK five times. Both debug-layer logs reported zero warnings and errors.

The default build passed 64 tests in ctest --preset dev --no-tests=error; the two wave64 capability tests skipped. Public WARP coverage uses the source-owned desktop control. A separate source-owned MASM fixture compares native and translated heap arithmetic for six inputs. Both fixtures are original contributions under the repository license.

Evidence and follow-up

The package run supplies the device and fresh one-context scratch at entry to the translated block. The earlier create path was traced statically. Complete effect creation and dispatch remain open. The local image and generated translation stay outside Git.

Reproduction commands and call parameters. Refs #37 for backend slot allocation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6528728349 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/38). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T12:24:04Z. --- ## Change Trace the packaged upscaler create export through provider selection to the first device-dependent block of the backend. The optional offline translation executes that block against a real Windows D3D12 device, verifies each heap description and output slot, and stops at the return from the fifth heap creation. ## Verification Tested commit 248b759. The local package build passed both tests with `ctest --test-dir out/build/ffx-device -R '^ffx_device_init_' --no-tests=error -V`. RTX 4060 Laptop and Microsoft WARP each returned S_OK five times. Both debug-layer logs reported zero warnings and errors. The default build passed 64 tests in `ctest --preset dev --no-tests=error`; the two wave64 capability tests skipped. Public WARP coverage uses the source-owned desktop control. A separate source-owned MASM fixture compares native and translated heap arithmetic for six inputs. Both fixtures are original contributions under the repository license. ## Evidence and follow-up The package run supplies the device and fresh one-context scratch at entry to the translated block. The earlier create path was traced statically. Complete effect creation and dispatch remain open. The local image and generated translation stay outside Git. [Reproduction commands and call parameters](../blob/codex/upscaler-device-init/docs/experiments.md#first-device-calls-in-the-packaged-upscaler). Refs #37 for backend slot allocation.
upstream-sync closed this pull request 2026-11-24 06:41:05 +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!38
No description provided.