Preserve physical window aliases across remaps, order console list values,
and replay bounded indirect graphics with captured draw state. Coordinate
pipeline lifetime, texture refresh and queue teardown. Add synthetic CPU
and GPU coverage for the integrated paths.
Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-authored-by: ivanepsilondelta <264061546+ivanepsilondelta@users.noreply.github.com>
Every AS resource's GPU VA must be the driver's vkGetAccelerationStructureDeviceAddressKHR value for the structure
behind it; the test checks that for the BLAS and both TLAS resources.
Envyre's review of old upstream PR 8414: the branch that takes the driver's address when it differs only ran on such
a driver. The test creates a second device whose get_instance_proc hands out a
vkGetAccelerationStructureDeviceAddressKHR that answers the real address plus 256 MiB (the device's existing
function-lookup hook, no change to the runtime), creates one AS resource on it and checks that its GPU VA is the
driver's address, that the arena address still names the structure, and that releasing the resource forgets both.
No builds run on that device.
The checks sit right after the TLAS lookups, before the CLONE/COMPACT section main has added since.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only CPU-writable heaps expose a host pointer to replay, so DEFAULT and READBACK pointer lists are refused as unsupported instead of being read from possibly stale mapped bytes. Reuse completed staging buffers and write translated addresses directly. Adds a GPU-copy-produced placed-DEFAULT regression with a negative control.
AI-assisted (OpenCode)
KHR TLAS builds hardcoded arrayOfPointers = VK_FALSE and passed the guest's console-VA pointer list straight to Vulkan. Carry DescsLayout into the recorded build, validate each pointer, stage a copy with heap_base added into a device-addressable buffer, and use it as the build input. The guest input is not modified and GPU-written pointer lists are refused. Adds ARRAY and ARRAY_OF_POINTERS RayQuery coverage plus a null-entry refusal check.
The runtime's standalone device (d3d12_vulkan_device.cpp) still took
"the first usable device, replaced by every later discrete GPU". #915
fixed that rule in the test harnesses because Mesa's Dozen (Microsoft
vendor 0x1414, "Microsoft Direct3D12 (<gpu>)") reports a discrete GPU, so
on a PC with the OpenCL/OpenGL/Vulkan Compatibility Pack the runtime
could run on the Vulkan-on-D3D12 wrapper while the tests used the native
driver. Even without Dozen, on a two-dGPU PC the runtime took the last
GPU and vk_test_device.h the first.
- runtime/src/vulkan_device_filter.h: vulkan_device_rank() (native over
Microsoft's layers, then discrete > integrated > virtual > CPU), with
the device type as an int so the header stays Vulkan-free.
- d3d12_vulkan_device.cpp: the first usable device of the highest rank.
- vk_device_pick.h: device_rank forwards to it (static_assert on the
VkPhysicalDeviceType values).
- d3d12_indirect_rt_test, dxgi_swapchain_test, vk_image_fuzz,
vk_sampler_test had the old loop and ignored LEONIDA_VK_DEVICE: they
now filter and rank like the rest, and an unmatched filter fails
instead of skipping.
- vulkan_device_filter_test: the rank order; docs/testing.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit removed 32 functions that the draw and RayQuery blocks
call. Those blocks are only compiled when glslangValidator generates the test
shaders, so without it they looked unused. Restore them and declare them
[[maybe_unused]] instead: C4189 goes away when the blocks are compiled out,
and nothing changes when they are compiled in.
The DF block loaded 35 Vulkan device functions and the test calls three
(vkGetDeviceQueue, vkDeviceWaitIdle, vkDestroyDevice). MSVC 14.52 reports each
unused one as C4189 under /W4.