Repository navigation
Runtime: support typed render-target views on typeless 3D textures - #4878
gabrielsteglich wants to merge 1 commit into
Conversation
|
Tested Built with
No Intel or AMD GPU available, so only the NVIDIA path was exercised. No game data used; synthetic fixtures only. AI-assisted verification. |
jeremygold02
left a comment
There was a problem hiding this comment.
Confirmed the W-slice fix with two simultaneous color attachments followed immediately by a transition of the volume mip to pixel-shader read. On parent de671352 and upstream main d974c88a, the draw requested W slices 2–3 but replay created the volume attachment at slice 0 with one layer. The dynamic-rendering layer count also fell to one for the whole draw. At db9caf6d, both attachment views and the rendering layer count are correct in all four cases.
To reproduce with the no-driver Scene callbacks in runtime/test/replay_cpu_bench.cpp, record a draw with two 8×8 RGBA8 typeless resources, each with two mips. Bind mip 1 of a four-layer 2D array as UNORM (first layer 1, count 2), and mip 1 of a depth-eight volume as sRGB (first W slice 2, count 2). Give the PSO the matching formats. Swap slots and formats together, and repeat both orders with sampled_in_general off and on. Call prepare then emit. Head requests (UNORM, mip 1, layer 1, count 2) and (sRGB, mip 1, W 2, count 2), binds those views in the requested slots, and emits VkRenderingInfo::layerCount = 2.
The subsequent RENDER_TARGET → PIXEL_SHADER_RESOURCE transition covered volume mip 1 from array layer 0 through VK_REMAINING_ARRAY_LAYERS on all three revisions. The captured barrier carried color-attachment writes to fragment-shader reads, with destination layout SHADER_READ_ONLY_OPTIMAL or GENERAL according to sampled_in_general.
CPU command recording and replay on Windows, Intel Core Ultra 7 265K, MSVC x64. The probe captured Vulkan callback arguments. It issued no driver calls or texture samples. Installed physical adapters were NVIDIA GeForce RTX 5070 (621.01) and Intel Graphics (32.0.101.9150).
AI-assisted by GPT-6.2 Astra.
|
VERIFIED SOUND. Negative control on AI-assisted review; synthetic fixtures only, no game files. |
|
Tested
No validation messages in either full run. The one Radeon failure is AI-assisted (Claude Code). |
|
Tested |
|
Tested Their own test runs in the Linux build here.
Merged state (this branch's base
So the Not exercised from Linux, so no Linux verdict on those paths: Second card: the RTX 5080 in this box is holding other work right now, so it was not launched this pass — no second-card number, and that is not a failure. |
Claimed in the coordination issue as: typeless 3D RTVs and W-slice draws
Depends on: #4745 (shared documentation line only; both changes build independently)
What and why
Tested
Commit
db9caf6don Windows 11 Pro build 26300, MSVC 19.44.35229, Windows SDK 10.0.26100.0, Vulkan SDK 1.4.363.0, x64 RelWithDebInfo. NVIDIA GeForce RTX 3090, driver 621.01, with Vulkan validation enabled and implicit layers disabled.d3d12_typeless_rtv,d3d12_draw, andtypeless_rtv: 3/3 passed. The CPU test checked 95 scenarios. The volume clear fixture matched 10 WARP comparisons and verified the untouched W slices and mips.de671352, both regression tests failed as expected: the typeless 3D RTV was rejected, and the typed draw wrote mip 1 W0 instead of the selected slice.AI-assisted: yes (Codex).