Repository navigation
Conversation
…slot 14) - d3d12_xs_device.cpp called rt::d3d12::create_console_descriptor_heap, which is neither declared there nor linked into the tests that build the file without the Vulkan layer. It now goes through a handler (set_console_descriptor_heap_handler), as slot 133 does. - The handler is opt-in. The slot reads 16 bytes past a PC descriptor and takes any non-zero word there for a console address. Registered by default, that made d3d12_f16_halves crash. - create_console_descriptor_heap used the private Device::identity() and passed a const DeviceState to DescriptorHeap; Device now makes the heap itself. - d3d12_console_descriptor_heap_test: Ref<T> gets operator->, create_device_proxy gets its IID, and the test registers the handler. It still fails on its own check (the proxy's CPU heap start is the host pointer, not the console address). AI-assisted (Claude Code). Windows 11, MSVC 14.44, RTX 4080 SUPER. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
What happens The MSVC build fails in the slot-14 descriptor heap changes with C3083/C2039/C3861, C2665 and C2248. Independent reproduction of the build regression addressed by this PR. Commit First parent System Windows 10 22H2 (19045.6466), Core i7-7700K, RTX 5070, NVIDIA 610.88, CPython 3.14, MSVC 19.51.36256, Windows SDK 10.0.26100.0, Vulkan-Headers 1.4.363. Ninja Release with static CRT, Vulkan enabled and SDL3 disabled. LLVM and the Vulkan validation layer were not used. Where runtime Command and steps Configure the runtime with CMake and Ninja on native Windows using the same flags for each tree. Build the two targets below on the first parent. Repeat after applying the merge's first-parent diff, or on the later snapshot above. Output Locations are from the merge snapshot. They move to 1606 and 9995–9996 in the later snapshot. Public source and synthetic tests only. This result identifies the merge that introduced the build break; it does not test the fix in this PR. AI-assisted. |
|
Follow-up to my earlier build regression report. I built unmodified Native Windows 10 22H2 (19045.6466), RTX 5070 / NVIDIA 610.88, MSVC 19.51.36256, Windows SDK 10.0.26100, Vulkan-Headers 1.4.363, Ninja Release/static CRT. This is a verification of the current main tree. It did not build the draft PR head. Synthetic tests only. AI-assisted. |
|
Thank you for this fix. The diagnosis was right, and current
The Runtime AI-assisted (Claude Code, Claude Opus 5.5). |
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):main2d53a80 doesn't build the runtime on Windows/MSVC. This fixes the#9576half; the#9515half (acphal.cppstruct sizes) is left alone.d3d12_xs_device.cppcalledrt::d3d12::create_console_descriptor_heap, which isn't declared there and isn't linked into the tests that build the file without the Vulkan layer (device_proxy_test,bvh_builder_test, …). It now goes through a handler,set_console_descriptor_heap_handler, like slot 133'sset_placed_at_va_handler.d3d12_f16_halvescrashed, because that stack word held garbage.create_console_descriptor_heapused the privateDevice::identity()and passed aconst DeviceState&toDescriptorHeap.Device::new_console_descriptor_heapnow makes the heap.Ref<T>getsoperator->,create_device_proxygets its IID, and the test registers the handler.Still open:
d3d12_console_descriptor_heapfails on its own check:proxy CPU heap start mismatch: got <host pointer> want 0x556677880000. The console-address feature needs more work. This change only makes the build work again without changing behaviour for PC callers.The SHAPE structs in
acphal.cppare 60 and 28 bytes as written, againststatic_asserts of 64 and 32, so each is one dword short of the GDK layout. Every compiler fails on that, not just MSVC. It needs the#9515author.Tested: Windows 11, MSVC 14.44, Ninja RelWithDebInfo, RTX 4080 SUPER (driver 621.24). With
acphal.cppstill failing, every other target builds.device_proxy,device_proxy_traceandd3d12_f16_halvespass;fsr_dispatch,bvh_builderandd3d12_first_lightskip.root_sigfails two all-zero-checksum cases, as it does on main without this change (unrelated).AI-assisted (Claude Code).
🤖 Generated with Claude Code