Skip to content

[upstream #1142] D3D12.X: declare tiled texture pools texture-only - #20

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1142
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1142

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

The tiled texture pool allocates heaps for sampled, render-target and depth-stencil textures. It currently asks the host for buffer support as well. On vkd3d-proton the all-resource heap uses a global buffer and requests a buffer device address. Mark the pool as D3D12_HEAP_FLAG_DENY_BUFFERS so the host can allocate for both texture classes.

What is in it

  • Restrict vram.rs page heaps to the two texture categories and test the actual driver heap flags.
  • Document the resource categories of the tiled pools in the README.

Tested

  • RTX 5060 Laptop GPU (8 GB, NVIDIA 615.78.08), Intel Core 7 240H, Bazzite 44 Testing F44.20261011, kernel 7.2.9-ogc2.1.fc44.x86_64. Windows MSVC release builds with Rust 1.98.1 ran on Proton Experimental 11.0-20261112, vkd3d-proton v3.1 4522cc1 with [upstream #1899] D3D12.X: forget released command queues from vram::Pages::waited #257 and dxil-spirv 1dc543f.
  • tiled_texture_pool_allows_both_texture_classes_and_denies_buffers failed on main with driver-reported flags 0 and passed with flags 4 on head. placed_title_textures_share_vram_and_preserve_pixels and d32s8_targets_take_their_own_size_of_video_memory each passed under Proton.
  • Cross-built the workspace binaries with cargo xwin test --locked --release --target x86_64-pc-windows-msvc --workspace --no-run, then ran all 18 test binaries with --test-threads=4 --nocapture. Main reported 736 passed and head 737. Both returned the same 5 failures (two audio voice tests, window cloaking, PLS missing-path code and native copy predication) and 41 ignored. Two wave64 and two debug-layer checks reported SKIPPED and are included in the passing count. Optional retail fixtures were unset.
  • Ran the same offline title for 25 s with PowerShell and a launcher wrapper for Proton and host log paths.

Regression run

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 5060 Laptop GPU
title: package
seconds: 25
exit: 0x0
frames shown: 418 (PresentX 418)
presents per 2 s (last 3): 6 60 60
device removals: 0
crashes: 0
peak commit: 0 MB
xcl-smoke v1
commit: 04938bba2179c8cbfad2a09b920c1632d90ea116
gpu: NVIDIA GeForce RTX 5060 Laptop GPU
title: package
seconds: 25
exit: 0x0
frames shown: 418 (PresentX 418)
presents per 2 s (last 3): 54 29 8
device removals: 0
crashes: 0
peak commit: 0 MB

Not tested

Native Windows and AMD hardware were unavailable locally. The retail smoke run covered early startup.

AI use

OpenAI Codex with GPT-6.2-Sol high investigated the heap usage, wrote the change and regression, ran the tests and drafted this report.


Mirror of xcl-dev#1142 (auto-synced, do not edit).

Tiled texture pools map sampled and attachment textures. Disallow buffers so the host can allocate the pool without a buffer compatibility requirement.

Assisted-by: OpenAI Codex (GPT-6.2-Sol high)
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#1142 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/1142 branch November 25, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants