Skip to content

D3D12 → Vulkan layer: critical path, who builds what, open methods #313

Open

Description

@KoertLichtendonk

The Xbox D3D12 → Vulkan layer in one place: what's done, who builds what, and what waits for what. It's the busiest area of the project (about 20 items and 10 people), so it gets its own page. Rules and the claim commands are in #4257; claims for D3D- items can be posted here or there. The plan and milestones are in docs/d3d12_vulkan.md.

Updated 2026-11-23 00:37 UTC by the coordinator (@KoertLichtendonk); corrections are welcome as comments.

Critical path

Most layer work builds on these PRs. Reviewing and testing them first (Windows, MSVC and a Vulkan GPU) unblocks the most people.

  1. Runtime: Vulkan-backed ID3D12Device behind the Xbox-ABI proxy: copies, presentation (M0), compute path #119 (Ryx69): the Vulkan-backed device, copies, presentation and the base of the compute path. Partly merged; its newer commits (head 5796549) are what most layer PRs below build on.
  2. Runtime: compute path and graphics draws on Vulkan (D3D-3, D3D-4, milestone M1) #291 (Ryx69): compute path and graphics draws, milestone M1 (D3D-3, D3D-4). Depends on Runtime: Vulkan-backed ID3D12Device behind the Xbox-ABI proxy: copies, presentation (M0), compute path #119; about +3,900 lines in 23 files.
  3. Built on Runtime: Vulkan-backed ID3D12Device behind the Xbox-ABI proxy: copies, presentation (M0), compute path #119/Runtime: compute path and graphics draws on Vulkan (D3D-3, D3D-4, milestone M1) #291: Runtime: CreateHeap and CreatePlacedResource on the Vulkan layer (D3D-16) #286 heaps and placed resources (D3D-16), DXGI shim in Runtime: DXGI front end over the Vulkan presenter (dxgi.dll shim, D3D-2) Ryx69/Leonida#2 (D3D-2), device wiring of the bindless descriptors (D3D-5; Runtime: GFX10 descriptor codec, bindless set 0 and CopyDescriptors (M2, first part) #230 merged), copy and compute queues (Runtime: D3D12 copy and compute queues on their own Vulkan queues (D3D-21) #306, D3D-21), mesh shaders (D3D-29), render passes (D3D-27).

Up for grabs

Unclaimed D3D- items, most useful first. ⭐ = good first task. None of them needs game files.

