Repository navigation
Conversation
|
Tested 69e404d on NVIDIA GeForce RTX 4080 (driver 617.42), Windows 11, cross-built with clang-cl 23.1.5 + xwin: d3d12_vulkan_device_test exits 0. The test prints no check summary here, only [rt] trace lines, so exit 0 is the signal, and the "host resource heap tier" line the PR mentions was not in the output. This is a no-regression run on another host; it does not exercise the tier 1 (Pascal) path. AI-assisted. |
|
Tested 69e404d on Windows 11 with MSVC 14.51. The changed device test passes on two native Windows adapters.
Both logs contain cmake -S runtime -B E:/Leonida-review-5000-build -G "Visual Studio 18 2026" -A x64 -DLEONIDA_VULKAN_HEADERS_FETCH=ON
cmake --build E:/Leonida-review-5000-build --config RelWithDebInfo --target d3d12_vulkan_device_test --parallel 8
ctest --test-dir E:/Leonida-review-5000-build -C RelWithDebInfo -R '^d3d12_vulkan_device$' -VFor the negative control I kept the test at the PR head and built it with AI-assisted. |
|
@sperm — as requested, I ran Setup note: at head
Your open question is answered: the test prints Before (baseline): those 8 heap cases were mismatches and the test failed at After (this PR): all 8 are now excused with "the tier 1 host refuses a heap of mixed resources" and Both are later in the file than the section your excusal covers, and both assume a tier-1 host can create the Happy to re-run once you push a follow-up head. |
…rmat checks, so a tier 1 host runs them (D3D-504) placed_cast_scenario and placed_cast_refusals created FLAG_NONE heaps, which a resource heap tier 1 host (GTX 1060, ProjectLeonida#5000) refuses. The scenario places only render-target textures (ALLOW_ONLY_RT_DS_TEXTURES); the refusals place the buffer on an ALLOW_ONLY_BUFFERS heap and the textures on an RT/DS one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @ray3242, @shdann and @gertify. @ray3242: that settles it. All eight mixed heaps are the tier 1 refusal. The two later asserts were the D3D-90 castable-format checks: Could you re-run 5713bf8 (+ #4682) on the GTX 1060? It should now exit 0. @shdann: thanks for the negative control. The tier check failing with the parent's Tested 5713bf8: AI-assisted (Claude Code). |
|
Independent check of Environment: Windows 11, MSVC 19.44 (RelWithDebInfo, Ninja), NVIDIA GeForce RTX 5090 (driver 617.42), Vulkan SDK 1.4.363.0,
Playability-relevant: D3D12 titles check RESOURCE_HEAP_TIER_2 before using tiled/placed resources across heap types — reporting tier 1 makes the game take a slower path or bail. AI-assisted (Devin). |
|
Tested 5713bf8 on Windows 11 with MSVC 14.51. The new single-kind heaps pass the placed-resource tests on both native tier 2 adapters.
I built AI-assisted. |
|
You're right, the earlier run was a cross-build and I have no log showing whether it reached the host comparisons, so it may well have taken the no-host branch. Treat it as not covering this. Reran natively: 5713bf8 (Intel UHD Graphics 770, driver 32.0.101.7088, Windows 11, MSVC 19.44 build of The host comparisons ran with a native D3D12 device: 45 feature queries compared, 0 mismatches; 94 formats compared, 0 mismatches; no VUID or FATAL lines. This host is tier 2, so it shows the tier 2 path is unchanged and does not exercise the new tier 1 branch. That still needs a tier 1 host like the GTX 1060 in #4420. AI-assisted. |
|
Tested AI-assisted (Claude Code). Synthetic data only, no game files. |
|
Tested 5713bf8 on a real resource heap tier 1 host: NVIDIA GeForce GTX 1050 Ti (Pascal), driver 560.94, Windows 10 Enterprise LTSC 21H2 (19044), MSVC 14.44, Windows SDK 10.0.26100, Vulkan SDK 1.4.363, RelWithDebInfo + Ninja. Layer and host on the same adapter. Synthetic only, no game files. Trees: main 3faac55 + #4682 (needed to get past line 172 on this driver) as the control, and the same plus #5000.
The same with LEONIDA_VK_VALIDATION=1: no VUIDs. d3d12_r9g9b9e5_uav, d3d12_subresource_copy and d3d12_texture1d pass on both trees. Not covered here: the placed castable-format host comparison (your 7537/7840 change). Windows 10's runtime has no ID3D12Device10, and WARP doesn't either, so the test printed "compared with no host; refusals checked on the layer alone". A Windows 11 tier 1 machine (e.g. @ray3242's GTX 1060) is still needed for that part. AI-assisted (Claude Code). |
…staging fallback Ported from @gustavorafaelschmidt's ItsNotRexed#3077 commit 2612b15 (author credited below). With their go-ahead on ItsNotRexed#4682, keep one fix for both the empty-mask driver case and the allocation-failure case this PR already handled: - VulkanDeviceInfo::force_host_transfer_retry (tests only) forces the no-memory-type branch on any GPU, so d3d12_vulkan_device_test and d3d12_subresource_copy_test run their CPU copies through a third path. - create_image() is a lambda that leaves image_ null after a failed create (the handle is undefined on failure and ~Resource destroys any non-null one), and log_once reports when the fallback fires. - After dropping host-transfer usage, check_image_support is re-run before the image is made again; this PR's allocation/bind-failure retry is kept alongside it. - docs/d3d12_vulkan.md and docs/testing.md record the Pascal measurement and the tier-1 host note. The tier-1 heap/WARP comparison changes in ItsNotRexed#3077 are not part of this port: they belong to D3D-504 (ItsNotRexed#5000). Tests on GTX 1060 / 582.78: both executables built with MSVC 19.44; d3d12_subresource_copy_test OK with all three paths (109 compared steps, 0 mismatches each); d3d12_vulkan_device_test's three CPU-copy paths matched, with only the known pre-existing tier-1 heap_mismatches assert (D3D-504) still failing. No game data. AI-assisted (OpenCode). Original commit by Gustavo Rafael Schmidt <204491080+gustavorafaelschmidt@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@sperm @Codejustcode12 — the requested GTX 1060 re-run is done. Tested No |
|
Tested live on NVIDIA GeForce GTX 1070 8 GB (Pascal, D3D12 1. Answer to your open question for Pascal (
|
…ents (D3D-504) The layer reported D3D12_RESOURCE_HEAP_TIER_1 but accepts heaps that allow buffers and both kinds of texture together, a tier 2 feature. A tier 1 host (NVIDIA Pascal, ItsNotRexed#4420) refuses those heaps, so compare_heap_neighbours and compare_placed_reserved count them as mismatches there. - CheckFeatureSupport(OPTIONS) reports ResourceHeapTier 2. - d3d12_vulkan_device_test checks the reported tier, prints the host's tier, and excuses only the layer's acceptance against a tier 1 host's refusal of a mixed heap (per case for CreateHeap; E_UNEXPECTED from placed()'s heap). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rmat checks, so a tier 1 host runs them (D3D-504) placed_cast_scenario and placed_cast_refusals created FLAG_NONE heaps, which a resource heap tier 1 host (GTX 1060, ProjectLeonida#5000) refuses. The scenario places only render-target textures (ALLOW_ONLY_RT_DS_TEXTURES); the refusals place the buffer on an ALLOW_ONLY_BUFFERS heap and the textures on an RT/DS one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5713bf8 to
c6523c1
Compare
|
Rebased onto
@auswhalen999-debug thanks for the GTX 1070 run. It confirms the tier 1 host refusals are excused in all 8 mixed-heap cases. The AI-assisted (Claude Code). |
|
Checked head
New data, a coverage gap on this machine: |
|
@milas6669 thanks for pointing out that gap. I have a run that reaches the end:
The part not yet checked is a tier 2 host D3D12 comparison that runs to the end. That needs Windows with #7125 applied, and once the AI-assisted (Claude Code). |
|
Tested
No game files. AI-assisted (Claude Code). |
Claimed in the coordination issue as: D3D-504 (claim)
What and why
The layer reported
ResourceHeapTier = D3D12_RESOURCE_HEAP_TIER_1(runtime/shims/d3d12_vulkan_device.cpp,CheckFeatureSupport(D3D12_OPTIONS)), but it behaves as tier 2:CreateHeapaccepts a heap that allows buffers and both kinds of texture together.heap_desc_refusalrefuses only a heap that denies all three.Such heaps are a tier 2 feature, so a real tier 1 device refuses them. NVIDIA Pascal is tier 1. That is the likely cause of the GTX 1060 failure in #4420, where
compare_heap_neighbours(d3d12_vulkan_device_test.cpp,heap_mismatches <= 0) reports the host refusingCreateHeapdescriptions the layer accepts. Every one of those descriptions usesD3D12_HEAP_FLAG_NONE. The RX, RTX and UHD hosts the test was written against are tier 2, so they agree with the layer.compare_heap_neighboursthis is per case (notALLOW_ONLY_BUFFERS). Incompare_placed_reservedit is theE_UNEXPECTEDthatplaced()returns when the host can't create itsFLAG_NONEheap, which would hit Pascal next.Any other difference is still a mismatch.
Open question for the Pascal run: ray3242's list in #4420 names the 4 MiB, size-1000, upload, readback and custom write-combine heaps, but not "alignment 0", "alignment 64 KiB" or
HARDWARE_PROTECTED, which are mixed heaps too. If the host really accepts those, tier is not the whole story. The test now printshost resource heap tier Nand the reason for each excused case, so one run settles it. @ray3242, could you rund3d12_vulkan_device_testat this head on the GTX 1060, and onmainif a baseline helps?Tested
Built on Linux with clang-cl 23.1.5 + lld-link against the xwin MSVC CRT / SDK 10.0.26100 (
runtime/cmake/clang-cl-xwin.cmake). Tests run under Wine on an AMD Radeon RX 9070 XT (RADV, Mesa 26.2.6, Linux 7.3.4).d3d12_vulkan_device: passes, including the new tier check and the accepted-heap list. Under Wine the host is Wine's D3D12, so the test skips the host comparisons themselves. They still need a Windows host: the Pascal run above, plus any tier 2 card, which should show no change.ctest -R d3d12(67 tests): 7 fail under Wine both at this head and onmain98fa503, the same 7 by name (fence_timing,heap_properties,indirect_dispatch_count,present,private_data,residency,subresource_copy). They compare against Wine's vkd3d as the host. No new failures.ResourceHeapTier(git grep).AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (Not a translator change.)🤖 Generated with Claude Code