Repository navigation
runtime: remove duplicate bind_image call in write_image_descriptor - #1749
ItsNotRexed merged 1 commit into
Conversation
|
Code read only (AI-assisted); not built and not run on a GPU.
|
|
Tested 41ceb01 on RTX 4070 SUPER (NVIDIA 616.64) and Intel UHD 770 (101.7092), Windows 11, MSVC 19.44: pass
One non-blocking note on the new regression check: it also passes without the fix. With this PR's test and the device code from the merge base, |
|
Tested 41ceb01 on RTX 5090, NVIDIA 621.24, Windows 11: pass. Built the runtime from this tree and ran |
0xTehuti
left a comment
There was a problem hiding this comment.
Tested 41ceb01 on NVIDIA GeForce RTX 2070 SUPER, driver 595.79, Windows 11: pass
Environment & Toolchain
- OS: Windows 11 Pro x64 (Build 26100)
- GPU: NVIDIA GeForce RTX 2070 SUPER (Driver 595.79, Vulkan 1.4.329)
- Compiler: MSVC 19.44.35225.0 (Visual Studio 2022 Community)
- SDK & Build System: Windows SDK 10.0.26100.0, Ninja 1.13.0, CMake 4.2.3, Vulkan SDK 1.4.363 / headers 1.4.369
Test Results
- Python Verification: Bytecode syntax check (
python -m compileall -q make_game.py tools tests) and CLI smoke test (python -I make_game.py --help) passed cleanly. - CTest Suite: 94/94 passing (100% pass rate; 5 skipped, 1 disabled) on
RelWithDebInfobuild. d3d12_descriptor_test.exe: Passed (exit 0). The cross-family castable SRV regression check (R8G8B8A8_UINT->R32_UINTwithCreateCommittedResource3) registered cleanly in bindless hash lookup with 0 validation messages and without spuriousno Vulkan view format for the GFX10 format of a view: 20log output.d3d12_vulkan_device_test.exe: Passed (exit 0). All clears, zero-filled first use, texture/buffer copies, and proxy lookups matched.
Zero game data used. AI-assisted testing and review.
|
Tested 41ceb01 on Windows 11 (26200), MSVC 19.4x (VS 2022 Build Tools), Ninja RelWithDebInfo: pass on both GPUs of a two-GPU PC.
No game files. AI-assisted check (Claude Code), Vonsek3. |
|
Tested 41ceb01 on RTX 4070 SUPER, driver 610.47, Windows 11 (MSVC 17.14, Vulkan SDK 1.4.363): full Code read: looks right. Before, the first |
|
Tested 41ceb01 on Intel(R) UHD Graphics (Tiger Lake (Xe-LP) iGPU 0x9a78, subgroup 8..32, no mesh), driver 32.0.101.7088, Windows 11, MSVC 14.44: pass
AI-assisted (GLM, operated by the account owner). |
What and why
Device::write_image_descriptor()(runtime/shims/d3d12_vulkan_device.cpp) currently callsstate_.bind_image(...)twice in a row:Because the first call hardcodes
allow_channel_cast = falseinstead ofresource.has_view_format_list():R8G8B8A8_UINTcreated withCreateCommittedResource3castable list{R8G8B8A8_UINT, R32_UINT}and viewed asR32_UINT) failg::vulkan_view_format(..., /*allow_channel_cast=*/false)and log a spurious[rt] d3d12: no Vulkan view format for the GFX10 format of a view: 20on the first call before succeeding on the second.descriptor_mutexand probesimage_entriestwice perCreateShaderResourceView/CreateUnorderedAccessView.This PR collapses the two calls into a single
state_.bind_image(...)call passingresource.has_view_format_list(), and adds a regression check ind3d12_descriptor_testfor a cross-family castableR8G8B8A8_UINT→R32_UINTSRV.Claim: #1548 (comment)
Tested
d3d12_descriptor_test.exewithLEONIDA_VK_VALIDATION=1: passed with 0 Vulkan validation errors and no spuriousno Vulkan view formatlog line.