ID What Why it matters Needs Size
⭐ D3D-445 Console command-list proxy: normalise the newer-runtime +2 slot shift of the list tail (CopyTextureRegionX at 85 vs 83, pairs through 96→94; docs/d3d12_xs_console_abi.md §5.3) so diagnostic slot names don't mislabel newer-layout calls; the queue proxy's fence-detection rule could feed a device-wide layout flag (found by NolanCotter) (see #3381 (comment)) tail methods log under the wrong name on the newer layout, and will matter once one gets a PC equivalent C++; no game files (confirming which layout a real title uses needs the runtime) S

Blocked, not up for grabs yet: D3D-411 ResolveSubresource with a Format other than both textures' own (e.g. a typeless 4x target resolved as sRGB) fails on the layer: d3d12_com.cpp:504 drops the format and prepare_resolve (vulkan_replay.h:1748) refuses differing Vulkan formats, while the PC runtime accepts both cases. Needs a design choice by the layer's owners (view-format resolve vs. a shader resolve) (waits for a design decision on #313).

Who builds what

ID Item Owner PR Status
D3D-3 Compute path: shader lookup by FSSM hash, root signatures,… Ryx69, TheHoracio, AlxcBTW #291 merged, #819, #831 merged, #848, #873, #1489 merged, #907 closed #291 with D3D-4; mergeable; the split is agr…
D3D-8 CBV/SRV/UAV/sampler views, GetGPUVirtualAddress, command… 0xTehuti #157 PR open (conflicts); per aslan2142, its buf…
D3D-17 ExecuteIndirect with simple command signatures (draw, dra… mrb-eel #317, #743 merged, #1339 merged draft #317 (mrb-eel): fixed-count indirect…
D3D-27 Render passes: BeginRenderPass/EndRenderPass on dynamic… opit80 #2064
D3D-29 Mesh shaders on the layer: CreatePipelineState (pipeline… LloydNicholson, zneel #1712, #3777
D3D-32 Variable rate shading: RSSetShadingRate/`RSSetShadingRate… ezwinxdlmao, 0xTehuti #469, #519 closed #469; 0xTehuti closed #519 for it, tested a…
D3D-34 Pipeline library and shader cache: CreatePipelineLibrary,… mrb-eel, al3xar #367 draft, #2167 on main draft #367: use the pipeline cache the build…
D3D-38 Per-type descriptor slot sizes and a heap-handle registry (… kontaktjakubjagiello #333
D3D-39 CBV/SRV/UAV views as GFX10 descriptors (#334) and a bindles… kontaktjakubjagiello #334, #335 draft overlaps #157, #328 and #291; Ryx69 invited…
D3D-45 Compare clears with the host runtime: `ClearRenderTargetVie… NWX10, luisbaker #521, #525 merged #521 (NWX10) and #525 (luisbaker); NWX10…
D3D-47 Compare resolves with the host runtime: `ResolveSubresource… ToxicmaggotRP #493 closed #493 closed by its author (no merge); Toxic…
D3D-48 Compare fences and queues with the host runtime: Signal/`… luisbaker #497
D3D-52 GetResourceAllocationInfo with a host comparison test (ag… ray3242 #450 closed, #517 closed, #522 closed, #526 closed, #631 closed #327 already implements these three methods…
D3D-54 Synthetic draw from an UPLOAD-heap vertex/index buffer and… VictorJulianiR #653 #653; woreksami closed #648, tested #653 on…
D3D-57 Primitive restart: the PSO's IBStripCutValue on dynamic p… ezwinxdlmao #572 closed #572; Depends on: #291, #469
D3D-58 Wave64/wave32 subgroup size control in PSOs (required subgr… AlxcBTW #609 closed draft #609 (Depends on: #291)
D3D-63 1D textures and 1D arrays: CheckFeatureSupport reports `T… Ayinaki #561 closed, #693 closed
D3D-68 B5G5R5A1_UNORM sampled textures and copy footprints (spli… VictorJulianiR #617 closed #617, stacked on #562
D3D-69 ClearRenderTargetView on a TYPELESS resource through a vi… NWX10 #621 closed #621, stacked on #521 and #589
D3D-71 Default-heap buffers are not zero-filled yet: D3D12 committ… ismailchaka1 #655 #655 (ismailchaka1, Depends on: #291); Spo…
D3D-78 Unordered-access views of 3D, 1D and 1D-array textures (onl… guimsolutions #773
D3D-79 Depth-stencil views of 1D and 1D-array textures (after #561… ismailchaka1 #684 closed #684 (ismailchaka1, draft, Depends on: #561…
D3D-86 CheckFeatureSupport: OPTIONS2–5, 7, 9, 11, 13–16, 18–21 (… JavierBlanco23, Proudnoob4, AlxcBTW #775 merged, #745 merged, #469, #715 merged, #693 closed, #706 merged, #816 merged, #855 merged, #1623 closed
D3D-88 Aliasing: placed textures that share a heap range, and alia… BACONMANXDGOD #770 #770 (Depends on: #286); 14/14 answers match…
D3D-103 new D3D item on #291's pipelines — `DepthClipEnable = FALSE… ismailchaka1 #813 closed
D3D-108 eight D3D12 GPU tests are built but never registered with c… quackottu #883 closed
D3D-112 sampled color Texture2DArray SRVs ignore ResourceMinLODClam… Vonsek #974 closed
D3D-132 D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS1 (mesh and ampl… itsRevela #2870 draft, #1712 #2870 is a draft until rebuilt on #2359 (D3D…
D3D-136 Console-order command-list proxy (`docs/d3d12_command_objec… quackottu #1325 draft, #1270 merged opens as a draft with Depends on: BUILD-23…
D3D-163 CopyTiles on the command list (tiled resources), not impl… quackottu —
D3D-164 RSSetDepthBias (ID3D12GraphicsCommandList9, the console `… abilliontokens #1451
D3D-174 D24_UNORM_S8_UINT/R24G8_TYPELESS on AMD: `FORMAT_SUPPOR… hosienzade45 #1513 closed
D3D-179 RGB9E5 multisampled resource creation and resolve on device… Vonsek #1614 closed
D3D-197 fix(vulkan): release old VkSwapchainKHR via RAII guard on e… totonicpu #1613 closed #1560 (hosienzade45) keeps the old swapchai…
D3D-203 new D3D-97 follow-up — make deferred-resource retirement sa… kovaaper — claimed in the tracker (mentions #1404)
D3D-204 support read-only depth-stencil views (`D3D12_DSV_FLAG_READ… Vonsek #1644
D3D-207 the layer does not clamp a pixel's final depth to the viewp… nightmoon1996 #1703
D3D-217 ID3D12Device4::CreateHeap1 and `ID3D12GraphicsCommandList… dracbat #1846
D3D-231 d3d12_indirect_zero is registered without `SKIP_RETURN_CO… Ege-Mert #1778 closed
D3D-233 feat(runtime): add D3D12 CBV/SRV/UAV buffer views (#895 reb… — #1952 closed #1779 was reverted, so buffer UAV views are…
D3D-244 replace the full LayoutTracker copy (`auto next_tracker =… emirhan-karaca #1872
D3D-248 Runtime: milestone M5 synthetic gate (without mesh) — Execu… AlxcBTW, zneel #1865, #3777 #1865 (AlxcBTW) also fixes indirect draws d…
D3D-251 64-bit atomics on typed resources: the layer answers `D3D12… opit80, requiemsnkrp #2033, #2058
D3D-253 add Vulkan heap-budget reporting with VK_EXT_memory_budget,… wiverlord78 #2827 draft
D3D-255 serialize VulkanContext::remove_resource() with `tracker_… emirhan-karaca #1920 #1920 (emirhan-karaca)
D3D-264 DRED-style device-lost diagnostics on the Vulkan layer (aut… AimLogin #3293 draft
D3D-271 shrink detail::Prepared, the per-command entry `prepare()… traeb0n #2123 closed
D3D-282 Runtime: PresentX planes — scaled/placed plane 0, alpha-ble… AlxcBTW #2069 on main
D3D-283 Runtime: ExecuteIndirect with multi-argument command signat… AlxcBTW #2077 draft
D3D-285 D3D-20 follow-up — sparse tile mappings for reserved 2D tex… gabrielsteglich #2382 draft
D3D-286 kapitche's finding 1 (https://github.com/ItsNotRexed/Leoni… catrix-rgb — claimed by catrix-rgb, then dea7hsmiless;…
D3D-287 d3d12, dxgi: isolate shims from host System32 and expose Vu… SHAURYASANYAL3 #2098
D3D-289 Recording a draw costs about 155-160 ns and 4 heap allocati… requiemsnkrp, shadshuvo #2471, #2483 merged
D3D-290 new D3D item (D3D-34 follow-up, paired with merged #1772… al3xar — claimed in the tracker (mentions #1772)
D3D-291 A PIPELINE_STATISTICS query open around DispatchMesh tr… LloydNicholson #2359 LloydNicholson (first refusal, next to #171…
D3D-294 CreateCommandAllocator, CreateCommandList and `CreateCo… dev-ewann #2297
D3D-296 new runtime follow-up — fix IDXGISwapChain::GetDevice for D… edupode —
D3D-299 Log once when a resource that doesn't fit in device-local m… 0xTehuti #2591 on main
D3D-302 Stream-output and mesh-shader query statistics: `D3D12_QUER… TheHoracio, justr4mzi #2562
D3D-303 d3d12_vulkan_device_test on an RX 7600 under Windows 10. iasmitionsalvatore #2498
D3D-304 ID3D12Resource1/ID3D12Resource2 and ID3D12Heap1 on th… nightmoon1996 #2590
D3D-305 index and vertex reads past a view's SizeInBytes should r… nightmoon1996 #2676
D3D-309 D24_UNORM_S8_UINT backed by Vulkan D32S8 (AMD and other G… JustDownTV #3797
D3D-313 implement IDXGIAdapter::EnumOutputs, IDXGIOutput..`IDXG… nightsale #2976
D3D-314 Bindless table flushes wait for the whole device: when a fl… AlxcBTW, requiemsnkrp #2740, #2756 two PRs: #2740 (AlxcBTW, who claimed first)…
D3D-315 Root signatures over 32 user dwords are refused (pack();… TortitasT #4163 #4163 (TortitasT): census found no root-sig…
D3D-316 Detile step for console-tiled textures: resources created t… 0xTehuti, s0las16 #2693 merged, #2706 #2693 (s0las16); 0xTehuti claimed it first…
D3D-317 IDXGIFactory::CreateSwapChainForHwnd refuses what the hos… dev-ewann #3531
D3D-319 d3d12_compute flaky on a Mac under Wine (MoltenVK 1.4.3). Jolymmiles #3023
D3D-321 cross-queue Wait-before-Signal with resource handover.… AlxcBTW #2951 on main #2951 (AlxcBTW); kacper-serewis: 4/4 exact…
D3D-322 new D3D item VulkanContext::buffer_at (`runtime/src/vulk… jsthope #2823 on main
D3D-324 replay opens a vkCmdBeginRendering/vkCmdEndRendering sc… jsthope #3346
D3D-325 Native D24/D16 depth bias is up to 2× D3D's on NVIDIA: the… UlteriorMotive00 #2718 UlteriorMotive00 found it (RTX 5070: +3/−5/…
D3D-326 new D3D item (D3D-18 / #1277 follow-up, `docs/d3d12_vulkan.… LocranKing #3019
D3D-327 independent native Windows D3D12 versus parent/head depth-b… kacper-serewis — claimed in the tracker (mentions #2718)
D3D-331 ID3D12Device10 resource creation validation parity (`Crea… Wasler #2847
D3D-332 IDXGISwapChain2::SetSourceSize answers S_OK and ignores i… bobcatchris #2808
D3D-334 self-sourced cleanup — dead --verbose in `tools/analyze_4… Koro4e #2843 on main #2843 (Koro4e); its duplicate open-question…
D3D-336 Runtime: MakeResident, Evict, SetResidencyPriority and Enqu… mrp1no #2864, #3164
D3D-337 self-sourced docs cleanup — superseded M2 milestone row and… Koro4e #2871 on main
D3D-338 new D3D follow-up — budget-aware memory placement for ordin… gabrielsteglich #2955 draft
D3D-339 Pipeline-statistics queries around mesh draws over-report o… phalstead —
D3D-340 move the copy/resolve fields out of detail::Prepared (`ru… traeb0n #2928
D3D-341 d3d12: a pipeline registers its shaders' literal S#s (they… rafaelpssz #2887
D3D-346 query commands prepare without allocating. traeb0n #2969
D3D-347 GetResourceTiling reports nothing for a 96-bit (`R32G32B3… requiemsnkrp #3037
D3D-352 investigate and correct the FORMAT_SUPPORT1_BUFFER positive… kacper-serewis #3003 merged, #2786 draft
D3D-353 d3d12_ia_bounds case E diverges on RDNA2 with 128-byte pu… zGLados #3167
D3D-354 textures in CPU-visible heaps fail to create on a GTX 1050… gustavorafaelschmidt #3077
D3D-355 CreatePipelineLibrary and ID3D12PipelineLibrary(1) answ… mrp1no #3089
D3D-356 rt::rootsig::pack (with the root-argument writes in `runt… omardev29 —
D3D-359 ID3D12Resource::GetHeapProperties answers as the host run… mrp1no —
D3D-363 two new D3D items in the bundle code (separate PRs, no game… nightmoon1996 #3255 merged, #3298
D3D-364 tools/inline_scan.py: answer the open question in `docs/d… CLHelper #3218 on main
D3D-365 new D3D12→Vulkan runtime correctness item — fix stale stora… pmilewsskiedu-gif #3270
D3D-366 the console-shaped command list (the object the title's inl… NolanCotter — claimed by NolanCotter; kotorvr offers the…
D3D-367 placed 1D and 3D textures. ICUMADETHIS #3351
D3D-369 Recover the four console command-list IIDs still unknown (c… Kam471 #3520 PR open; mariuslozo-boop posted the command…
D3D-370 new D3D item (DXGI) - `IDXGIObject::SetPrivateData/SetPriva… kapitche #3280
D3D-371 new D3D item (DXGI) - `IDXGIFactory2::RegisterStereoStatusW… kapitche #3283
D3D-374 the device-proxy part of my finding above (`runtime/shims/d… kotorvr —
D3D-375 XDXR builder: BOX16 nodes for MINIMIZE_MEMORY BLASes, and T… zneel #3315
D3D-377 A command list refused for a forbidden bundle call: the PC… maxhurst131 #3378, #3596 closed #3378 (maxhurst131); Koro4e opened #3596 f…
D3D-378 A bundle created without a pipeline: on the PC runtime its… hamada65 #3382
D3D-379 D3D12 device creation arguments the layer accepts but the h… kapitche #3339
D3D-380 ID3D12Device::GetResourceAllocationInfo with a visibleMas… kapitche #3358
D3D-381 ID3D12Resource1 and ID3D12Heap1 are not exposed by the… kapitche #3374
D3D-382 D3D12/Vulkan: fix copies within one texture subresource s0las16 #3348
D3D-383 CreateRootSignature on the Vulkan device parses a root si… kotorvr #3494
D3D-384 new original D3D12->Vulkan runtime item -- fixed/simple-sig… pmilewsskiedu-gif #3461
D3D-385 separate new Vulkan runtime lifecycle/synchronization item… pmilewsskiedu-gif #3481
D3D-386 the device a title gets from D3D12XboxCreateDevice refuse… kotorvr #3538 tested on kotorvr:feat/device-idxgidevice…
D3D-387 cross-format CopyTextureRegion into partial block-compresse… mrb-eel #3477
D3D-388 Packed vertex semantics give duplicate Vulkan attribute loc… whattheflop #3512, #3403 closed
D3D-389 The DXGI swapchain can expose more back buffers than reques… Kam471 #3597, #3613 closed #3597 (Kam471); steamaze0 opened #3613; N…
D3D-390 independent VulkanPresenter swapchain-recreation host synch… pmilewsskiedu-gif #3551
D3D-391 Since #2483 (D3D-289, inline draw views) every recorded com… Ayinaki, TomasVargas22 #3693, #3784 #3693 (Ayinaki) and #3784 (TomasVargas22);…
D3D-392 R24G8_TYPELESS / R32G8X24_TYPELESS textures without `AL… gertify #3833
D3D-393 emit skips draw state that is unchanged since the previous… traeb0n —
D3D-394 the mesh half of milestone M5 (#1865 is "without mesh"). zneel #3777 draft #3777 (zneel), stacked on #1712 (D3D-…
D3D-395 D3D12: validate depth-stencil views like render-target views s0las16 #3594
D3D-396 new independent D3D12→Vulkan sparse reserved-buffer cross-q… pmilewsskiedu-gif #3652
D3D-398 the runtime's own Vulkan device (`create_vulkan_device_stan… kotorvr #3780
D3D-399 The single-list replay() helper refuses a list whose occl… undeadhuman37 #3776, #3804 closed
D3D-400 two input gaps in BuildRaytracingAccelerationStructure on… shelbykb2 —
D3D-401 Extend d3d12_m2_textured_test.cpp with POINT/CLAMP and LINE… oguzhanozfe #3717
D3D-402 the address arena ignores the device's buffer limits. shelbykb2 #3865
D3D-403 on RDNA2 under Windows a pixel or mesh shader can't be give… shelbykb2 #3982
D3D-404 independent D3D12 fence transient-failure retry correctness. pmilewsskiedu-gif #3789
D3D-405 follow-up to #2438 (merged), from the review by pwu2775-de… MeNoSkills #3774
D3D-406 Runtime: RTVs in a castable-format list's other channel ord… SpositoDouglas #3781
D3D-407 With one graphics queue in the Vulkan driver, the Vulkan-ba… pmilewsskiedu-gif — claimed by pmilewsskiedu-gif, then SebSile…
D3D-408 A valid D3D12 list containing one command the layer doesn't… requiemsnkrp #3864, #3958 #3864 (requiemsnkrp) and #3958 (chemokita1…
D3D-409 new docs item on the D3D12 layer — why a placed footprint w… kotorvr #3807
D3D-410 The GPU BVH builder's trees take about twice as many traver… NiiRoZz #4098 draft
D3D-412 Both TLAS builders write an instance's world-to-object matr… wildheathen #4011
D3D-413 NEW D3D bindless cross-queue descriptor hash-table publicat… pmilewsskiedu-gif —
D3D-414 rt::d3d12::create_window_presenter doesn't unwrap the Xbo… kotorvr #3925
D3D-415 NEW D3D GetClockCalibration Vulkan fallback global-submit-l… pmilewsskiedu-gif #3841
D3D-416 ArraySize -1 in TEXTURE2DARRAY / TEXTURE2DMSARRAY ren… zzEmmazz —
D3D-417 On a Radeon iGPU (gfx1036, AMD 32.0.21042.62) the layer's 4… zzEmmazz #3977, #3835 PR open; also 4x depth-stencil arrays (D24S8…
D3D-418 d3d12: ArraySize -1 in 2D-array RTVs and DSVs is every slic… zzEmmazz #3835
D3D-419 Close() on the layer disagrees with the PC D3D12 runtime… kotorvr #3933
D3D-420 CreateCommandSignature with a root signature, compare… mrp1no #3929
D3D-421 d3d12_clear_test fails on main for D16_UNORM depth cl… ToxicmaggotRP —
D3D-422 Run a translated raster draw from a mapped synthetic guest nschlaepfer #3913
D3D-423 NEW D3D runtime correctness item (please assign ID): ID3D12… pmilewsskiedu-gif #3969
D3D-424 XDXR builds: ARRAY_OF_POINTERS instances and the 16-bit ver… shelbykb2 #3944
D3D-425 The opt-in KHR acceleration-structure path (`LEONIDA_RT_AS=… sds-228 #4060, #4105 closed shelbykb2 waived first refusal (#3918, 23:0…
D3D-426 CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS) with the… mariuslozo-boop #4026
D3D-427 Verify 600 frames, input and save/resume in a mapped synthe… nschlaepfer #3986
D3D-428 new D3D item (tooling only) — tools/gen_d3d12_stubs.py `c… AAyberkU #4016
D3D-429 implement ID3D12DeviceChild::GetDevice and default-heap `… cixotdev #4068
D3D-430 new D3D runtime correctness item — legal no-op copies curre… pmilewsskiedu-gif #4038
D3D-431 ID3D12CommandQueue::ExecuteCommandLists (`runtime/shims/d… Exopus-0x65f7ad0 #4061
D3D-432 new D3D runtime correctness item — ClearDepthStencilView cu… pmilewsskiedu-gif #4063
D3D-433 Implement D3D12 OPTIONS13 unrestricted buffer–texture copy… gabrielsteglich #4107
D3D-434 CreateDescriptorHeap with NumDescriptors = 0 and `D3D12… Exopus-0x65f7ad0 —
D3D-435 new independent D3D12 runtime correctness item — IASetVerte… pmilewsskiedu-gif #4095
D3D-436 ID3D12Heap::GetDesc (`runtime/shims/d3d12_vulkan_device.c… Exopus-0x65f7ad0 #4088
D3D-437 ClearDepthStencilView on a depth-only D32_FLOAT view wi… Vonsek #4143
D3D-438 GetCopyableFootprints (`runtime/shims/d3d12_vulkan_device… Exopus-0x65f7ad0 —
D3D-439 d3d12: GetCopyableFootprints wraps a mip shift past 32 as t… Exopus-0x65f7ad0 #4101
D3D-440 update README.md's "Want to help?" D3D12 bullet. sds-228 #4118
D3D-441 Console command lists: measure the DMA list type's real num… abilliontokens —
D3D-442 boot trace report of partial D3D12 submissions. lahlousaad4 #4200
D3D-443 Preserve reserved-buffer tile mapping order when a D3D12 qu… gabrielsteglich #4224
D3D-444 HWND swapchain created with DXGI_SCALING_NONE reports `ST… Exopus-0x65f7ad0 #4231
D3D-446 independent D3D12 CopyTextureRegion PLACED_FOOTPRINT→PLACED… pmilewsskiedu-gif #4253
D3D-447 follow-up to D3D-394 / #3777 (Depends on: #3777): run the M… tedin7 #4236
D3D-448 rt::rootsig::pack() (runtime/src/root_signature.cpp:8,… TortitasT —
D3D-449 runtime: use the barycentric fallback on devices without `V… DaniSBR1 —
D3D-450 IDXGISwapChain2::SetMatrixTransform/GetMatrixTransform… Exopus-0x65f7ad0 #4260 #4260 (Exopus-0x65f7ad0): answers DXGI_ERRO…
D3D-451 Swapchain back buffers (BackBufferResource, `runtime/shim… omar-akermi —
D3D-452 IDXGIAdapter::CheckInterfaceSupport(IDXGIDevice) (`runtim… Exopus-0x65f7ad0 #4273
D3D-453 d3d12: the graphics PSO path fails silently when a transl… Roberto0953 #4276
D3D-454 EGEN-PSO-STATE-SWEEP — a differential draw test against the… Vonsek #4288
D3D-455 runtime: notify QueueHolds when a held CPU Fence::Signal fi… cixotdev #4282
D3D-456 the window presenter's Vulkan swapchain is created with onl… erickbobd —
D3D-457 Runtime: prototype opt-in Tier 3 InnerCoverage and GPU comp… 73N1X #4290 draft

Comparison tests

Once a method exists, the next step is checking it against the host PC runtime (or WARP), as GetCopyableFootprints, GetResourceAllocationInfo and the UINT clears already are: the same answers, the same errors, the same pixels. Those comparison items are in Up for grabs above; they need Windows and a GPU, no game files.

Method coverage

D3D12 methods of the interfaces the runtime implements, counted from the SDK's d3d12.h against STDMETHODCALLTYPE overrides in runtime/ on main and in open PRs. "Open" methods log as unimplemented and return a failure. In the objects table, a PR stacked on another one (for example on #291) counts the objects it carries along.

Interface Methods On main In open PRs Open
ID3D12Device11 77 61 3 13
ID3D12GraphicsCommandList8 79 62 8 9
ID3D12CommandQueue 16 16 0 0
ID3D12CommandAllocator 6 6 0 0
ID3D12Fence1 9 9 0 0
ID3D12DescriptorHeap 8 8 0 0
ID3D12Resource 12 12 0 0

Objects the layer has to create, beyond those above:

Interface Needed for On main In open PRs
ID3D12PipelineState PSOs (D3D-3/D3D-4) yes —
ID3D12RootSignature root signatures yes —
ID3D12QueryHeap queries (D3D-15) yes —
ID3D12Heap heaps and placed resources (D3D-16) yes —
ID3D12CommandSignature ExecuteIndirect (D3D-17) yes —
ID3D12PipelineLibrary1 pipeline libraries (D3D-34) no #1772
ID3D12StateObject ray tracing (not planned yet) no —

Not planned until the game's trace shows them: shared handles and OpenExistingHeap*, protected resource sessions, meta commands, sampler feedback, lifetime trackers, RemoveDevice, CheckDriverMatchingIdentifier, view instancing (SetViewInstanceMask; ViewInstancingTier is reported as not supported), the shader cache (CreateShaderCacheSession, ShaderCacheControl), stream output (SOSetTargets, waits for SHADER-16's counts), CopyTiles, and the ray-tracing calls (CreateStateObject, AddToStateObject, SetPipelineState1, BuildRaytracingAccelerationStructure, DispatchRays, milestone M6, see RT-4 and ASSET-23). The table counts up to ID3D12Device11 and ID3D12GraphicsCommandList8, the interfaces runtime/CMakeLists.txt generates; ID3D12Device12–14 and ID3D12GraphicsCommandList9/10 answer E_NOINTERFACE (List9 is #1451, D3D-164; List10 is work graphs, reported unsupported). Corrections from throny.

Decisions for the maintainer

Activity

  1. Ryx69 commented on Nov 21, 2026

    @Ryx69
    Contributor

    i will take D3D-29 and D3D-27 for now!

  2. KoertLichtendonk commented on Nov 21, 2026

    @KoertLichtendonk
    ContributorAuthor

    Descriptors: four overlapping PRs. @kontaktjakubjagiello @aslan2142 @0xTehuti @Ryx69, there are now several PRs for the same pieces:

    Piece Already on main or open New
    GFX10 T#/S#/V# codec, bindless set 0, CopyDescriptors #230 (merged, @aslan2142) —
    Texture SRV/UAV views and samplers into the bindless set #328 (@aslan2142) #334
    Buffer views (CBV/SRV/UAV) as V#s #157 (@0xTehuti); @aslan2142 suggested it fits #328's buffer branch #334
    Root descriptor tables and SetDescriptorHeaps in the command list, bindless index allocation #291 (@Ryx69), with set 0 binding from D3D-5 #335 (draft)
    Per-type descriptor sizes and a CPU-handle → heap registry — #333

    #333 looks new. @kontaktjakubjagiello, could you compare #334 and #335 with #328, #157 and #291 here before going further, and keep what they lack? The rest could become reviews of those PRs. One suggestion for the split: #328 for textures and samplers, #157's V# code in #328's buffer branch for buffer views, #291 for the command-list binding, and #333 on top of all three.

  3. 73N1X commented on Nov 21, 2026

    @73N1X
    Contributor

    Coordination note: my RGBA8 typeless RTV clear work is already claimed in #156:
    #156 (comment)

    Phase 1 is locally implemented and validated, but no PR is open: it waits for D3D-36 / #318 to be integrated, then will be based directly on main. It preserves explicit UNORM/SRGB/UINT RTV formats on one-mip, one-layer, single-sample 2D RGBA8 typeless resources. It does not implement BeginRenderPass/EndRenderPass (D3D-27), DispatchMesh (D3D-29), or bindless SRV/UAV/sampler descriptors.

    Compatibility check against the current #333 diff: my TargetView format field still fits its 32-byte RTV/DSV slots. I do not change descriptor strides, heap registration or CopyDescriptors. If #333 lands first, the typeless patch will retain its per-type slot checks and registry rather than restore the old shared-size implementation. The shared edit surface is d3d12_vulkan_device.cpp; the scopes are different.

    The clear implementation uses a short dynamic-rendering scope internally when the RTV reinterprets the image format. I will compare that path with D3D-27 when its implementation is available, so its render-pass work can reuse the same typed-view interpretation without duplicating it.

    Mip/array RTV expansion will be a separate phase after phase 1 is integrated. No phase-2 implementation PR is being stacked on the pending bases. Please flag any overlap not covered by the current tables.

  4. aslan2142 commented on Nov 21, 2026

    @aslan2142
    Contributor

    @KoertLichtendonk The suggested split works for me: #328 for texture views and samplers, #157's V# code in its buffer branch, #291 for the command-list binding, #333 on top.

    @kontaktjakubjagiello #333 keeps every slot at 32 bytes, so it does not change what #328 writes (a T# is 32 bytes, an S# is 16 bytes in a 32-byte slot). The two only conflict textually in d3d12_vulkan_device.cpp. I can rebase #328 if #333 lands first.

    @Ryx69 #291 still refuses shaders with set-0 bindings in two places. Once #328 is in, the hookup is rt::d3d12::bindless_set_layout in the pipeline layout and bindless_set bound before the dispatch or draw. I can send that as a follow-up with an end-to-end test, or you can fold it into #291.

    AI-assisted (Claude Code, Claude Fable 5.2).

  5. KoertLichtendonk commented on Nov 21, 2026

    @KoertLichtendonk
    ContributorAuthor

    @kontaktjakubjagiello @Ryx69: since the comment above, #335 has also gained the draw path: SetPipelineState, root signatures, DrawInstanced/DrawIndexedInstanced and replay. That's the core of #291 (D3D-3/D3D-4, @Ryx69), which is mergeable and is the critical path everything else builds on. @aslan2142 agreed to the split above. @kontaktjakubjagiello, could you hold #335 at the bindless allocator and the table scan, compare the rest with #291 here, and offer what #291 lacks (your first_draw_test, for example) as a review or a test of #291?

  6. Ryx69 commented on Nov 21, 2026

    @Ryx69
    Contributor

    Thanks both, the split works for me.

    @aslan2142 please send the set-0 hookup as a follow-up (Depends on: #291, #328) rather than folding it into #291. That way #291 can land now without waiting on #328. The two refusals you mean are the uses set-0 bindings checks in d3d12_vulkan_device.cpp, one in compute PSO creation and one in graphics. Your PR can drop both once the layout carries set 0.

    @kontaktjakubjagiello a review of #291 against #335 is welcome. If first_draw_test covers something #291's tests don't, I'm happy to take it into #291 as a test or have it land right after.

  7. 73N1X commented on Nov 21, 2026

    @73N1X
    Contributor

    done: D3D-41 #388

    #318 is integrated, so phase 1 is now rebased directly onto main (d7cbc3e) and submitted as one typeless-only commit. Full runtime build and CTest 19/19 passed, along with 13 typeless WARP readbacks, 19 CPU scenarios, 12 invalid descriptor rejections and six GPU regression executables under validation. The PR links the original #156 claim and the #333/D3D-27 compatibility note. Mip/array expansion remains outside #388 and will wait for this phase to be integrated.

  8. KoertLichtendonk commented on Nov 21, 2026

    @KoertLichtendonk
    ContributorAuthor

    Order for the five PRs editing d3d12_vulkan_device.cpp, as @ItsNotRexed asked in the merge-round note (posted in #156). A suggestion based on the split agreed above; authors, please say here if you'd rather have it otherwise:

    1. Runtime: WriteToSubresource and ReadFromSubresource on the Vulkan device #288 (@Parakeet-Wheat, WriteToSubresource/ReadFromSubresource): small and independent of the descriptor work, so it rebases first.
    2. Runtime: texture views and samplers go into the bindless set (M2, the device's part) #328 (@aslan2142, texture views and samplers into the bindless set): the base of the agreed split.
    3. Runtime: per-type descriptor slot sizes and heap handles (P0/P1) #333 (@kontaktjakubjagiello, per-type descriptor sizes and the handle registry): "on top" in the split; @aslan2142 noted it keeps 32-byte slots, so it only conflicts textually with Runtime: texture views and samplers go into the bindless set (M2, the device's part) #328.
    4. Runtime: D3D12 CBV/SRV/UAV views as GFX10 descriptors (P2) #334 (@kontaktjakubjagiello): only what Runtime: texture views and samplers go into the bindless set (M2, the device's part) #328 and Runtime: implement CBV/SRV/UAV/Sampler views with GFX10 V# buffer descriptors, GetGPUVirtualAddress and command list state setters #157 don't already have, after those two. Buffer views go into Runtime: texture views and samplers go into the bindless set (M2, the device's part) #328's buffer branch with Runtime: implement CBV/SRV/UAV/Sampler views with GFX10 V# buffer descriptors, GetGPUVirtualAddress and command list state setters #157's V# code.
    5. Runtime: implement GetResourceAllocationInfo, GetResourceAllocationInfo1/2 (D3D-22) #329 (@0xTehuti): Runtime: GetResourceAllocationInfo on the Vulkan device (D3D-23) #327 was merged this round with the same three GetResourceAllocationInfo methods, so Runtime: implement GetResourceAllocationInfo, GetResourceAllocationInfo1/2 (D3D-22) #329 can probably close. If it has something Runtime: GetResourceAllocationInfo on the Vulkan device (D3D-23) #327 lacks, a small follow-up on top of main is easier.

    Separately, #291 (@Ryx69) stays the critical path and lands independently of these. @aslan2142's set-0 hookup follows after #291 and #328.

  9. Parakeet-Wheat commented on Nov 21, 2026

    @Parakeet-Wheat
    Contributor

    @KoertLichtendonk thanks for the order, it works for me.

    #288 (D3D-22, WriteToSubresource/ReadFromSubresource) is rebased onto main at d937b7f and mergeable again (head 74c99af). Texture creation now uses #327's texture_create_info and adds the host transfer usage on top. Retested on an RTX 3070: ctest 18/18, both copy paths (host image copy and staging) and the allocation info comparison pass with zero validation errors. @aslan2142, #328 can go next whenever you're ready.

    #258 (D3D-18, SetPredication) is rebased too (head 96f113a). It doesn't touch the descriptor work. Its replay test is now part E, after main's new barrier test (part D).

    AI-assisted (Claude Code).

  10. KoertLichtendonk commented on Nov 21, 2026

    @KoertLichtendonk
    ContributorAuthor

    New work for the layer: comparison tests. Almost every D3D12 item here is claimed, so Up for grabs above now has seven items (D3D-45 to D3D-51) that check what already exists against the host PC runtime or WARP: the same pixels for clears, copies and resolves; the same behaviour for fences and queues; the same errors for invalid arguments, CheckFeatureSupport and command-list misuse. GetCopyableFootprints, GetResourceAllocationInfo and the UINT clears already work this way (create_host_device() in runtime/test/d3d12_vulkan_device_test.cpp). Windows and a GPU are enough; no game files. Four of them are small first tasks.

    The method coverage also gained an objects table: none of pipeline state, root signature, query heap, heap or command signature exists on main yet. They come with #291, #286, #278 and #317, and the pipeline library and state object exist nowhere.

  11. 0xTehuti commented on Nov 21, 2026

    @0xTehuti
    Contributor

    claiming: D3D-32 (RSSetShadingRate/RSSetShadingRateImage on VK_KHR_fragment_shading_rate), posted in #374 as well.

    I will map D3D12 shading rates (1x1, 1x2, 2x1, 2x2, 2x4, 4x2, 4x4) and combiners to vkCmdSetFragmentShadingRateKHR, record/replay them on the Vulkan command list, validate feature support via CheckFeatureSupport, and add synthetic test coverage. Tested on Windows 11 with an NVIDIA RTX 2070 SUPER. AI-assisted.

  12. ToxicmaggotRP commented on Nov 21, 2026

    @ToxicmaggotRP
    Contributor

    claiming: D3D-47 — compare resolves with the host runtime

    The existing Vulkan device test covers basic ResolveSubresource and ResolveSubresourceRegion behavior, but its resolve coverage is limited mainly to 4x MSAA with R8G8B8A8_UNORM.

    I will extend runtime/test/d3d12_vulkan_device_test.cpp to compare the Vulkan-backed D3D12 implementation against the host Windows D3D12 runtime.

    Scope:

    • Test ResolveSubresource across multiple supported color formats and MSAA sample counts.
    • Extend ResolveSubresourceRegion coverage for source rectangles, destination offsets and null rectangles.
    • Query format and multisample support on both devices, skipping unsupported combinations explicitly.
    • Read back and compare the resolved results, reporting mismatches with the format, sample count and test case.
    • Preserve the existing invalid-argument and unsupported-operation checks.

    Testing will use synthetic textures and the host D3D12 runtime, with no retail game files or game shaders.

    Hardware: NVIDIA RTX 4060 Ti, Windows 11, Vulkan.

    AI-assisted.

  13. Aminecsmc commented on Nov 22, 2026

    @Aminecsmc
    Contributor

    claiming: D3D-51

    Command-list rules like the host runtime: Close twice, Reset while recording, executing an open list, and reusing an allocator that is in flight. I'll extend create_host_device() in runtime/test/d3d12_vulkan_device_test.cpp so each case runs on both the host D3D12 runtime and the Vulkan layer, and fix the layer where its HRESULT differs. No game files. Tested on an RTX 3050 Laptop (Windows 11). AI-assisted (Claude Code).

  14. KoertLichtendonk commented on Nov 22, 2026

    @KoertLichtendonk
    ContributorAuthor

    A landing plan for the critical path. @Ryx69 @ItsNotRexed

    #119 and #291 are the oldest open PRs (#119 is over four hours old), and both conflict with main again after every merge round. A growing stack of work builds on them:

    Every round they slip further behind, and the rebases for everyone above them get bigger. A suggestion:

    1. @Ryx69: one more rebase of Runtime: Vulkan-backed ID3D12Device behind the Xbox-ABI proxy: copies, presentation (M0), compute path #119 and Runtime: compute path and graphics draws on Vulkan (D3D-3, D3D-4, milestone M1) #291 onto current main. If it helps, fold Runtime: Vulkan-backed ID3D12Device behind the Xbox-ABI proxy: copies, presentation (M0), compute path #119's remaining commits into Runtime: compute path and graphics draws on Vulkan (D3D-3, D3D-4, milestone M1) #291, so there is one PR. Then say "ready" here.
    2. @ItsNotRexed: in the next merge round, merge Runtime: Vulkan-backed ID3D12Device behind the Xbox-ABI proxy: copies, presentation (M0), compute path #119, then Runtime: compute path and graphics draws on Vulkan (D3D-3, D3D-4, milestone M1) #291, before other PRs that touch d3d12_vulkan_device.cpp, d3d12_com.cpp, command_list.h or vulkan_replay.h. Hold those until both are in, so the two don't need yet another rebase.
    3. Everyone in the list above: right after that, rebase onto main instead of Runtime: compute path and graphics draws on Vulkan (D3D-3, D3D-4, milestone M1) #291's head. The stack becomes ordinary PRs, and the review queue in Coordinating who works on what (2) (moved to #634) #374 picks them up.

    If #291 is too large to review in one go (about +3,900 lines), splitting it into the compute path and the graphics draws would also work. @Ryx69, your call.

    Also: #450 (@ray3242) implements GetResourceAllocationInfo with a host comparison test. #327 already did exactly that and is merged (D3D-23), so #450 can probably close. If its test covers cases #327's doesn't, a small follow-up adding just those is easier.

  15. 148 remaining items

  16. L-696 commented on Nov 22, 2026

    @L-696

    D3D-56 descriptor lookup measurements on RTX 4060 Laptop, NVIDIA 621.01

    I ran vk_descriptor_bench from Leonida commit f847748cc76bd3777f9c070c4034eb2fc1c04e64 on Windows 11 Pro 24H2 (26100.7171), i7-13650HX, NVIDIA GeForce RTX 4060 Laptop GPU (10de:28e0), Vulkan 1.4.357, subgroup 32..32. This supplements the shader results already posted for this GPU/driver in #166. The workload uses synthetic descriptor tables and compute shaders.

    Result. Self-test passed. Quick profile returned 66 timing rows, the default full profile 99, and an independent 100k device-local repeat 11. All three processes exited 0, all rows reported timing_status=ok, and the benchmark reported no CPU/GPU lookup mismatches. The three emitted SPIR-V modules passed SPIRV-Tools v2026.1 with target environment vulkan1.2. Vulkan validation layers were not requested.

    100,000 entries. Net GPU microseconds per million lookups as reported by the tool, after baseline subtraction. The 524,288-slot table occupied 20 MiB. Each value is taken from a single benchmark run; the independent repeat is shown separately.

    Memory placement Uniform texture hit Divergent texture hit Divergent miss
    Device local (type 1) 13.80 199.37 2068.03
    Host visible 51.89 229.60 2611.87
    Host-visible device-local (type 4) 13.94 198.98 2064.95
    Device local, repeat 13.46 199.28 1900.23

    In the two device-local runs the divergent-hit medians were 3.920 and 3.925 ms. The divergent-miss medians were 35.271 and 32.463 ms. Power and clocks were not locked or logged. The benchmark auto-scaled three host-visible rows, including the 100k divergent miss (13 iterations, 9 reps). See the CSV for actual iterations, repetitions, gross time and net cost. These are descriptor lookup measurements only.

    Reproduction. From the pinned Leonida revision, build the existing vk_descriptor_bench target. For this measurement the unmodified standalone translation unit was compiled with x64 MSVC 14.50.35717 using /std:c++20 /O2 /EHsc /utf-8 /DNOMINMAX /DWIN32_LEAN_AND_MEAN and the CMake-pinned Khronos Vulkan-Headers revision 6802bb4733b63ed5efd3adb308a6c885ef180ea1. All selected source/header Git blob hashes were checked. From the binary directory in PowerShell:

    .\vk_descriptor_bench.exe --self-test
    .\vk_descriptor_bench.exe --list-devices
    # On this machine index 2 was the native NVIDIA adapter. Index 3 was Mesa Dozen on the same GPU.
    .\vk_descriptor_bench.exe --device 2 --quick --csv > quick.csv
    .\vk_descriptor_bench.exe --device 2 --csv > descriptor-full.csv
    .\vk_descriptor_bench.exe --device 2 --sizes 100000 --memory device --csv > descriptor-repeat.csv
    .\vk_descriptor_bench.exe --dump-spv bench
    Get-ChildItem bench_*.spv | ForEach-Object { spirv-val --target-env vulkan1.2 $_.FullName }

    AI-assisted local build, execution and reporting. Raw CSVs below.

    descriptor-full.csv
    # device,NVIDIA GeForce RTX 4060 Laptop GPU,NVIDIA (621.01)
    entries,capacity,load_pct,size_bytes,mean_probes,max_probes,placement,mem_type,flags,scenario,groups,iters,reps,unique_keys,med_ms,min_ms,max_ms,us_per_1m_lk,net_us_per_1m_lk,glk_per_s,timing_status
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",baseline_uniform,4096,64,25,900,0.144288,0.143776,0.144736,,,,ok
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",baseline_divergent,4096,64,25,900,0.569600,0.569056,0.570048,,,,ok
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",uniform_hot_tsharp,4096,64,25,1,0.306048,0.305600,0.306656,18.2419,9.6416,54.8189,ok
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",uniform_tsharp_hit,4096,64,25,900,0.352224,0.351040,0.354080,20.9942,12.3940,47.6322,ok
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",uniform_ssharp_hit,4096,64,25,100,0.350848,0.350528,0.351296,20.9122,12.3119,47.8190,ok
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",uniform_pair_ts,4096,64,25,1000,0.630304,0.628800,0.631584,18.7845,14.4844,53.2353,ok
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",uniform_miss,4096,64,25,1024,1.301024,1.297952,1.303744,77.5471,68.9468,12.8954,ok
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",divergent_tsharp_hit,4096,64,25,900,1.722784,1.715584,1.727232,102.6859,68.7351,9.7384,ok
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",divergent_pair_ts,4096,64,25,1000,3.436896,3.429792,3.452640,102.4275,85.4521,9.7630,ok
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",divergent_miss,4096,64,25,1024,6.504128,6.493056,6.516320,387.6762,353.7254,2.5795,ok
    1000,4096,24.41,163844,1.3160,5,device_local,1,"DEVICE_LOCAL",latency_divergent,4096,64,25,900,2.193184,2.190976,2.196160,130.7240,96.7731,7.6497,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",baseline_uniform,4096,64,25,900,0.145504,0.144960,0.146080,,,,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",baseline_divergent,4096,64,25,900,0.569856,0.569632,0.570688,,,,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_hot_tsharp,4096,64,25,1,0.308960,0.308512,0.309536,18.4155,9.7427,54.3022,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_tsharp_hit,4096,64,25,900,0.728544,0.727296,0.731392,43.4246,34.7519,23.0284,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_ssharp_hit,4096,64,25,100,1.411136,1.410176,1.411936,84.1103,75.4375,11.8892,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_pair_ts,4096,64,25,1000,0.635648,0.633696,0.637376,18.9438,14.6074,52.7878,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_miss,4096,64,25,1024,1.340992,1.336640,1.344832,79.9294,71.2566,12.5110,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",divergent_tsharp_hit,4096,64,25,900,1.725824,1.721312,1.738208,102.8671,68.9011,9.7213,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",divergent_pair_ts,4096,64,25,1000,3.544064,3.539488,3.550560,105.6213,88.6383,9.4678,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",divergent_miss,4096,64,25,1024,6.445216,6.426784,6.474560,384.1648,350.1987,2.6030,ok
    1000,4096,24.41,163844,1.3160,5,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",latency_divergent,4096,64,25,900,2.172960,2.170944,2.174432,129.5185,95.5524,7.7209,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",baseline_uniform,4096,64,25,900,0.148448,0.147808,0.148800,,,,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",baseline_divergent,4096,64,25,900,0.569248,0.568768,0.571392,,,,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_hot_tsharp,4096,64,25,1,0.307840,0.307072,0.312160,18.3487,9.5005,54.4998,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_tsharp_hit,4096,64,25,900,0.353824,0.352992,0.358720,21.0896,12.2414,47.4168,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_ssharp_hit,4096,64,25,100,0.352480,0.351680,0.353248,21.0094,12.1613,47.5976,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_pair_ts,4096,64,25,1000,0.642464,0.640800,0.643808,19.1469,14.7228,52.2277,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_miss,4096,64,25,1024,1.302144,1.299008,1.305216,77.6138,68.7656,12.8843,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",divergent_tsharp_hit,4096,64,25,900,1.718048,1.712960,1.729888,102.4036,68.4738,9.7653,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",divergent_pair_ts,4096,64,25,1000,3.833536,3.826912,3.844736,114.2483,97.2834,8.7529,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",divergent_miss,4096,64,25,1024,6.418592,6.407872,6.456096,382.5779,348.6481,2.6138,ok
    1000,4096,24.41,163844,1.3160,5,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",latency_divergent,4096,64,25,900,2.164992,2.162848,2.167520,129.0436,95.1138,7.7493,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",baseline_uniform,4096,64,25,9000,0.289504,0.288736,0.290016,,,,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",baseline_divergent,4096,64,25,9000,0.733728,0.732736,0.737056,,,,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",uniform_hot_tsharp,4096,64,25,1,0.312160,0.311616,0.312576,18.6062,1.3504,53.7456,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",uniform_tsharp_hit,4096,64,25,9000,0.364832,0.362976,0.366560,21.7457,4.4899,45.9861,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",uniform_ssharp_hit,4096,64,25,1000,0.355104,0.352320,0.356192,21.1658,3.9101,47.2459,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",uniform_pair_ts,4096,64,25,10000,1.438592,1.435936,1.442400,42.8734,34.2455,23.3245,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",uniform_miss,4096,64,25,16384,1.324864,1.324288,1.326304,78.9680,61.7123,12.6633,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",divergent_tsharp_hit,4096,64,25,9000,2.535104,2.493760,2.586816,151.1040,107.3704,6.6180,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",divergent_pair_ts,4096,64,25,10000,4.443488,4.436608,4.448288,132.4263,110.5595,7.5514,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",divergent_miss,4096,64,25,16384,22.103456,22.041696,22.271424,1317.4686,1273.7350,0.7590,ok
    10000,65536,15.26,2621444,1.3099,8,device_local,1,"DEVICE_LOCAL",latency_divergent,4096,64,25,9000,4.654784,4.644064,4.665952,277.4467,233.7132,3.6043,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",baseline_uniform,4096,64,25,9000,0.148288,0.147552,0.149504,,,,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",baseline_divergent,4096,64,25,9000,0.573728,0.573088,0.574688,,,,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_hot_tsharp,4096,64,25,1,0.312832,0.312224,0.313536,18.6462,9.8076,53.6301,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_tsharp_hit,4096,64,25,9000,0.407392,0.406304,0.411264,24.2825,15.4438,41.1820,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_ssharp_hit,4096,64,25,1000,0.391424,0.387872,0.396576,23.3307,14.4920,42.8620,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_pair_ts,4096,64,25,10000,0.672768,0.668672,0.690656,20.0500,15.6307,49.8752,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_miss,4096,64,25,16384,1.555360,1.549760,1.571232,92.7067,83.8680,10.7867,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",divergent_tsharp_hit,4096,64,25,9000,2.966720,2.877760,3.016192,176.8303,142.6334,5.6551,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",divergent_pair_ts,4096,64,25,10000,6.768576,6.721792,6.805856,201.7193,184.6209,4.9574,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",divergent_miss,4096,15,9,16384,6.620576,6.608928,6.659200,1683.6995,1649.5027,0.5939,ok
    10000,65536,15.26,2621444,1.3099,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",latency_divergent,4096,64,25,9000,5.288576,5.280096,5.317632,315.2237,281.0268,3.1724,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",baseline_uniform,4096,64,25,9000,0.148064,0.147456,0.148864,,,,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",baseline_divergent,4096,64,25,9000,0.573568,0.572864,0.574208,,,,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_hot_tsharp,4096,64,25,1,0.312224,0.311552,0.312608,18.6100,9.7847,53.7345,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_tsharp_hit,4096,64,25,9000,0.364544,0.363072,0.365920,21.7285,12.9032,46.0225,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_ssharp_hit,4096,64,25,1000,0.354336,0.350496,0.356448,21.1201,12.2948,47.3483,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_pair_ts,4096,64,25,10000,0.638656,0.635264,0.641504,19.0334,14.6208,52.5391,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_miss,4096,64,25,16384,1.332544,1.331680,1.333344,79.4258,70.6005,12.5904,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",divergent_tsharp_hit,4096,64,25,9000,2.543232,2.484832,2.586880,151.5884,117.4011,6.5968,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",divergent_pair_ts,4096,64,25,10000,5.853888,5.800384,5.883264,174.4595,157.3658,5.7320,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",divergent_miss,4096,64,25,16384,22.127072,22.031616,22.305984,1318.8763,1284.6889,0.7582,ok
    10000,65536,15.26,2621444,1.3099,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",latency_divergent,4096,64,25,9000,4.654272,4.647232,4.663296,277.4162,243.2289,3.6047,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",baseline_uniform,4096,64,25,90000,0.147520,0.147104,0.148288,,,,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",baseline_divergent,4096,64,25,90000,0.575008,0.574368,0.575392,,,,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",uniform_hot_tsharp,4096,64,25,1,0.312064,0.311488,0.312608,18.6005,9.8076,53.7621,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",uniform_tsharp_hit,4096,64,25,90000,0.378976,0.378080,0.380640,22.5887,13.7959,44.2699,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",uniform_ssharp_hit,4096,64,25,10000,0.375488,0.374432,0.386496,22.3808,13.5880,44.6811,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",uniform_pair_ts,4096,64,25,100000,0.672160,0.670080,0.675424,20.0319,15.6355,49.9203,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",uniform_miss,4096,64,25,131072,1.332480,1.331872,1.333152,79.4220,70.6291,12.5910,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",divergent_tsharp_hit,4096,64,25,90000,3.919808,3.865472,3.956448,233.6388,199.3656,4.2801,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",divergent_pair_ts,4096,64,25,100000,10.476800,10.382976,10.511392,312.2330,295.0964,3.2027,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",divergent_miss,4096,64,25,131072,35.270784,34.970432,35.660544,2102.3026,2068.0294,0.4757,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",latency_divergent,4096,64,25,90000,8.406432,8.369504,8.485472,501.0624,466.7892,1.9958,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",baseline_uniform,4096,64,25,90000,0.147136,0.146720,0.147936,,,,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",baseline_divergent,4096,64,25,90000,0.583392,0.582592,0.585056,,,,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_hot_tsharp,4096,64,25,1,0.312704,0.312320,0.313216,18.6386,9.8686,53.6521,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_tsharp_hit,4096,64,25,90000,1.017664,1.006592,1.082432,60.6575,51.8875,16.4860,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_ssharp_hit,4096,64,25,10000,0.440832,0.438688,0.444960,26.2756,17.5056,38.0581,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_pair_ts,4096,64,25,100000,1.293504,1.286848,1.304288,38.5494,34.1644,25.9407,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",uniform_miss,4096,64,25,131072,3.916384,3.878560,4.059072,233.4347,224.6647,4.2839,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",divergent_tsharp_hit,4096,64,25,90000,4.435392,4.408992,4.478080,264.3700,229.5971,3.7826,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",divergent_pair_ts,4096,64,25,100000,11.073568,11.034656,11.140128,330.0180,312.6316,3.0301,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",divergent_miss,4096,13,9,131072,9.019424,8.978336,9.102528,2646.6440,2611.8711,0.3778,ok
    100000,524288,19.07,20971524,1.4155,8,host_visible,2,"HOST_VISIBLE|HOST_COHERENT",latency_divergent,4096,18,9,90000,3.079808,3.033888,3.178048,652.6964,617.9235,1.5321,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",baseline_uniform,4096,64,25,90000,0.147648,0.146912,0.148256,,,,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",baseline_divergent,4096,64,25,90000,0.574848,0.574176,0.575488,,,,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_hot_tsharp,4096,64,25,1,0.312128,0.311488,0.312640,18.6043,9.8038,53.7511,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_tsharp_hit,4096,64,25,90000,0.381504,0.379936,0.383360,22.7394,13.9389,43.9765,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_ssharp_hit,4096,64,25,10000,0.377952,0.377184,0.379744,22.5277,13.7272,44.3898,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_pair_ts,4096,64,25,100000,0.671968,0.669952,0.673472,20.0262,15.6260,49.9346,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",uniform_miss,4096,64,25,131072,1.332672,1.331776,1.333472,79.4334,70.6329,12.5892,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",divergent_tsharp_hit,4096,64,25,90000,3.913216,3.871808,3.986176,233.2458,198.9822,4.2873,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",divergent_pair_ts,4096,64,25,100000,10.452416,10.385632,10.507936,311.5063,294.3745,3.2102,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",divergent_miss,4096,64,25,131072,35.218944,35.073568,35.507232,2099.2126,2064.9490,0.4764,ok
    100000,524288,19.07,20971524,1.4155,8,host_device_local,4,"DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT",latency_divergent,4096,64,25,90000,8.430464,8.368512,8.508288,502.4948,468.2312,1.9901,ok
    descriptor-repeat.csv
    # device,NVIDIA GeForce RTX 4060 Laptop GPU,NVIDIA (621.01)
    entries,capacity,load_pct,size_bytes,mean_probes,max_probes,placement,mem_type,flags,scenario,groups,iters,reps,unique_keys,med_ms,min_ms,max_ms,us_per_1m_lk,net_us_per_1m_lk,glk_per_s,timing_status
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",baseline_uniform,4096,64,25,90000,0.146208,0.145408,0.146944,,,,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",baseline_divergent,4096,64,25,90000,0.581920,0.580128,0.583104,,,,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",uniform_hot_tsharp,4096,64,25,1,0.306304,0.305728,0.306688,18.2571,9.5425,54.7731,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",uniform_tsharp_hit,4096,64,25,90000,0.372064,0.370816,0.373504,22.1767,13.4621,45.0923,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",uniform_ssharp_hit,4096,64,25,10000,0.368288,0.367584,0.371232,21.9517,13.2370,45.5546,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",uniform_pair_ts,4096,64,25,100000,0.666112,0.664800,0.668064,19.8517,15.4943,50.3736,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",uniform_miss,4096,64,25,131072,1.306496,1.305696,1.307296,77.8732,69.1586,12.8414,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",divergent_tsharp_hit,4096,64,25,90000,3.925280,3.878240,3.956384,233.9649,199.2798,4.2741,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",divergent_pair_ts,4096,64,25,100000,10.210752,10.120864,10.454336,304.3041,286.9616,3.2862,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",divergent_miss,4096,64,25,131072,32.462560,32.433152,32.532384,1934.9194,1900.2342,0.5168,ok
    100000,524288,19.07,20971524,1.4155,8,device_local,1,"DEVICE_LOCAL",latency_divergent,4096,64,25,90000,8.129600,8.118720,8.142784,484.5619,449.8768,2.0637,ok
  17. requiemsnkrp commented on Nov 22, 2026

    @requiemsnkrp

    done: D3D-408 #3864

  18. shelbykb2 commented on Nov 22, 2026

    @shelbykb2
    Contributor

    done: the arena claim (comment) is two PRs. #3865 caps the GPU address arena at the device's maxBufferSize and maxMemoryAllocationSize (2 GiB each on an RX 6800, AMD 26.11.2; LEONIDA_ARENA_MB=3000 under validation went from 2 errors to none; ctest 146/146). #3875 is the corpus count: 25,865 of 26,503 shaders zero a pointer's high dword, 86,036 pointers, every one a descriptor-table pointer; the count cannot say whether buffers may sit above 4 GiB, and the doc now says that. AI-assisted (Claude Code).

  19. dcastell1 commented on Nov 22, 2026

    @dcastell1
    Contributor

    D3D-329 answered: they are user SGPRs, not system SGPRs — no runtime-supplied constant is needed for the heap base.

    Measured on this machine from my own 1.0.2.1 copy (carve → disassemble → translate → tools/user_sgpr_census.py plus the per-shader descriptor_access in spirv/index.json). Compute stage, 2,689 shaders, 2,684 with user-SGPR metadata:

    shaders
    index the resource heap directly (resource_heap_directly_indexed) 1,471 (55%)
    index the sampler heap directly 993
    table_loads + truncates_table_ptr_high among the 1,471 1,471 / 1,471
    • Lowest pointer SGPR: s4 in 1,460 of the 1,471, s5 in 9, s9 in 2. Nothing below s4 is read as a pointer in any heap-indexing shader (s1 appears in 94 shaders, all of them non-heap-indexing).
    • Every pointer is ptr32_lo: one SGPR per pointer, high half implicit zero, which is the same thing truncates_table_ptr_high says per shader. There is no ptr64_hi anywhere in the compute corpus except one shader.
    • Most common first three pointer SGPRs: s4, s5, s10 (1,082), then s4, s5, s6 (181), s4, s9 (123), s4, s5, s8 (34), s4, s5, s7 (33).
    • Pointer gaps in the whole stage: distance 1 in 3,059 cases, distance 5 in 1,205, distance 2/3 in 73. The distance-1 majority is the "one dword per table" packing; the distance-5 cluster is the second block (s9/s10 onwards).

    Consequence for the layer: the heap base and whatever stride the shader uses arrive as root arguments in user SGPRs starting at s4, so the runtime only has to fill the push-constant/root block it already fills for the other shaders; the translator does not need a new system constant, and the shader-side half of direct heap indexing is already expressible. The remaining unknowns are on the heap side (which slot layout and stride the title writes), not in the shader.

    Method and caveats: this is the compute stage of my copy (gfx1013 disassembly, spirv-val-clean modules); the same census over VS/PS/MS would say whether the graphics stages share the s4 start. No shaders, names or bytes left this machine — only these counts and SGPR numbers.

  20. tylerstraub commented on Nov 22, 2026

    @tylerstraub
    Contributor

    Replying to @requiemsnkrp.

    For D3D-286, the passing runs are worth keeping, but the final diff of #1898 makes it hard to attribute a fix. At main aa2988cc, the test still checks that the device count reaches 1. The first pso67.reset() and unknown67.reset() were already present in 499c608c. #1898 repeated those resets and added resets for unknown and junk, both of which the test had already asserted were null. A second reset of the same cleared pointer cannot release another reference.

    There are conflicting measurements on the same earlier main: the original RTX 4080 SUPER / UHD 770 bisect reports failure at 4eb6155d, while the RTX 4070 check reports 5/5 passes there before #1898. The next discriminating check is a rerun on current main on one of the originally failing hosts. If it still fails, recording the count immediately before and after the first slot-67 reset and at the final assertion would narrow down which reference survives. This update is a source check; the GPU results belong to the linked testers.

    AI-assisted.

  21. kotorvr commented on Nov 22, 2026

    @kotorvr
    Contributor

    Question for the D3D12 layer's owners: what should Close do with three kinds of call that D3D12 accepts but the
    layer can't replay meaningfully? d3d12_close_parity_test (#3933) measured them on WARP without the debug layer.

    family rows WARP Close layer Close today
    DrawInstanced / Dispatch with no pipeline state set (count 0 and non-zero) 4 S_OK E_INVALIDARG
    SetGraphicsRoot32BitConstant / RootConstantBufferView / RootDescriptorTable before any root signature 3 S_OK E_INVALIDARG
    CopyTextureRegion from a placed footprint to a placed footprint 1 S_OK E_INVALIDARG

    Why it matters: one failed list fails the whole ExecuteCommandLists (d3d12_com.cpp, "nothing was submitted"). So,
    for example, a draw recorded after a pipeline the layer refused to create blanks every list in that submission on
    the layer, but not on D3D12.

    What the D3D12 debug layer says about the same calls (WARP, Close still S_OK in every case I could run):

    • Draws and dispatches with no pipeline: an ERROR, saying the runtime substitutes a default no-op pipeline state.
      So on D3D12 these commands are recorded and do nothing.
    • Root constant and root CBV before a root signature: an ERROR, calling the call invalid. SetGraphicsRootDescriptorTable
      with a null handle before a root signature crashed the process under the debug layer, so I have no reading for it.
    • Footprint to footprint: no message at all.

    Two options:

    1. Accept at Close, drop the command at record time, with one log line per list ("draw with no pipeline state
      dropped", and so on). This matches the PC runtime's verdict and, for the draws, what it does (a no-op pipeline),
      and the rest of the submission runs.
    2. Keep refusing, and say so in docs/d3d12_vulkan.md as a deliberate difference from the PC runtime. The parity
      test keeps these 8 rows marked as known differences.

    d3d12_gcl8_test.cpp:89-96 asserts option 2's answer for the first two families today. Until this is decided, the 8
    rows stay marked as known differences in the parity test; whoever implements the choice flips them there.

    AI-assisted.

  22. shelbykb2 commented on Nov 22, 2026

    @shelbykb2
    Contributor

    done: the BuildRaytracingAccelerationStructure inputs claim (comment) is #3944. Top-level builds follow D3D12_ELEMENTS_LAYOUT_ARRAY_OF_POINTERS (pointers resolved when the list is prepared, a bad pointer refuses the list before the GPU reads anything), and the XDXR builder decodes the four 16-bit vertex formats. RX 6800, AMD 26.11.2: ctest 145/145, the 42 existing case files byte-identical.

    finding: the opt-in KHR path (LEONIDA_RT_AS=khr) still reads an ARRAY_OF_POINTERS instance array as the descs themselves. Where: runtime/src/vulkan_replay.h, the KHR BuildAccelerationStructure branch sets arrayOfPointers = VK_FALSE. Why it matters: a top-level build through that layout builds from pointer bytes. It is not a one-line change: the pointer values are console VAs, so each needs heap_base added before the driver can follow it (a gather like #3944's would do). No game files; any GPU with VK_KHR_acceleration_structure. AI-assisted (Claude Code).

  23. NiiRoZz commented on Nov 22, 2026

    @NiiRoZz
    Contributor

    claiming: D3D-410. Replace the four-consecutive-keys grouping in runtime/src/xdxr_build.comp with a parallel Karras/LBVH radix tree over the existing Morton sort, collapsed to four children. I'll measure steps per ray against the current tree on vk_xdxr_build_test and time it on an RDNA2 iGPU and an RTX 5090. #3315 (@zneel) touches the same file, so I'll build on top of it or rebase once it lands. No game files. AI-assisted.

  24. tupacfan04 commented on Nov 22, 2026

    @tupacfan04
    Contributor

    status: D3D-286 (d3d12_compute device-proxy refcount at teardown, from @kapitche's finding) doesn't reproduce on an RTX 5070 (driver 621.24, Windows 11 26300, MSVC 18, RelWithDebInfo). The test passes 3/3 at the reported bad commit 4eb6155d and 5/5 at f847748c (ctest too). It runs the whole way: the CBV checks are 64/64, both dispatches match 64 elements, and the device_proxy_ref_count(device.p) == 1 check passes. The finding failed on an RTX 4080 SUPER and an Intel UHD 770, so it may depend on the machine (driver, or leftover state from an earlier run), and it needs someone who can reproduce it before anyone works on it. I'm not claiming it. AI-assisted (Claude Code).

  25. Exopus-0x65f7ad0 commented on Nov 22, 2026

    @Exopus-0x65f7ad0

    On D3D-286 (d3d12_compute at device_proxy_ref_count(device.p) == 1), a rerun on current main, as asked above:

    • main aa2988cc, RelWithDebInfo, MSVC 14.51 (VS 2026), Vulkan SDK 1.4.363.0 (glslangValidator from it)
    • NVIDIA GeForce RTX 5060 Ti, driver 621.14, Windows 11 (26300); single-GPU host (no iGPU)
    • ctest -C RelWithDebInfo -R "^d3d12_compute$": 20/20 passed. The executable runs in full (exit 0; CBV, buffer SRV and the three dispatches all report matched), so the reference check was reached and held every time.

    This doesn't reproduce the failure, but it doesn't settle it either: the original report came from an RTX 4080 SUPER + UHD 770 host, so two adapters. A check on a host with both an iGPU and a dGPU (or with LEONIDA_VK_DEVICE set to each one) would show whether the surviving reference depends on which adapter the layer picks. I'm not claiming it.

    Unrelated, but seen while reading the test: runtime/test/d3d12_compute_test.cpp ~877-882 resets pso67 and unknown67 twice in a row; the second pair has no effect, as noted above.

    AI-assisted (Claude Code).

  26. Maraco91 commented on Nov 22, 2026

    @Maraco91

    A measurement for D3D-286 (d3d12_compute at device_proxy_ref_count(device.p) == 1), from a GPU family not in the thread yet. Not claiming it.

    NVIDIA RTX 3080 Ti (Ampere), driver 616.56, Windows 11 26200, MSVC 19.42, Windows SDK 10.0.28000.0, RelWithDebInfo:

    Commit d3d12_compute
    4eb6155d, the "bad" end of the original bisect, built from scratch passes, 11 of 11 runs
    f847748c passes (in a full ctest, 132/132)
    aa2988cc (main) passes, 20 of 20 (ctest --repeat until-fail:20)

    At 4eb6155d the run does reach the code in question: the log shows device slot 67 (Xbox DeserializeComputePipelineStateX) first call, both dispatches match, and the EXPECT on the device count (line 515 there) holds. So on this GPU the failure doesn't reproduce even at the commit where it was reported on an RTX 4080 SUPER and a UHD 770, which fits the view that the passing runs on later main don't by themselves show #1898 fixed it. Subgroup sizes here are 32..32.

    One limit: my build has no llvm-mc, so the tests that need translated shaders aren't built; d3d12_compute itself is built and ran as above.

    AI-assisted (Claude Code); no game files.

  27. shelbykb2 commented on Nov 22, 2026

    @shelbykb2
    Contributor

    done: the RDNA2 subgroup-stages claim (comment) is #3982, with the GPU results in #166. RX 6800 (AMD 26.11.2): requiredSubgroupSizeStages is COMPUTE only, and pixel and mesh shaders run 64-wide (measured with a ballot probe, not read from the range). Thanks @AC-Storm-YT for the gfx1036 and RDNA4 data points, which are in the doc row.

    finding: on RDNA2 under AMD's Windows driver a wave32 pixel shader cannot run 32-wide, and all 1,127 wave32 pixel shaders in the corpus contain an instruction whose result can depend on that. Where: runtime/src/subgroup_size.h gives unavailable for a wave32 fragment shader when the stage is not in requiredSubgroupSizeStages; the translator then runs two waves in one 64-wide subgroup. Counts (tools/wave32_pixel_scan.py in #3982, counts only): 1,010 shaders with v_readlane/v_writelane/v_readfirstlane, 146 with v_mbcnt, 105 with s_bcnt1/s_ff1 of a lane mask, and all 1,127 with a branch on EXEC/VCC or an SCC vote (117 have only those). Seen on hardware: ps_bitmask_perm reads v_mbcnt_lo = 32 in the upper 32 lanes (its check judges lanes 0-31, so it passes). What it would need: a translator mode that treats a 64-wide fragment subgroup as two independent 32-lane waves (lane ids and v_mbcnt modulo 32, masks and votes per half, v_readfirstlane per half), the mirror of --wave64-emulate. Needs an RDNA2 card on Windows to test, or any GPU whose fragment stage runs 64-wide; no game files for the fixtures. AI-assisted (Claude Code).

  28. catrix-rgb commented on Nov 22, 2026

    @catrix-rgb

    claiming: D3D-286

  29. thatirishguyyy commented on Nov 22, 2026

    @thatirishguyyy

    @LloydNicholson @zneel, are either of you already working on the D3D12 DispatchMesh fallback for devices without VK_EXT_mesh_shader? If it’s available, would you prefer it as a follow-up to #1712 or developed alongside the existing work?

    I tested #2528 on aa2988c and got 43/43 focused tests passing using AI and some local files. In a local Vulkan harness adaptation, all 24 synthetic workgroups matched on an integrated Radeon under a simulated 128-byte push-constant limit. I can reuse that fixture for D3D12 runtime coverage.

  30. abilliontokens commented on Nov 23, 2026

    @abilliontokens
    Contributor

    claiming: D3D-441 — DMA list type value + compute/copy console list IIDs from the package DLLs' call sites (claim of record in #4084). Builds on @Kam471's #3520 and @Pipodi's note above: since the exports can't carry the four IIDs, I'm measuring the call-site side — every GUID constant the 16 shipped modules' code references (known vs. unknown), unknowns examined at their call sites, plus every command-list/queue creation shape for a type immediate. Values only; negative gets recorded with what was searched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions