upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/d3d12_method_variants_test.cpp
AgeCommit message (Collapse)Author
12 daysTests: check Microsoft's recorded answers where Wine and Proton have no ↵Kevin Morales
reference Under Wine the host D3D12 is vkd3d and under Proton vkd3d-proton, and Proton's EnumWarpAdapter returns the hardware adapter, so the host and WARP references six tests compare with are not Microsoft's runtime: d3d12_r9g9b9e5_uav, d3d12_method_variants and d3d12_sampler2 fail under Proton (the last two crash inside vkd3d-proton), d3d12_fence_timing and d3d12_subresource_copy under both, d3d12_private_data under Wine. The six skip the host comparison there with hostwine::host_is_wine() and check the layer against Microsoft's answers recorded in the test instead, so Wine and Proton still check values. d3d12_r9g9b9e5_uav gets WARP's words for its six clear cases, from the packing rule in docs/d3d12_vulkan.md. d3d12_subresource_copy and d3d12_private_data get answer tables, taken from the records that Windows runs on NVIDIA and AMD compared with Microsoft's runtime with no mismatches; LEONIDA_D3D49_DUMP=1 prints the host's record on Windows to regenerate them. The other three already had recorded answers. Windows still compares with the live runtime too.
13 daysd3d12: validate Device10 barrier layouts, clear values and placed/reserved descsWasler
13 daysMerge origin/main into d3d90-castable-placed (resolve #1083 conflicts)abilliontokens
Keep-both resolutions per #313's conflict analysis: main's ExecuteIndirect / acceleration-structure / debug-marker / depth24 / node-mask features alongside the stack's arena, compute and draw paths. Main's indirect and AS offsets gain the arena's buffer_offset / heap_base compensation; AS resources on default heaps get their GENERIC structure over the arena range. Reset clears stencil_ref_set_ next to reset_state, and OMSetStencilRef sets it. README takes main's (the crypto-token lines stay deleted).
13 daysd3d12: accept castable formats on committed texturesAyinaki
Keep the creation-time castable list on the resource, reject an SRV format that is neither the resource format nor listed, and allow listed same-size cross-family casts such as R8G8B8A8_UINT to R32_UINT.
13 daysTests: run the eight unregistered D3D12 GPU tests under ctestsanuk369
d3d12_clear, d3d12_com, d3d12_descriptor, d3d12_method_variants, d3d12_resource_desc, d3d12_sampler2, d3d12_typeless_rtv and d3d12_uav_clear were built but never added with add_test, so ctest and CI never ran them. Each now exits 77 when there is no Vulkan GPU (DeviceStatus::unavailable), as d3d12_vulkan_device_test does, and is registered with SKIP_RETURN_CODE 77. (cherry picked from commit 2af37e5da368dd130ba23db385e812635cb1a768)
13 daysSupport R10G10B10_XR_BIAS_A2_UNORM texturesAyinaki
Map XR_BIAS to the bit-compatible A2B10G10R10 UNORM Vulkan format, report only the 2D and cast-within-bit-layout support the layer provides, and refuse the mip, MSAA and 3D cases the PC runtime refuses. Test creation, allocation, footprints and the resource-method variants.
14 daysruntime: the 1/2/3 method variants on the Vulkan device (D3D-28, part 1)kotorvr
CreateCommittedResource1/2/3, CreateCommandQueue1 and GetCopyableFootprints1 as thin wrappers over the existing methods. D3D12_RESOURCE_DESC1 drops to D3D12_RESOURCE_DESC; the initial state or barrier layout is unused, because new textures start UNDEFINED and move on first use. The newer arguments are answered as the PC runtime answers them (measured on an RTX 4090, driver 621.14): - a protected resource session: E_INVALIDARG (no session support reported); - a sampler-feedback mip region: E_INVALIDARG on textures, ignored on buffers; GetCopyableFootprints1 returns its failure answer for such a texture; - a buffer's initial layout other than UNDEFINED: E_INVALIDARG; - a castable count with a null list: no list; - a castable list: E_INVALIDARG, since it needs RelaxedFormatCastingSupported, which the layer does not report (D3D12_OPTIONS12 is unanswered); - CreateCommandQueue1's creator ID: ignored. d3d12_method_variants_test compares each variant with its base method, runs the edge cases and, when the host has a D3D12 device, compares each answer with the PC runtime live. Thanks to ezwinxdlmao for the probe notes in #156. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>