Repository navigation
Runtime: support typed render-target views on typeless 3D textures - #4878
gabrielsteglich wants to merge 2 commits 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. |
|
Verified merge with main 3faac55 (clean): compileall passes and the docs guards (test_docs_table_ids, test_docs_list_items) pass with the d3d12_vulkan.md update, which correctly moves typeless volume RTVs out of the unsupported list. No Python tests touch this path; the C++ shim/replay change and hardware comparisons were not run here (CPU-only, no cmake build). Not superseded: main extends the typeless-RTV work (D3D-275) only to 2D views. CI was pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Tested db9caf6 on NVIDIA GeForce RTX 4080 (driver 617.42), Windows 11, clang-cl 23.1.5 + xwin cross-build: pass. d3d12_typeless_rtv_test, exit 0:
d3d12_draw_test was not run here. AI-assisted. |
|
Independent Windows check of aa89b9e4. RTX 3080 Ti, NVIDIA 621.35, MSVC 19.44, Vulkan SDK 1.4.363.0. The stock AI-assisted. |
devnull34
left a comment
There was a problem hiding this comment.
Hardware verification at head �a89b9e43110f38f71bb2be86759b047a5a9c3c9 on Windows 11 with MSVC 19.44 on AMD Radeon RX 7900 GRE (RDNA3, gfx1100):
- Build: Built targets ypeless_rtv_test and d3d12_typeless_rtv_test cleanly with 0 errors/warnings.
- Hardware test execution (d3d12_typeless_rtv_test.exe):
-
ypeless volume RTV: 10 WARP comparisons, all untouched W slices and mips matched -
ypeless subresource regressions: 1584 mixed-format/automatic-mip/predicate cases; conditional rendering enabled -
ypeless RTV: 1740 WARP readbacks matched, descriptor snapshots and format-cache order checked; 34 unsupported/invalid views rejected - Exit code 0.
-
- Unit test execution ( ypeless_rtv_test.exe):
-
ypeless_rtv_test: 103 format, snapshot, whole/rectangle and rejection scenarios passed
-
- CTest:
- d3d12_typeless_rtv and ypeless_rtv: 2/2 passed (6.57 s total).
- Formatting: git diff --check origin/main..HEAD clean, no trailing whitespace.
No retail game files or keys used.
AI-assisted verification.
|
Tested aa89b9e merged with main 14b2e44 on Windows 11, MSVC 14.51, Ninja RelWithDebInfo, default GPU selection (LEONIDA_VK_DEVICE not set; the tests do not print the device name, so I am not naming it): pass |
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).