Repository navigation
Conversation
By the spec, one linear UpdateTileMappings region from subresource 0 covers every mip of a reserved texture. On RX 6800 (32.0.21045) it leaves upper 3D mips unmapped, and a NULL update over it leaves them mapped. Build one region per standard mip plus the packed tail from GetResourceTiling for both operations; 2D textures and unexpected tilings keep the linear region. The texture-placement GPU test gains a 128x128x128 five-mip volume and checks every 3D mip reads zero after retirement. It fails at mip 2 without the map change and after retirement without the unmap change. Assisted-by: T3 Code through Codex (gpt-6.1-sol) Assisted-by: Claude Code (Claude Opus 5.5)
Owner
Author
|
Upstream PR xcl-dev#1028 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.
On RX 6800, one linear tile-mapping region leaves upper 3D mips reading zero, and a NULL update over the same region leaves them mapped. By the spec one region from subresource 0 covers every mip; this maps and unmaps 3D textures with one region per standard mip plus the packed tail instead. Requested follow-up to xcl-dev#470; independent of it.
What is in it
vram.rs:tile_regionsbuilds the regions fromGetResourceTiling, shared by map and unmap. 2D textures and unexpected tilings keep the linear region.title_textures.rs: a 128×128×128 five-mip volume, and a check that every 3D mip reads zero after retirement.Tested
b3c53e98de18b2150b361303010f702ba3610f31:cargo test --workspace --no-fail-fast -- --test-threads=4: 741 passed, 0 failed, 41 ignored.test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state.placed_title_textures_share_vram_and_preserve_pixelswith only the map half reverted to one linear region fails with3D 128x128x128 5 mips: subresource 2 mismatch; with only the unmap half reverted it fails the after-retirement check; as committed it passes.Regression run
scripts/smoke.ps1 -Game 'G:\xcl\assets\GTA6.Xbox.v1.0.2.1' -Seconds 60, release,XCL_DATA_ROOT=%TEMP%\xcl-mips-game-data,XCL_COHERENT_MB=512,XCL_FRAME_DUMP=300, no scripted input. Three alternating clean pairs (main/head frames): 954/864, 968/957, 983/617, plus an earlier 1004/741. The spread is the title's, not this change's: an instrumented build of both commits counted 1,487UpdateTileMappingsmap calls in 60 s, only one of them on a 3D texture this PR splits, and the same total mapping time (98–109 ms in both); its three pairs were 853/914, 805/980, 978/982. The blocks below are the middle clean pair.Main (
47efa2e):This head (
b3c53e9):Not tested
XCL_SAMPLE_*inputs.AI use
gpt-6.1-sol): implementation, tests, first description.Mirror of xcl-dev#1028 (auto-synced, do not edit).