You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debug layer: the title's reserved depth textures (R32G8X24_TYPELESS) cannot be created here, fall back to arena, and are then used uninitialized #940
D3D12 debug layer run on a title that reaches its menus, with XCL_D3D12_DEBUG=1. The depth path is the interesting part: the title's reserved depth textures cannot be created on this driver, XCL falls back to an arena texture, and the debug layer then reports the fallback being used in the wrong state.
Environment: RTX 4060 Ti 8 GB, driver 32.0.16.1656, Windows 11 Pro 26200. XCL a1672ef plus PR #273 merged locally (declared so the numbers are not read as plain main). Variables: XCL_D3D12_DEBUG=1, XCL_D3D12_DRED=1, XCL_ASYNC_PSO=1. The run presented 3000 frames at 30 fps with 32 768 draws and 0 skipped before this was collected.
Four reserved depth textures are refused, and become arena textures
id 738: ID3D12Device::CreateReservedResource: Textures with layout
D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE cannot be created when the
D3D12_RESOURCE_DESC::Format does not support tiled resources.
Format is R32G8X24_TYPELESS. D3D12_FORMAT_SUPPORT2_TILED is not set ...
id 723: ID3D12Device::CreateReservedResource: The multisample quality value is not supported ...
Count is 4 ... Format is R32G8X24_TYPELESS ...
Each is followed by the fallback:
D3D12.X: GPU-owned texture at 0x255b0950000 (2560x1440, format 19, 1 samples) not reserved (0x80070057): in an arena
Size
Format
Samples
1x1
19 (R32G8X24_TYPELESS)
4
128x128
19
1
2560x1440
19
1
3840x2160
19
1
So the scene's depth targets (2560x1440 and 3840x2160) are arena textures, not reserved ones.
What the debug layer reports about them afterwards
id
Message
1422
Placed/reserved/not-zeroed resource with RT or DS flags is used without a Discard/Clear/Copy first
538
ClearRenderTargetView: resource state is UNORDERED_ACCESS (0x8), expected RENDER_TARGET (0x4)
553
Command list executed before the queue fence advanced past its previous executions
824
Map called on a resource created with CreateReservedResource (twice)
1047
Cross-queue hazard on UpdateTileMappings (this is #262, reported as intentional, listed for completeness)
The 824 one says at least one reserved resource was created and is then mapped, which the API forbids.
Questions
Is the arena fallback meant to be transparent for a title that tiles into these VAs, or does it lose the mapping?
Should the fallback resource be cleared (or discarded) before the first RT/DS use? That is what 1422 points at, and it happens for both depth sizes.
Is the Map on a reserved resource (824) a separate path, or the same fallback reached from somewhere else?
Nothing game-specific here: sizes, formats, HRESULTs and the layer's own messages.
#951 (merged in 6828e07) asks the device for tiled support first, so the refused reserved depth textures go to an arena without the failed CreateReservedResource and its debug-layer errors 738 / 723. The rest of this issue (1422, 538, 824) is not changed by it, so it stays open.
Independent check of the merged depth-texture fallback on 47efa2e. Windows 11 build 26300, RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug build.
Tested.cargo test --offline --locked -p xcl --lib hle::d3d12x::vram -- --test-threads=1 passed 9/9. I also ran d32s8_targets_take_their_own_size_of_video_memory in isolation twice with the D3D12 debug layer enabled and full readback added in scratch. XCL reported no tiled support and used arena placement. All 4,096 depth values and all 4,096 stencil values matched after a clear and copy on the GPU. The device stayed healthy. InfoQueue recorded zero errors or corruption messages. Its only warning was 821 because the fixture deliberately clears to values different from the optimized clear value.
Not tested. Retail rendering or first use without a clear. The explicit clear and transitions in this fixture leave the remaining first-use and resource-state paths in this issue open.
AI-assisted. Codex (GPT-6, exact variant unavailable) extended and ran the synthetic test and drafted this report.
Activity
artor410 commentedon Nov 24, 2026
Working on this: arena fallback for refused reserved depth textures (initial state + first-use discard). PR soon.
D3D12.X: ask for tiled support before making a GPU-owned texture rese…
ivall commentedon Nov 24, 2026
#951 (merged in 6828e07) asks the device for tiled support first, so the refused reserved depth textures go to an arena without the failed CreateReservedResource and its debug-layer errors 738 / 723. The rest of this issue (1422, 538, 824) is not changed by it, so it stays open.
D3D12.X: return title address in Map before calling PC Map (xcl-dev#940)
thehollowedone commentedon Nov 24, 2026
Independent check of the merged depth-texture fallback on
47efa2e. Windows 11 build 26300, RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug build.Tested.
cargo test --offline --locked -p xcl --lib hle::d3d12x::vram -- --test-threads=1passed 9/9. I also rand32s8_targets_take_their_own_size_of_video_memoryin isolation twice with the D3D12 debug layer enabled and full readback added in scratch. XCL reported no tiled support and used arena placement. All 4,096 depth values and all 4,096 stencil values matched after a clear and copy on the GPU. The device stayed healthy. InfoQueue recorded zero errors or corruption messages. Its only warning was 821 because the fixture deliberately clears to values different from the optimized clear value.Not tested. Retail rendering or first use without a clear. The explicit clear and transitions in this fixture leave the remaining first-use and resource-state paths in this issue open.
AI-assisted. Codex (GPT-6, exact variant unavailable) extended and ran the synthetic test and drafted this report.
D3D12.X: discard newly backed placed and reserved targets (xcl-dev#940)
D3D12.X: discard newly backed placed and reserved targets (xcl-dev#940)
D3D12.X: discard newly backed placed and reserved targets (xcl-dev#940)