Repository navigation
Conversation
b1e1853 to
fb663cb
Compare
|
Rebased onto The change itself is unchanged and still verified on this machine ( Written with an AI assistant. |
|
I exercised the firing direction on
Win64 clang-cl Release ( |
fb663cb to
ee32e67
Compare
observe() reports VK_ERROR_DEVICE_LOST and nothing else, so a swapchain the surface refuses used to disappear at the call site and surface later as "present failed (VkResult -11)", which names the symptom and not the cause. The request is in hand at the failure point: name the format, colour space, extent, present mode, image count and composite alpha. Verified here: the line does not fire on this machine, because the swapchain is created and the -11 comes from present()'s own format refusal further down (src/vulkan_present.h:283) - which is exactly the kind of confusion the line exists to prevent. Written with an AI assistant.
ee32e67 to
ff09d1e
Compare
|
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime ( |
observe()inruntime/src/vulkan_device_fault.hreportsVK_ERROR_DEVICE_LOSTand nothing else:Every other failure of an observed operation is dropped. At the swapchain call site that means a refused
vkCreateSwapchainKHRvanishes,rebuild()returnsfalse, and the next thing anyone sees iswhich names the symptom and not the cause - I lost three rounds to exactly that while chasing a
xbox_presentfailure on this machine.The change
One log line at the failure point, where
VkSwapchainCreateInfoKHRis still in hand: theVkResult, format, colour space, extent, present mode, image count and composite alpha. Behaviour is unchanged - the call still drops the old swapchain and returnsfalsefor the same reason, with the same comment explaining the VUID.Tested
cmake --build runtime/build-ninja --target xbox_present_testbuilds clean;-11comes frompresent()'s own deliberate refusal (runtime/src/vulkan_present.h:283, multisampled / non-blit format / noVK_FORMAT_FEATURE_BLIT_SRC_BIT);vkGetPhysicalDeviceFormatPropertieson both GPUs here reportsBLIT_SRCforR8G8B8A8_UNORM,B8G8R8A8_UNORM,R8G8B8A8_SRGBandR16G16B16A16_SFLOAT, so this machine's refusal is about a specific source in that test rather than the environment.So the line is untested in the firing direction, and I say so: what I verified is that it compiles, that it costs nothing on the working path, and that it would have answered the question I could not answer.
Why it is worth having even so
A layer that fails for a reason and prints a different one is a layer that makes every bug report harder. The next person to see
present failed (VkResult -11)should be able to tell whether the swapchain was refused before anything was presented.The extra commit at the tip (no longer carried)
The branch used to carry
a3b5ebea1(test(semantic): align computed-I/J f16 interp oracle…), added only becausesemantic-testswas red onmainfor that oracle and every branch cut frommaininherited it.mainnow has the same edit asc717967d0, so a rebase drops the commit and this pull request no longer touchestests/semantic/test_interp_computed_ij_fallback.py- the diff is only what this change actually needs.AI-assisted: yes - DeepSeek v4.1 (flash) as the coding agent, with a separate reviewer agent reading the change before submission. Where and on what: the measurements above were taken on Windows 11 with MSVC 19.44.35226 on an RTX 4090 (NVIDIA driver 621.24) where a C++ or GPU path is involved; Python and docs cases need none of it.
Written with an AI assistant.