GPU: retry a failing compositor once per second per format #3675
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3675"
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 Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T05:27:54Z.
If compositor creation fails, PresentX shows the primary plane for that frame. A failing format now waits one second before attempting compositor creation again. Primary-plane presentation continues during the delay. The deadline starts when creation returns an error.
The regression injects a creation failure and reads the primary's red pixel from the swap chain. The next frame has the same primary readback and never calls the injected creator. Once the test makes the deadline expire, a real compositor retry succeeds and the expected premultiplied overlay pixel is read back.
On app-local WARP 1.0.22 and Agility 1.620.2, all four focused checks passed with the D3D12 debug switch off and on. Strict GPU Clippy and the asset policy passed.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T05:35:23Z.
Windows CI passed at
07d7048, including Clippy on both build configurations and the repository test job. The two local WARP runs verified primary-plane output on failure and during the cooldown, then correct compositing after retry.The one-second retry delay applies to the failing format. The next step is maintainer review.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T05:47:46Z.
Test-only commit
6966268extends the existing PresentX fixture on07d7048to alternate RGBA8 and BGRA8 while the RGBA compositor is cooling down.After the injected RGBA creation failure, BGRA still composes the 64×64 overlay and returns the expected raw BGRA pixel
[128, 0, 127, 255]. Returning to RGBA shows its 32×32 primary without another creation attempt. BGRA then reuses the working compositor. Expiring the RGBA deadline lets RGBA compose the overlay and clear its failure entry.The equivalent generated sequence on
63bcca43retried RGBA immediately. For a second negative control, I replaced the per-format deadline check with a global cooldown. That made the same sequence return the 32×32 BGRA primary during the RGBA cooldown, so the new check catches that regression too.The committed fixture passed on app-local WARP 1.0.22 with Agility 1.620.2 and the D3D12 debug switch off and on. Strict all-features GPU Clippy and the staged asset policy passed. Generated textures only.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the test into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T06:12:39Z.
I combined #3675 at
07d7048with #3682 at31b94f1in 714e9e7. Both changes touched the presentation fixture, so I resolved it into one test that submits nine planes through all three states.On WARP, the injected compositor failure and the next frame during cooldown both stayed at 32×32 and showed the red primary. After expiring the cooldown, the next frame was 64×64 and read back
[127, 0, 128, 255]from the eighth plane's blend. The larger ninth plane stayed out of the output dimensions. The cooldown entry cleared after recovery.The isolated test passed with app-local WARP 1.0.22 and Agility 1.620.2, with the D3D12 debug switch off and on. Strict GPU Clippy and the asset policy passed. A maintainer can use this resolution if both changes are accepted.
Please retain the Git authors on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this resolution into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T08:08:53Z.
I combined #3693 with the earlier #3675/#3682 integration in ce22778. The only added code is compositor bytecode reuse in
host.rs.On signed app-local WARP, nine test frames alternated RGBA8 and BGRA8 and checked every pixel. After six successful frames I injected a compositor creation error on the next format switch. The primary plane was red on the failed frame and during the cooldown. After expiry the blend returned. Across those nine frames, seven compositors were created and the two shader stages were compiled once each. The same checks passed with the D3D12 debug switch off and on. The plane-limit regression, swap-chain retry test, strict GPU Clippy, and the asset policy also passed.
A maintainer can use the branch if the three changes land together. Please retain the Git authors on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this resolution into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-30T00:05:46Z.
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
07d7048(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.#[test]functions in the diff.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.