Skip to content

Runtime: report resource heap tier 2, which CreateHeap already implements (D3D-504) - #5000

Open
sperm wants to merge 2 commits into
ItsNotRexed:mainfrom
sperm:d3d-504-heap-tier
Open

sperm wants to merge 2 commits into
ItsNotRexed:mainfrom
sperm:d3d-504-heap-tier

Conversation

@sperm

@sperm sperm commented Nov 23, 2026 •

Copy link
Copy Markdown

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:

  • CreateHeap accepts a heap that allows buffers and both kinds of texture together. heap_desc_refusal refuses only a heap that denies all three.
  • Placement checks only the heap's DENY flags.

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 refusing CreateHeap descriptions the layer accepts. Every one of those descriptions uses D3D12_HEAP_FLAG_NONE. The RX, RTX and UHD hosts the test was written against are tier 2, so they agree with the layer.

  • Layer: reports tier 2, which matches what it implements (and the console's RDNA2).
  • Test:
    • checks that the layer reports tier 2;
    • prints the host's tier;
    • on a tier 1 host only, excuses the layer accepting a mixed heap that the host refuses. In compare_heap_neighbours this is per case (not ALLOW_ONLY_BUFFERS). In compare_placed_reserved it is the E_UNEXPECTED that placed() returns when the host can't create its FLAG_NONE heap, 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 prints host resource heap tier N and the reason for each excused case, so one run settles it. @ray3242, could you run d3d12_vulkan_device_test at this head on the GTX 1060, and on main if 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 on main 98fa503, 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.
  • No other code reads ResourceHeapTier (git grep).

AI-assisted: yes (Claude Code)

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not a translator change.)

🤖 Generated with Claude Code

@gertify

gertify commented Nov 23, 2026

Copy link
Copy Markdown

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.

@shdann

shdann commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested 69e404d on Windows 11 with MSVC 14.51. The changed device test passes on two native Windows adapters.

Vulkan and host D3D12 adapter Windows driver Host resource heap tier CTest result
NVIDIA GeForce RTX 4090 32.0.16.2101 2 1/1 passed
AMD Radeon(TM) Graphics 32.0.21043.5001 2 1/1 passed

Both logs contain CreateHeap valid neighbours: host resource heap tier 2. I set both LEONIDA_VK_DEVICE and LEONIDA_HOST_ADAPTER to 4090 for the first run and Radeon for the second.

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$' -V

For the negative control I kept the test at the PR head and built it with runtime/shims/d3d12_vulkan_device.cpp from its parent 3faac557. The RTX 4090 run failed at line 7076 on heap_opts.ResourceHeapTier == D3D12_RESOURCE_HEAP_TIER_2. This check covers the reported tier. The Pascal refusal path still needs a tier 1 host. I ran only the changed CTest.

AI-assisted.

@ray3242

ray3242 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@sperm — as requested, I ran d3d12_vulkan_device_test on the GTX 1060 (Windows 11 Pro 26300, NVIDIA GeForce GTX 1060 6GB / driver 582.78, MSVC 19.44 + Ninja, RelWithDebInfo). Synthetic only, no game data. AI-assisted (OpenCode).

Setup note: at head 69e404d5 alone the run stops at line 172 (SUCCEEDED(create(cpu_heap, …))) because this branch doesn't include my #4682 HOST_TRANSFER fix — same on plain main. To reach the heap comparisons I locally merged #4682 into both trees:

Your open question is answered: the test prints CreateHeap valid neighbours: host resource heap tier 1 on this Pascal card. All the cases from my #4420 list are the same tier-1 mixed-heap refusal, including the three you asked about — the excused list covers alignment 0, alignment 64 KiB, alignment 4 MiB, size 1000, upload, readback, custom write-combine L0 and HARDWARE_PROTECTED, all with ours 0x00000000, host 0x80070057. So tier is not just about the original five.

Before (baseline): those 8 heap cases were mismatches and the test failed at line 7051: heap_mismatches <= 0.

After (this PR): all 8 are now excused with "the tier 1 host refuses a heap of mixed resources" and heap_mismatches no longer fires — the diagnosis is correct. But the test still exits 1 on two different asserts:

line 7537: SUCCEEDED(device10->CreateHeap(&heap_desc, IID_PPV_ARGS(&heap.p)))
line 7840: host_side(host10.p, same_adapter)

Both are later in the file than the section your excusal covers, and both assume a tier-1 host can create the FLAG_NONE heap. They need the same tier-1 treatment before this is a clean Pascal run. Everything before them — format support, copies (0 of 75 differ), depth24, subresource writes through both paths — passes.

