test(agc): skip the f64 denormal mode tests on devices without shaderFloat64 #8249
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8249"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MayankManas on 2026-10-20T07:00:14Z.
What
agc_driver_f64_add_mul_denormal_modesandagc_driver_f64_rounding_denormal_modesfail instead of skipping on devices withoutshaderFloat64: the recompiler refuses the program with64-bit float instructions need the Float64 capability, which the device lacks. Both now skip withskipped, the device has no shaderFloat64, as the other f64 execution tests (F64Rounding,F64Arithmetic,F64FmaSubnormals, ...) do.#7332 (macOS host support) carries the same two hunks for MoltenVK. This PR takes only them, for Windows and Linux devices without
shaderFloat64; the hunks are identical, so they do not conflict with each other in either merge order.Tested
Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release,
ctest -R 'agc_driver_f64_(add_mul|rounding)_denormal_modes$' -VwithANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(layer loaded, nowas not found but was requestedline, noVUID-lines):ANYPS5_GPU)main1ed63f63cmaine9cc4a8efshaderFloat64)Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MayankManas on 2026-10-20T07:14:35Z.
Same focused run on
mainand this PR, same machine, same build directory, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release:ctest --test-dir build -R 'agc_driver_f64_(add_mul|rounding)_denormal_modes$' -VwithANYPS5_GPUset per device,ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(andVK_LOADER_LAYERS_DISABLE=VK_LAYER_OBS_HOOKto keep OBS's implicit layer out of both runs).maine9cc4a8efac1f4ded164-bit float instructions need the Float64 capability, which the device lacksskipped, the device has no shaderFloat64All four logs: the requested device selected, no
was not found but was requested by env var VK_INSTANCE_LAYERS, noVUID-.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-20T07:34:33Z.
Review: COMMENTED
Reviewed the diff, CI, and verified locally.
Code: Adds
TargetHasCapability(device->Target(), spv::CapabilityFloat64)checks in bothF64AddMulDenormalModes.cppandF64RoundingDenormalModes.cpp, returningVulkanTestSkippedwhen the device lacksshaderFloat64. The guard is placed afterOpenVulkanTestDevice()but before the test body — exactly the same pattern used by the other f64 execution tests (F64Rounding,F64Arithmetic,F64FmaSubnormals).CI:
conventions,intake,labelsall pass.Local verification: Built
agc_driver_f64_add_mul_denormal_modes_testsandagc_driver_f64_rounding_denormal_modes_testson Windows 11, MinGW-w64 GCC 15.2.0, Release. Ran both withANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1:agc_driver_f64_add_mul_denormal_modesagc_driver_f64_rounding_denormal_modesBoth pass on a device that supports
shaderFloat64. The skip path is exercised by the author's Intel UHD 770 results in the PR description (both skip → both skip, confirmed the guard works for devices withoutshaderFloat64).PR body: Well structured — includes a before/after table across two GPUs, notes the overlap with #7332 and confirms no conflict.
No issues found.