GPU: skip parallel setup for zero or one texture refresh #3669
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3669"
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:01:10Z.
An empty or single-item batch now finishes on the caller before checking CPU affinity. A texture refresh with one dirty texture writes its result directly into the output slot and avoids allocating and locking a per-worker result. Batches with multiple dirty textures still run through the parallel path.
In an optimized Windows CPU fixture with generated texture state, 11 alternating pairs gave medians of 1.28 to 0.12 µs for eight clean textures and 1.88 to 0.53 µs for eight textures with one dirty. Two dirty textures stayed within the observed run-to-run variation. The fixture times scheduling and result collection around synthetic refreshes.
The repository tests for single-texture re-uploads and two independent textures in one submission passed on 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.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T05:03:36Z.
Windows CI passed at
7da3562, including Clippy on both build configurations and the repository test job. The two WARP texture cases and the host scheduling measurements in the description apply to this head.The WARP cases cover a single changed texture and two independent textures submitted together. 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 futurepro62 on 2026-11-29T23:56:19Z.
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
7da3562(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.