Happy to re-run once you push a follow-up head.

sperm pushed a commit to sperm/Leonida that referenced this pull request Nov 23, 2026
…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, ItsNotRexed#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>
@sperm

sperm commented Nov 23, 2026

Copy link
Copy Markdown
Author

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: placed_cast_scenario and placed_cast_refusals created FLAG_NONE heaps on the host. 5713bf8 gives them single-kind heaps, which every tier accepts. The scenario places only render-target textures, so its heap is ALLOW_ONLY_RT_DS_TEXTURES. The refusals put the buffer on an ALLOW_ONLY_BUFFERS heap and the textures on an RT/DS heap, so each refusal is still the castable-list one, not a DENY-flag refusal. Line 7537 was the scenario's heap, and line 7840 (host_side) failed because it calls the scenario.

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 d3d12_vulkan_device.cpp is the result I wanted to see. @gertify: the tier line is printed only where the test has a host D3D12 device on the comparison path. Your cross-built run may have taken the no-host branch.

Tested 5713bf8: d3d12_vulkan_device passes under Wine on the RX 9070 XT (RADV, Mesa 26.2.6). Under Wine the castable checks run on the layer alone (no Microsoft host).

AI-assisted (Claude Code).

@Atomic258

Copy link
Copy Markdown
Contributor

Independent check of 69e404d5 — pass on NVIDIA hardware, including the host-comparison the claim rests on.

Environment: Windows 11, MSVC 19.44 (RelWithDebInfo, Ninja), NVIDIA GeForce RTX 5090 (driver 617.42), Vulkan SDK 1.4.363.0, LEONIDA_VK_DEVICE="rtx 5090", LEONIDA_VK_VALIDATION=1. Synthetic resources, no game files.

  • d3d12_vulkan_device_test.exe on the PR head → exit 0; the whole host-vs-layer suite matches: 195 FORMAT_INFO + 46 CheckFeatureSupport + 94 FORMAT_SUPPORT queries 0 mismatches, MSAA quality 12/12, resolves 60/60, WriteTo/ReadFromSubresource boxes/pitches/mips/volumes/BC1 matched both directions, placed castable formats and Xbox-ABI-proxy device paths all matched — and the line this PR adds reports "CreateHeap valid neighbours: host resource heap tier 2"
  • Negative control: same test binary against main's d3d12_vulkan_device.cpp → the D3D12_FEATURE_DATA_D3D12_OPTIONS check trips at heap_opts.ResourceHeapTier == D3D12_RESOURCE_HEAP_TIER_2 (parent reports tier 1, host tier 2 — the mismatch this PR removes)

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).

@shdann

shdann commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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.

Adapter Windows driver D3D-90 host comparison
NVIDIA GeForce RTX 4090 32.0.16.2101 Clear readbacks and refusal results match.
AMD Radeon(TM) Graphics 32.0.21043.5001 Clear readbacks and refusal results match.

I built d3d12_vulkan_device_test in RelWithDebInfo. I ran ctest --test-dir E:/Leonida-review-5000-build -C RelWithDebInfo -R '^d3d12_vulkan_device$' -V with both LEONIDA_HOST_ADAPTER and LEONIDA_VK_DEVICE set to 4090, then to Radeon. Both runs passed 1/1. Each log names the same adapter for the layer and host comparison. These runs cover tier 2 only.

AI-assisted.

@gertify

gertify commented Nov 23, 2026 •

Copy link
Copy Markdown

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 d3d12_vulkan_device_test, LEONIDA_VK_VALIDATION=1): exit 0. The tier line prints:

CreateHeap valid neighbours: host resource heap tier 2

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.

@Exopus-0x65f7ad0

Copy link
Copy Markdown
Contributor

Tested 5713bf8a on Windows 11 (26300), RTX 5060 Ti / 621.14, MSVC 14.51 (VS 2026), Vulkan SDK 1.4.363.0, RelWithDebInfo, clean build with -DLEONIDA_LLVM_MC. Full LEONIDA_VK_VALIDATION=1 ctest -j4: 167/167 pass, 0 VUIDs, including d3d12_vulkan_device. The layer now reports tier 2. The host here is a Blackwell adapter, which is tier 2, so no tier 1 excuse is involved, and the single-kind heaps in the placed-cast scenarios work under validation.

AI-assisted (Claude Code). Synthetic data only, no game files.

@Codejustcode12

Copy link
Copy Markdown

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.

