Repository navigation
Conversation
The list of the pipelines a title used was kept out of tests with cfg!(test), which only the crate's own unit tests have: the integration tests in tests/ link the crate without it, so they read the user's used-pipelines.txt and add their pipelines to it. After full test runs with XCL_SAMPLE_RPF on an RTX 4060, the user's list held 10 keys (gpu_pso_e2e, run alone into an empty cache, writes 9 keys, 4 of them among those 10), and every later run of my retail title built its pipelines of those shaders ahead: 228 translated pipelines at its first menu instead of 6. The list is now read and written only when a title runs (state::boot set). The new integration test fails without the change: the pipeline of a key in the list was built ahead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Upstream PR xcl-dev#1113 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
used-pipelines.txt(xcl-dev#690) is kept out of tests withcfg!(test), but only the crate's own unit tests have that cfg. The integration tests incrates/xcl/tests/link the crate without it, so they read the user's list (beside the DXIL cache) and add their own pipelines to it.What that did here: after full test runs with
XCL_SAMPLE_RPFset, the user's list held 10 keys.gpu_pso_e2e, run on its own into an empty cache, writes 9 keys, 4 of them among those 10; none of the 27 title runs since then changed the file. Every later run of my retail title then built its pipelines of those shaders ahead: 228 translated pipelines at its first menu instead of 6 (report.jsontranslated_pipelines). A PR needs both a suite run andsmoke.ps1runs on the same machine, so a tester's smoke runs can start from a list the tests wrote.The list is now read and written only when a title runs (
state::boot()is set; the host sets it at start, before any pipeline).What is in it
crates/xcl/src/hle/d3d12x/pso_async.rs:used::get()returns the empty, file-less list unless a title runs (cfg!(test) || state::boot().is_none()).crates/xcl/tests/used_pipelines.rs(new): withXCL_DXIL_CACHEset to a temporary folder holding a list, a test binary neither builds the pipeline of a listed key ahead nor adds a used pipeline to the list. It fails without the change (a test binary built a pipeline ahead from the user's list). No GPU needed.Tested
cargo test --workspace -- --test-threads=4ate03852f(onmain47efa2e): 742 passed, 0 failed, 41 ignored;main47efa2e: 741 / 0 / 41. Both passed on the first run. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware. On earlier bases, some runs of this change and ofmain(d208e14,beaa245) alike had 3 failures:placed_title_textures_share_vram_and_preserve_pixelsand the two tests on its poisoned lock, which is Tests: placed_title_textures_share_vram_and_preserve_pixels fails now and then at its cubemap reuse check (main 9ce2070) xcl-dev/xcl#718 (fixed by Tests: check cubemap tile reuse independently of idle page reclamation xcl-dev/xcl#447).cargo test -p xcl --test used_pipelines: passes ate03852f, fails onmain47efa2ewith only the test added. Neither of today's runs, nor either full suite, changed the user's list.scripts/smoke.ps1 -Seconds 60, unattended: the blocks below (main1 627 frames, this change 1 621).main's first run on47efa2e, the first title run in hours, opened its UMA 5.5 s later than usual and showed 1 430 frames; its rerun with the same binary is the block below. A title run still reads and writes the list (both runs built 228 pipelines at the menu from it), so these runs show that title runs are unchanged, not the effect on tests.uma.rs, a WARN in the log). Here that gave ~700–1 130 frames instead of ~1 610, onmainand on this branch alike ([upstream #1856] Shaders: validate and pair per-lane sweep results #284). Both blocks below had the learned window.Regression run
Not tested
e2e.rsruns the test title as a real title run (boot set), so it can still write the list; withXCL_DXIL_CACHEpointed at an empty folder it wrote no key here.AI use
Mirror of xcl-dev#1113 (auto-synced, do not edit).