Repository navigation
Conversation
…#970) A console depth buffer that shaders write too has no ALLOW_UNORDERED_ACCESS on the PC (pc_resource_desc drops it) and its UAVs are null views, so the writes are lost. The title's barriers that use such a resource as a UAV are now counted and logged (the first 8, then every power of two): - transitions from or to UNORDERED_ACCESS and UAV barriers naming it, both for PC-format lists (resource_barrier_x) and console-recorded ones (console_list replay); - enhanced texture barriers (#146, D3D12_BARRIER_GROUP) with the UNORDERED_ACCESS layout or access. XCL still turns #146 into one global UAV barrier; only the description is read here. The null-view warning gives its total instead of stopping at 4. Measured on the retail title of xcl-dev#505 (RTX 5080, 300 s runs, A at 15 s): no legacy barrier touches these resources; enhanced barriers move D16 shadow maps (768x768x6, 1024x1024, 512x512) into or out of the UNORDERED_ACCESS layout once the world starts loading (62-64 s; 12 in a run with every one logged). No behaviour change: every barrier goes to the PC as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Upstream PR xcl-dev#1027 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.
Part of xcl-dev#970: diagnostics only, the first of the four steps planned there. Replaces xcl-dev#1021, closed when its fork was deleted (same commit).
A console depth buffer that shaders write too has no
ALLOW_UNORDERED_ACCESSon the PC (device_x::pc_resource_descdrops it) and its UAVs are null views (real::dev_create_uav_x), so what shaders write through them is lost. This counts and logs the title's barriers that use such a resource as a UAV, so the effect can be measured before anything changes. No behaviour change: every barrier still goes to the PC as before.On the retail title of xcl-dev#505 no legacy barrier touches these resources: its texture transitions come through #146 (enhanced barriers,
D3D12_BARRIER_GROUP), whose description XCL does not read (it emits one global UAV barrier – HANDOFF lists the #146 description as "not yet"). There, D16 shadow maps (768x768x6, 1024x1024, 512x512) go into or out of theUNORDERED_ACCESSlayout once the world starts loading (62–64 s; 12 barriers in a run with every one logged).What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:depth_without_uav(ALLOW_DEPTH_STENCIL without ALLOW_UNORDERED_ACCESS) andnote_depth_uav_barrier(counted; the first 8 and every power of two logged), called for transitions from / toUNORDERED_ACCESSand UAV barriers naming the resource inresource_barrier_x;note_depth_uav_barrier_groupsreads the texture barriers of [upstream #959] Tests: cover xcl shaders across files, folders, and RPF9 packs #146 (uav_barrier_x) and counts those with theUNORDERED_ACCESSlayout or access (barrier_uses_uav). Tests:a_depth_buffer_without_unordered_access_is_one_with_null_uavs,an_enhanced_barrier_into_or_out_of_unordered_access_is_a_uav_use.crates/xcl/src/hle/d3d12x/console_list.rs: the same for console-recorded lists (their replayed transitions and their [upstream #959] Tests: cover xcl shaders across files, folders, and RPF9 packs #146 calls).crates/xcl/src/hle/d3d12x/real.rs: the null-view warning gives its total instead of stopping at 4.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4withXCL_SAMPLE_RPF,_DLLS,_TTPF,_BVH4set, at65eb999(the same tree as the headba8d356, whose only change is the commit message): 718 passed, 0 failed, 41 ignored;SKIPPED(no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware. An earlier run of the same tree had the Tests: placed_title_textures_share_vram_and_preserve_pixels fails now and then at its cubemap reuse check (main 9ce2070) xcl-dev/xcl#718 flake (placed_title_textures_share_vram_and_preserve_pixels,cubemap extra_pages must be reused at same va, and the twoPoisonErrorfailures after it): 715 passed, 3 failed.scripts/smoke.ps1,XCL_PRESS_A_AT=15: the regression runs below (60 s, menus and the start of world loading), and a 300 s run of this branch for the numbers above (it ends in the title's "GPU Loc Sig" abort at ~92 s, asmaindoes).Regression run
main:
this PR:
Not tested
AI use
🤖 Generated with Claude Code
Mirror of xcl-dev#1027 (auto-synced, do not edit).