d3d12_private_data_test runs the same 672 GetPrivateData / SetPrivateData /
SetPrivateDataInterface / SetName steps on the device, a fence, a buffer, a
command allocator and a descriptor heap of the Vulkan-backed device and of the
host runtime, and compares every HRESULT, returned size, byte and reference
count. On main 130 of them differed (RTX 3060, driver 610.88), the same four
rules on every object:
- SetPrivateData with null data removes the entry whatever the size: S_OK
when there was one, S_FALSE when there wasn't. The layer answered
E_INVALIDARG for a nonzero size and kept the entry, and S_OK for a missing
one.
- Zero bytes with data keep an empty entry (size 0); the layer removed it.
- SetPrivateDataInterface(null) releases the interface and keeps a
pointer-sized entry that reads back as null; the layer removed it.
- SetName is not readable through GetPrivateData: the host sets neither
WKPDID_D3DDebugObjectNameW nor the narrow key. The layer stored the name
there; it now keeps it apart (debug_name()).
SetName(nullptr) faults in the host runtime; the layer still clears the name,
and the test reports those 5 steps as not compared.
d3d12_debug_markers_test's private-data checks expected the old answers and
now expect the host's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts in d3d12_com.cpp and d3d12_vulkan_device_test.cpp: both sides kept.
d3d12_debug_markers_test recorded two lists into one allocator at once, which
this branch rejects as the PC runtime does; its second list now has its own
allocator. The device-removed wording in the docs and the test matches main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d3d12_debug_markers_test, d3d12_fence_timing_test, d3d12_node_mask_test
and dxgi_swapchain_test were built but had no add_test, so ctest (and the
wine job's test list) never ran them; all four pass on an RTX 5070. Each
now exits 77 when there is no Vulkan GPU or driver, as the other GPU tests
do (dxgi_swapchain's SKIP branches exited 0, and with no driver at all it
failed at vkCreateInstance), and is registered with SKIP_RETURN_CODE 77.
A buffer too small for an entry now gets the size to retry with, for byte
and interface entries alike, as vkd3d-proton's private store does. The
test retries with the returned size for both kinds. Review on #419.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SetMarker/BeginEvent/EndEvent on command lists are recorded in the IR
(DebugMarker) and replayed as vkCmd*DebugUtilsLabelEXT; on queues they
call vkQueue*DebugUtilsLabelEXT under the submit lock. Labels are used
only when the instance enabled VK_EXT_debug_utils
(VulkanDeviceInfo::debug_utils; the standalone device enables it when
the loader lists it); otherwise the calls are no-ops. Events may span
the lists of one ExecuteCommandLists; an unmatched end is dropped and
labels left open are ended before the command buffer ends, so Vulkan's
begin/end rule always holds. Metadata 0/1 strings become UTF-8 labels;
a PIX3 blob (2) gets a fixed label (open question 21).
SetPrivateDataInterface holds a reference until replaced, removed or
the object dies, and GetPrivateData hands it back AddRef'd. SetName
stores WKPDID_D3DDebugObjectNameW. Both live in the shared Object base,
so every object of the Vulkan device has them.
d3d12_debug_markers_test checks the exact label calls through a
recording vkGetInstanceProcAddr, the no-extension path, and private
data on the device, queue, allocator, list, heap, resource and fence.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>