Repository navigation
Conversation
…ting vk_bindless_test
|
Independent NVIDIA check of 18a1ef23 on 3faac557. Windows 11, RTX 3080 Ti / 621.35, MSVC 19.44.35230, Vulkan SDK 1.4.363.0. The stock |
|
Integration check: #5427 ( On #5427 alone, both the atomic and texture cases produced correct readbacks in the 128-byte push-constant fallback, but exited 1: Khronos validation reported six I combined the two exact PR heads locally (clean merge tree, no branch pushed), rebuilt AI assistance was used. No game data was used. — LocalFirst-AI |
|
Tested
TEST-1199 data point (not claiming): on the 610M,
AI-assisted (Claude Code). Synthetic fixtures only, no game data. |
Kam471
left a comment
There was a problem hiding this comment.
Head: 18a1ef23de997e72ed1cd0aa3c5ff145f947a846
Windows 11, RTX 5070 Ti, Vulkan 1.4.363; built vk_bindless_test (plus vk_compute_test/vk_store_test/vk_harness/vk_texture_test for the runner).
LEONIDA_VK_VALIDATION=1 VK_LOADER_LAYERS_DISABLE=~implicit~ LLVM_MC='wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc' python -I scripts/run_gpu_tests.py --build runtime/build --filter ps_imgatomic-> 1/1 passed, exit 0, 0 validation errors (only the loader'sOBS_HOOKdisable note).--filter ps_texunder the same validation settings -> 10/10 passed (the first attempt failed only becausevk_texture_test.exewas not built; after building it, all pass).git diff --check main...HEAD-> clean
The atomic block now destroys its 11 handles, leaves the loop and lets the shared teardown destroy the device before the validation count is read; no double-destroy remains in the post-loop path.
Verdict: LGTM.
|
Tested
Synthetic fixtures only, no game files. AI-assisted. |
|
Tested 18a1ef2 on Intel UHD Graphics 770, driver 32.0.101.7088, with the Khronos validation layer inserted by the loader: run_gpu_tests.py --filter ps_imgatomic passes 1/1, and the direct vk_bindless_test run prints "ps_imgatomic: 0 of 256 texels wrong (2D umax/umin/or 8x8 each, 3D umax 4x4x4); 0 of 4096 render-target pixels wrong (odd columns discarded)" with 0 "Validation Error" lines in stderr. --filter ps_tex gives 6/10 passed, 4 skipped: ps_texoff ("unsupported: VK_KHR_maintenance8") and ps_texture_grad_cl_a16 ("unsupported: shaderResourceMinLod") among the skips. The run without validation, the other validation modes and the control on the tree before the fix were not run. AI-assisted. |
|
Tested 18a1ef2 on Windows 11, AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32029.2010: pass
AI-assisted (Claude Code). |
Summary
Fixes an early return inside
atomic_mode(ps_imgatomic) inruntime/test/vk_bindless_test.cppthat exited directly out of the configuration loop before destroying any Vulkan resources,BindlessSet,VkDevice,VkDebugUtilsMessengerEXT, orVkInstance.Problem
In
runtime/test/vk_bindless_test.cpp(previously lines 871-877):atomic_modereturned right aftervkDeviceWaitIdle(dev), skipping:atomic_mode(atomic_readbackVkBuffer, 4 atomicVkImageViews, 4 atomicVkImages,pipeline,pipeline_layout).BindlessSet::~BindlessSet()destruction at loop scope exit.vkDestroyDevice/vkDestroyDebugUtilsMessengerEXT/vkDestroyInstance(lines 1049-1066).VK_LAYER_KHRONOS_validationnever observed device/object teardown duringps_imgatomic, deferring live driver/layer handle teardown to process exit (DllMain(DLL_PROCESS_DETACH)on Windows — relevant to TEST-1199).Fix (
18a1ef23)atomic_modeafter destroyingatomic_readback,views[0..3],images[0..3],pipeline, andpipeline_layout, lettingBindlessSet::~BindlessSet()and the shared teardown path (lines 1049-1066) destroy all device/instance objects and run fullVK_LAYER_KHRONOS_validationteardown checks before reportingps_imgatomic's exit status.runtime/test/vk_bindless_test.cpp.Verification (AMD Radeon RX 6900 XT, gfx1030, AMD 26.11.2 / 2.0.353, Windows 11 x64, Vulkan SDK 1.4.363.1, MSVC VS2026 RelWithDebInfo)
vkDestroyDevicewithout destroying the 11atomic_modehandles,LEONIDA_VK_VALIDATION=1):python -I -B scripts/run_gpu_tests.py --build runtime/build --filter ps_imgatomicfailed withVUID-vkDestroyDevice-device-05137(exit 1,0/1 passed), provingatomic_modepreviously masked live-handle teardown leaks from the validation layer.18a1ef23):cmake --build runtime/build --target vk_bindless_test— 0 errors, 0 warnings.scripts/run_gpu_tests.py --build runtime/build --filter ps_imgatomic(VK_LOADER_LAYERS_DISABLE=~implicit~):LEONIDA_VK_VALIDATION=0: 1/1 passed (0 of 256 texels wrong; 0 of 4096 render-target pixels wrong).LEONIDA_VK_VALIDATION=1: 1/1 passed (0 validation errors).scripts/run_gpu_tests.py --build runtime/build --filter ps_tex: 10/10 passed under bothLEONIDA_VK_VALIDATION=0andLEONIDA_VK_VALIDATION=1.vk_bindless_test.exe vs_ids.spv ps_imgatomic.spvwithLEONIDA_VK_VALIDATION=1andVK_LOADER_LAYERS_DISABLE=~implicit~:0.14s, 0 validation errors.VK_KHRONOS_VALIDATION_VALIDATE_SYNC=true): exit 0 in0.13s, 0 validation errors.VK_KHRONOS_VALIDATION_GPUAV_ENABLE=true): exit 0 in0.43s, 0 validation errors.VK_KHRONOS_VALIDATION_VALIDATE_BEST_PRACTICES=true): exit 0 in0.13s, 0 validation errors.python -I -B tests/test_ctest_registration.py(4/4 OK),scripts/check_no_game_data.py(exit 0),git diff --check(exit 0),CRLF=0,git merge-tree --write-tree upstream/main HEAD(1d5c88a55111f2fcbd44fc2bdf6e3643a416814b, exit 0).AI-assisted (Gemini, Antigravity); no copyrighted game files or dumps used.