test(agc): skip the f64 denormal mode tests on devices without shaderFloat64 #8249

Merged
MayankManas merged 1 commit from upstream-pr/8249 into main 2026-10-21 02:02:40 +00:00
MayankManas commented 2026-10-20 07:00:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MayankManas on 2026-10-20T07:00:14Z.


What

agc_driver_f64_add_mul_denormal_modes and agc_driver_f64_rounding_denormal_modes fail instead of skipping on devices without shaderFloat64: the recompiler refuses the program with 64-bit float instructions need the Float64 capability, which the device lacks. Both now skip with skipped, 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$' -V with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (layer loaded, no was not found but was requested line, no VUID- lines):

GPU (ANYPS5_GPU) main 1ed63f63c this PR on main e9cc4a8ef
Intel UHD Graphics 770 (no shaderFloat64) both fail both skip
NVIDIA GeForce RTX 5070 Ti both pass both pass

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: Intel UHD Graphics 770, driver 32.0.101.7088, Windows 11; NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4932197530 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8249). Originally posted by [MayankManas](https://github.com/MayankManas) on 2026-10-20T07:00:14Z. --- ### What `agc_driver_f64_add_mul_denormal_modes` and `agc_driver_f64_rounding_denormal_modes` fail instead of skipping on devices without `shaderFloat64`: the recompiler refuses the program with `64-bit float instructions need the Float64 capability, which the device lacks`. Both now skip with `skipped, 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$' -V` with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (layer loaded, no `was not found but was requested` line, no `VUID-` lines): | GPU (`ANYPS5_GPU`) | `main` 1ed63f63c | this PR on `main` e9cc4a8ef | |---|---|---| | Intel UHD Graphics 770 (no `shaderFloat64`) | both fail | both skip | | NVIDIA GeForce RTX 5070 Ti | both pass | both pass | ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: Intel UHD Graphics 770, driver 32.0.101.7088, Windows 11; NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 - [x] AI-assisted: yes
MayankManas commented 2026-10-20 07:14:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MayankManas on 2026-10-20T07:14:35Z.


Same focused run on main and 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$' -V with ANYPS5_GPU set per device, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (and VK_LOADER_LAYERS_DISABLE=VK_LAYER_OBS_HOOK to keep OBS's implicit layer out of both runs).

GPU main e9cc4a8ef this PR ac1f4ded1
Intel UHD Graphics 770, driver 32.0.101.7088 both fail: 64-bit float instructions need the Float64 capability, which the device lacks both skip: skipped, the device has no shaderFloat64
NVIDIA GeForce RTX 5070 Ti, driver 617.42 both pass both pass

All four logs: the requested device selected, no was not found but was requested by env var VK_INSTANCE_LAYERS, no VUID-.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285525918 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8249#issuecomment-6285525918). Originally posted by [MayankManas](https://github.com/MayankManas) on 2026-10-20T07:14:35Z. --- Same focused run on `main` and 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$' -V` with `ANYPS5_GPU` set per device, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (and `VK_LOADER_LAYERS_DISABLE=VK_LAYER_OBS_HOOK` to keep OBS's implicit layer out of both runs). | GPU | `main` e9cc4a8ef | this PR ac1f4ded1 | |---|---|---| | Intel UHD Graphics 770, driver 32.0.101.7088 | both fail: `64-bit float instructions need the Float64 capability, which the device lacks` | both skip: `skipped, the device has no shaderFloat64` | | NVIDIA GeForce RTX 5070 Ti, driver 617.42 | both pass | both pass | All four logs: the requested device selected, no `was not found but was requested by env var VK_INSTANCE_LAYERS`, no `VUID-`. AI-assisted: yes.
fogydes commented 2026-10-20 07:34:33 +00:00 (Migrated from github.com)

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 both F64AddMulDenormalModes.cpp and F64RoundingDenormalModes.cpp, returning VulkanTestSkipped when the device lacks shaderFloat64. The guard is placed after OpenVulkanTestDevice() but before the test body — exactly the same pattern used by the other f64 execution tests (F64Rounding, F64Arithmetic, F64FmaSubnormals).

CI: conventions, intake, labels all pass.

Local verification: Built agc_driver_f64_add_mul_denormal_modes_tests and agc_driver_f64_rounding_denormal_modes_tests on Windows 11, MinGW-w64 GCC 15.2.0, Release. Ran both with ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1:

Test Result Time GPU
agc_driver_f64_add_mul_denormal_modes Passed 1.35s NVIDIA GeForce RTX 5050 Laptop GPU
agc_driver_f64_rounding_denormal_modes Passed 0.93s NVIDIA GeForce RTX 5050 Laptop GPU

Both 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 without shaderFloat64).

PR body: Well structured — includes a before/after table across two GPUs, notes the overlap with #7332 and confirms no conflict.

No issues found.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5582034608 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8249#pullrequestreview-5582034608). Originally posted by [fogydes](https://github.com/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 both `F64AddMulDenormalModes.cpp` and `F64RoundingDenormalModes.cpp`, returning `VulkanTestSkipped` when the device lacks `shaderFloat64`. The guard is placed after `OpenVulkanTestDevice()` but before the test body — exactly the same pattern used by the other f64 execution tests (`F64Rounding`, `F64Arithmetic`, `F64FmaSubnormals`). **CI**: `conventions`, `intake`, `labels` all pass. **Local verification**: Built `agc_driver_f64_add_mul_denormal_modes_tests` and `agc_driver_f64_rounding_denormal_modes_tests` on Windows 11, MinGW-w64 GCC 15.2.0, Release. Ran both with `ANYPS5_REQUIRE_VULKAN=1` and `ANYPS5_NO_SHADER_CACHE=1`: | Test | Result | Time | GPU | |---|---|---|---| | `agc_driver_f64_add_mul_denormal_modes` | Passed | 1.35s | NVIDIA GeForce RTX 5050 Laptop GPU | | `agc_driver_f64_rounding_denormal_modes` | Passed | 0.93s | NVIDIA GeForce RTX 5050 Laptop GPU | Both 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 without `shaderFloat64`). **PR body**: Well structured — includes a before/after table across two GPUs, notes the overlap with #7332 and confirms no conflict. No issues found.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!8249
No description provided.