Repository navigation
TEST-468/469: GPU test tools request shaderInt64 only when a module declares Int64; vk_bindless_test honours LEONIDA_VK_DEVICE - #2647
Conversation
|
Independent Windows 11 / RTX 5070 check at
The fixtures exercised LDS compute, heap-backed fragment reads, sampled textures, typed image load/store, and bindless lookup. The address-pair translations came from #2463 (
|
|
Tested
All 190 translated modules passed |
|
Tested GPUs:
Build & CPU checks:
Direct
Not tested here: a device lacking Synthetic tests only; no game files. AI-assisted. |
|
Independent Windows dual-GPU validation for TEST-469 (AI-assisted). I built
|
|
Tested
No game files. AI-assisted. |
|
Verified f834525 on CachyOS Linux, Python 3.14.10, gcc 16.2.1, CMake 4.5.1.
Not run: any GPU execution (another worker owns the GPU), so the exit-77 paths and the LEONIDA_VK_DEVICE choice are unverified at runtime. Note: No issues found. |
f834525 to
8a833a6
Compare
|
Rebased on Retested on Apple M4 (MoltenVK 1.4.2):
AI-assisted. |
It includes no Vulkan header, but it was registered inside if(TARGET Vulkan::Headers), so a build without Vulkan headers skipped a CPU-only test. Noted by TurboSosiska304 on ItsNotRexed#2647. Checked with the Vulkan package disabled: the test builds and passes, while vk_device_pick is not configured. AI-assisted.
|
@TurboSosiska304 thanks, good catch on the CMake block. Fixed in
AI-assisted. |
|
Windows 11 integration check with On RTX 4070 Ti / 621.24 with Vulkan validation active, the FP64 fixture returned |
|
@matheuskshn thanks for the integration run with #2395, and for checking the 77 paths on SwiftShader. Both orders work:
AI-assisted. |
|
Tested
No game files. AI-assisted (Claude Code). |
It includes no Vulkan header, but it was registered inside if(TARGET Vulkan::Headers), so a build without Vulkan headers skipped a CPU-only test. Noted by TurboSosiska304 on ItsNotRexed#2647. Checked with the Vulkan package disabled: the test builds and passes, while vk_device_pick is not configured. AI-assisted.
a843887 to
c21d6db
Compare
|
Rebased onto
Other files:
Re-tested on Apple M4 / MoltenVK 1.4.2:
@crastinator thanks for the RX 6700 XT run on No game data. AI-assisted. |
…IDA_VK_DEVICE in vk_bindless_test TEST-468: vk_compute_test and vk_texture_test asked for shaderInt64 unconditionally, and vk_store_test, vk_harness (VKH_HEAP, mesh compute) and vk_bindless_test required it before running anything. With SHADER-423 most memory shaders no longer declare Int64, but the tools still could not run them on a device without the feature (Intel UHD/Arc). They now read the modules' leading OpCapability run first (runtime/test/spirv_capability.h, shared with vk_texture_test's MinLod check), enable shaderInt64 only when a stage declares Int64 or Int64Atomics, and exit 77 with the reason when the device lacks it. spirv_capability_test covers the scan without a GPU. TEST-469: vk_bindless_test ranked every Vulkan 1.2 device and ignored LEONIDA_VK_DEVICE, so a run meant for one GPU took another; it now skips devices the filter excludes, as pick_device does, and says when the filter matched nothing. run_gpu_tests.py reported vk_store_test's 77 for cs_imgstore, cs_imgload and cs_imgload_d16 as FAIL with the last output line; it is now a SKIP quoting the "unsupported:" line. Found by richardsenra. AI-assisted.
… filter fails As the other tools do (vk_compute_test, vk_store_test, vk_harness): collect the Vulkan 1.2 devices and let pick_device apply the rank and LEONIDA_VK_DEVICE. A filter that matches nothing now exits 1 with report_no_device's message instead of 77, so a mistyped GPU name can't pass as a skipped test. Without a filter, no Vulkan 1.2 device is still 77. The approach is c4k3ss's, from ItsNotRexed#2657. AI-assisted.
It includes no Vulkan header, but it was registered inside if(TARGET Vulkan::Headers), so a build without Vulkan headers skipped a CPU-only test. Noted by TurboSosiska304 on ItsNotRexed#2647. Checked with the Vulkan package disabled: the test builds and passes, while vk_device_pick is not configured. AI-assisted.
c21d6db to
2911f68
Compare
|
Rebased again, onto How it's resolved: this PR's version stays: the modules decide. Its loop already reads every module the harness loads in that mode:
Main's other Re-tested on Apple M4 / MoltenVK 1.4.2. Whole
With Also run: ctest No game data. AI-assisted. |
|
Tested 2911f68 on NVIDIA RTX 4080, driver 610.88, Windows 11: pass This is the head rebased on
This card has Note: #4262 also edits AI-assisted. |
|
Tested
With both ICDs and No game files. AI-assisted (Claude Code). |
TEST-468 and TEST-469 (claim), from @richardsenra's finding. Works on
mainalone. With #2463 (SHADER-423) it lets the Int64-free modules run on devices withoutshaderInt64.What
TEST-468: request
shaderInt64only for modules that declare it.vk_compute_testandvk_texture_testasked for the feature unconditionally.vk_store_test,vk_harness(withVKH_HEAP/VKH_MESH_COMPUTE) andvk_bindless_testexited 77 without it before running anything.OpCapabilityrun before creating the device.shaderInt64only when a stage declaresInt64orInt64Atomics(which implicitly declares it).runtime/test/spirv_capability.h.vk_texture_test'sMinLodcheck moved onto it.spirv_capability_test(ctestspirv_capability, CPU only) checks it with hand-built word lists:Int64andInt64Atomicsneed the feature;OpMemoryModelis ignored;TEST-469: device selection and unsupported reporting.
vk_bindless_testranked every Vulkan 1.2 device and ignoredLEONIDA_VK_DEVICE. It now chooses throughpick_device, as the other tools do, and a filter that matches nothing exits 1 withreport_no_device's message (the approach from Tests: shaderInt64 only for modules that declare Int64; LEONIDA_VK_DEVICE in vk_bindless_test #2657).run_gpu_tests.pyreportedvk_store_test's 77 forcs_imgstore,cs_imgloadandcs_imgload_d16as FAIL, with the last output line. It now reports SKIP and quotes theunsupported:line (helper_result).tests/test_run_gpu_tests.pygets two cases: the 77 is a SKIP with its reason for all three shaders, and other exit codes still fail.docs/testing.md(GPUs without mesh shaders) now says the device needsshaderInt64only for a module that declaresInt64, and how the tools decide.Tested
On an Apple M4 (MoltenVK 1.4.2, macOS, one GPU, with
shaderInt64), Ninja RelWithDebInfo build, no warnings:run_gpu_tests.py, tools frommain4947579run_gpu_tests.py, this branchrun_gpu_tests.py, this branch merged with #2463ps_tex,ps_imgatomic(vk_bindless_test),cs_imgstore,cs_imgloadandcs_imgload_d16(vk_store_test).ps_ssharp("point bias +1") fails the same way withmain's tools. It is the known MoltenVK sampler result (SHADER-268, also seen on an M2), unrelated to this change.Int64and ran withshaderInt64off. 14 still declare it. Without SHADER-423: 64-bit buffer addresses as 32-bit pairs, without Int64 #2463 all 117 do.vk_bindless_testwithLEONIDA_VK_DEVICE="Apple M4"passesps_tex; withnomatchit exits 1 (no Vulkan physical device matches).spirv_capabilityandvk_device_pickpass.tests/test_run_gpu_tests.pypasses, 32 tests.test_docs_links,test_docs_list_itemsandtest_docs_repo_pathspass.Not tested here:
shaderInt64, which is the point of TEST-468;@richardsenra's Intel UHD + RTX 3050 laptop has both. A run of
scripts/run_gpu_tests.pywith #2463 merged andLEONIDA_VK_DEVICEset to the Intel GPU would confirm it.No game files. AI-assisted.