d3d12_vulkan_device_test main + #4682 main + #4682 + #5000
exit 1 0
failing checks line 7051 heap_mismatches <= 0 only none
heap neighbours 7 mixed-heap mismatches (host 0x80070057, ours S_OK) prints host resource heap tier 1; each mixed heap reported as "the tier 1 host refuses a heap of mixed resources"

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).

ray3242 pushed a commit to ray3242/Leonida that referenced this pull request Nov 23, 2026
…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>
@ray3242

ray3242 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@sperm @Codejustcode12 — the requested GTX 1060 re-run is done. Tested 5713bf8aa merged with #4682 310fa807 on Windows 11 build 26300, NVIDIA GeForce GTX 1060 6GB, driver 582.78, MSVC 19.44 + Ninja, RelWithDebInfo, Vulkan SDK 1.4.363 headers, layer and Microsoft host on the same adapter:

d3d12_vulkan_device_test: exit 0
CreateHeap valid neighbours: host resource heap tier 1
placed castable formats (D3D-90): SRGB-cast and plain clears read back and compared
  with the host runtime on NVIDIA GeForce GTX 1060 6GB; refusals matched the host's
FORMAT_INFO 195 queries / 0 mismatches; options 46 / 0 mismatches; formats 94 / 0 mismatches
Depth/stencil MSAA 12 compared / 0 mismatches; resolve 60 matched / 0 mismatches

No line 7051 heap_mismatches failure, and the two later castable asserts (7537 / 7840) are gone — 5713bf8a makes those heaps single-kind so a tier-1 host runs them. This confirms your diagnosis on a second Pascal card/driver (the 1050 Ti / 560.94 result from @Codejustcode12 plus this 1060 / 582.78 run). Synthetic fixtures only, no game files. AI-assisted (OpenCode).

@auswhalen999-debug

Copy link
Copy Markdown

Tested live on NVIDIA GeForce GTX 1070 8 GB (Pascal, D3D12 ResourceHeapTier 1, Windows 11, driver 581.80, Vulkan 1.4.312), built natively with clang-cl 23.1.6 + lld-link 23.1.6 + Windows SDK 10.0.26100 with 5713bf8aa merged cleanly onto main 8f208d09a:

1. Answer to your open question for Pascal (compare_heap_neighbours)

On GTX 1070 (Tier-1 host), all 8 mixed-heap cases — including alignment 0, alignment 64 KiB, and HARDWARE_PROTECTED — are indeed refused by the Tier-1 host (0x80070057, E_INVALIDARG) while the layer accepts them (0x00000000, S_OK), and PR #5000 handles all 8 cleanly:

CreateHeap valid neighbours: host resource heap tier 1
invalid arguments heap: alignment 0: the tier 1 host refuses a heap of mixed resources (ours 0x00000000, host 0x80070057)
invalid arguments heap: alignment 64 KiB: the tier 1 host refuses a heap of mixed resources (ours 0x00000000, host 0x80070057)
invalid arguments heap: alignment 4 MiB: the tier 1 host refuses a heap of mixed resources (ours 0x00000000, host 0x80070057)
invalid arguments heap: size 1000: the tier 1 host refuses a heap of mixed resources (ours 0x00000000, host 0x80070057)
invalid arguments heap: upload: the tier 1 host refuses a heap of mixed resources (ours 0x00000000, host 0x80070057)
invalid arguments heap: readback: the tier 1 host refuses a heap of mixed resources (ours 0x00000000, host 0x80070057)
invalid arguments heap: custom write-combine L0: the tier 1 host refuses a heap of mixed resources (ours 0x00000000, host 0x80070057)
invalid arguments heap: HARDWARE_PROTECTED: the tier 1 host refuses a heap of mixed resources (ours 0x00000000, host 0x80070057)
ID3D12Heap::GetDesc against the host: 20 heaps, 0 differ

