Repository navigation
Conversation
With XCL_HEAP_WINDOWS=1 a pipeline built by the backend's hook reads memory window k through ResourceDescriptorHeap[MEM_HEAP_BASE + k], as the console heap lays it out (window views first, the title's views after them). runner::draw_on / draw_on_multi bound a heap of their own with the textures at 2*i and no window views, so the retail VS/PS of gpu_pso_e2e read an empty slot, drew nothing and left the clear colour: three tests failed only in the heap form. The compute runner already fills the window slots; the graphics one did not. bind_views now puts a raw UAV of `mem` in every window slot and the textures from VIEW_HEAP_BASE (MEM_HEAP_BASE + MAX_WINDOWS) on, and every draw goes through it; the three textured tests use that index. RTX 2070 SUPER (driver 621.35), DXC 1.9.2602.17, cargo test --workspace --no-fail-fast -- --test-threads=4: - XCL_HEAP_WINDOWS unset: 858 passed, 0 failed, 42 ignored - XCL_HEAP_WINDOWS=1: 858 passed, 0 failed, 42 ignored (before: 855 passed, 3 failed: retail_vs_ps_through_the_pso_hook_*, retail_pipelines_built_in_the_background_*, retail_textured_ps_*) Assisted-by: Claude Code (Claude Opus 5.5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Retried
marked this pull request as ready for review
November 24, 2026 20:09
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
Author
|
I am not going to follow this PR up any further. It is finished as described, and maintainers can edit the branch, take it over or close it. If #1695 or #1669 lands first, the draw harness has to follow the new heap layout. That means |
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
This was referenced Nov 25, 2026
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.
With
XCL_HEAP_WINDOWS=1, three retail tests ingpu_pso_e2efail on any GPU:retail_vs_ps_through_the_pso_hook_render_and_read_back,retail_pipelines_built_in_the_background_behind_a_stand_inandretail_textured_ps_decoded_descriptors_and_a_descriptor_change_between_draws. Each image comes back as the clear colour. The cause is the test harness, not the heap form. A pipeline built by the backend's hook reads memory window k throughResourceDescriptorHeap[MEM_HEAP_BASE + k]. The console heap keeps those slots for the window views, and the title's views come after them.runner::draw_on/draw_on_multiinstead bound a heap of their own with no window views and the textures at 2·i, so the VS read an empty slot and drew nothing. The compute runner already fills the window slots (dispatch_with); the graphics path did not. The tests needXCL_SAMPLE_RPF, which is probably why the #680 test runs did not show this.Part of #680 (heap windows on by default needs the whole suite green in both forms).
What is in it
Tests: the draw harness puts the memory windows in its heap:crates/xcl/src/gpu/recomp/runner.rs:bind_viewsputs a raw UAV ofmemin every window slot (MEM_HEAP_BASE..) and the textures from the newVIEW_HEAP_BASE(MEM_HEAP_BASE + MAX_WINDOWS, where the console heap's views start). Every draw goes through it.VIEW_HEAP_BASEas their texture index:crates/xcl/tests/gpu_pso_e2e.rs,crates/xcl/src/gpu/recomp/tests.rs,crates/xcl/src/gpu/dxil/graphics_tests.rs.Tested
cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4(XCL_SAMPLE_RPFset) on0e89e2c(this PR on6c89285):XCL_HEAP_WINDOWSunset: 863 passed, 0 failed, 42 ignoredXCL_HEAP_WINDOWS=1: 863 passed, 0 failed, 42 ignored. The first run of this form had 862 passed and 1 failed:test_title_draws_with_a_root_signature_under_the_debug_layer, where the test title hung after its triangle check. That test then passed alone 5 times out of 5, on6c89285and on this PR, about 2.7 s each. The draw harness is not on its path, and no runtime code calls it.c160d86: with this PR, 858 passed, 0 failed, 42 ignored in both forms; without it, withXCL_HEAP_WINDOWS=1, 855 passed and 3 failed (the three tests above).gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64); withXCL_HEAP_WINDOWSunset alsoheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)Regression run
The diff changes only test code (no runtime code calls the draw harness), but
runner.rslives incrates/xcl/src. Same title, same 60 s,XCL_TRANSLATED_CACHE=0, an emptyXCL_DXIL_CACHEfor each run;mainran first. This PR: 99.0 % of main's frames, 99.96 % of its peak commit, no device removal or crash.Before the rebase onto
6c89285, one head run (01ed927) reached only 553 frames: after loading it held 28 presents per 2 s where main had 60. Three reruns in a row (head 1094, main 1057, head 1062 frames) all held 60.Not tested
MEM_HEAP_BASE + MAX_WINDOWS, and the console heap's views then start one slot later. Whichever of them lands after this one needsVIEW_HEAP_BASE = MEM_HEAP_NULL + 1and the null view inbind_views.AI use
🤖 Generated with Claude Code