And in compare_placed_reserved, all mixed-heap host 0x8000ffff (E_UNEXPECTED) refusals are cleanly excused on the Tier-1 host, and placed castable formats (D3D-90) runs cleanly against the Tier-1 host using single-kind heaps (16 plain and 0 SRGB-cast bytes differ from the host by one code, both within 0.6 ULP tolerance; refusals matched the host's).

2. Results on GTX 1070

  • main + #5000 (solo): d3d12_vulkan_device_test fails earlier only at the known pre-existing #4420 HOST_TRANSFER empty memoryTypeBits issue (cpu_copies, line 173 / 7043 — fixed by #4682).
  • main + #5000 + #4682 (combined): d3d12_vulkan_device_test: PASS (exit 0, 12.76 s) — 100% green on Pascal Tier-1!

3. Non-blocking note / follow-up spotted on Pascal Tier-1: d3d12_heap_properties_test

d3d12_heap_properties_test.exe has the same Tier-1 mixed-heap (ALLOW_ALL) mismatch on Pascal that #5000 fixes for d3d12_vulkan_device_test.cpp:

  • On main + #4682 + #5000, d3d12_heap_properties_test drops from 4 mismatches to 2 mismatches (529 values compared):
    • heap properties placed buffer, DEFAULT heap, ALLOW_ALL: created: ours 0x0 host 0x80070057 MISMATCH
    • heap properties placed texture, DEFAULT heap, ALLOW_ALL: created: ours 0x0 host 0x80070057 MISMATCH
  • (Already tracked in follow-up PR #7422 for heap_properties and method_variants on Tier-1 hosts.)

Core PR #5000 works cleanly on real Pascal Tier-1 hardware — LGTM!

(Only synthetic repository fixtures were used; no game data. AI-assisted: yes.)

Jacob and others added 2 commits November 24, 2026 07:37
…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, ItsNotRexed#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>
@sperm
sperm force-pushed the d3d-504-heap-tier branch from 5713bf8 to c6523c1 Compare November 23, 2026 18:38
@sperm

sperm commented Nov 23, 2026

Copy link
Copy Markdown
Author

Rebased onto main dfe4e4ad3 (now c6523c1), because the branch was conflicting.

@auswhalen999-debug thanks for the GTX 1070 run. It confirms the tier 1 host refusals are excused in all 8 mixed-heap cases. The heap_properties leftover is with #7422, as you said.

AI-assisted (Claude Code).

@milas6669

Copy link
Copy Markdown

Checked head c6523c1b8 merged onto main 867d922f0 (merges cleanly, 2 files, +41/-4). Windows 11 26200, MSVC 19.44 RelWithDebInfo, RTX 3070 (Ampere, 621.24), LEONIDA_VK_VALIDATION=1. The earlier check here is a GTX 1070 (Pascal, tier 1) at an older head.

ctest -j4 -R "d3d12|heap|dxgi|placed|resource": 112 tests, 108 pass. The four failures are not from this change: d3d12_vulkan_device, d3d12_depth_resolve and d3d12_mesh fail the same way on plain main 867d922f0 (rebuilt and rerun), and d3d12_bindless_churn failed once under -j4 and then passes 3 times in a row run alone (it fails when it shares a temp folder with its _validated twin; #6221). d3d12_heap_properties and d3d12_method_variants pass with this change.

New data, a coverage gap on this machine: d3d12_vulkan_device_test stops before it gets to this PR's additions. The line CreateHeap valid neighbours: host resource heap tier N never prints, and the test ends with ExecuteCommandLists failed: a list is not closed and invalid copy or resolve, the same lines main prints. So on an RTX 3070 the new ResourceHeapTier == TIER_2 check and the tier 1 host excuse are not executed here, and only the 46 feature queries compared ... 0 mismatches line (which passes) says anything about the change. Whoever has a tree where d3d12_vulkan_device reaches the end should confirm these assertions run. No game data. AI-assisted (Claude Code).

@sperm

sperm commented Nov 23, 2026

Copy link
Copy Markdown
Author

@milas6669 thanks for pointing out that gap. I have a run that reaches the end: c6523c1b8 with #7125's commit applied on top. It's the clang-cl + xwin cross-build, run under Wine on Linux with RADV, RX 9070 XT, and d3d12_vulkan_device_test.exe exits 0.

  • The layer side runs. The test printed CreateHeap valid neighbours: no host D3D12 device to compare with, skipped. That line comes right after this PR's checks in the standalone block: EXPECT(heap_opts.ResourceHeapTier == D3D12_RESOURCE_HEAP_TIER_2) and the accepted_heaps creates, including the mixed-kind heaps. With exit 0, both passed.
  • The host side doesn't run under Wine. There's no host D3D12 there, so compare_heap_neighbours skips, and so does the tier 1 host excuse. That half is covered by @auswhalen999-debug's GTX 1070 run above: tier 1 host, all 8 mixed-heap refusals excused, exit 0 with runtime: fall back to staging copies when a HOST_TRANSFER image has no memory type (TEST-995) #4682.

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 a list is not closed failure that stops your run is fixed. Your stop happens before this PR's code on plain main too, so it isn't caused by this PR.

AI-assisted (Claude Code).

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.

9 participants