test(agc): skip the f64 and shader clock execution tests on devices without the feature #1259

Merged
kr4y4 merged 1 commit from upstream-pr/1259 into main 2026-10-08 05:21:49 +00:00
kr4y4 commented 2026-10-07 20:07:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kr4y4 on 2026-10-07T20:07:23Z.


What

Eleven execution tests fail instead of skipping on a device that lacks a feature their program needs. Emission already refuses those programs with a clear error. The tests now skip, as ImageSampleLodClamp does for shaderResourceMinLod and #829 did for VK_KHR_maintenance8.

Tests Needs Failure on a device without it
agc_driver_f64_arithmetic, _f64_conversions, _f64_division, _f64_division_modifiers, _f64_nan_conversions, _f64_rounding, _f64_transcendental, _division_output_modifiers, _division_result_modifiers shaderFloat64 (Float64) 64-bit float instructions need the Float64 capability, which the device lacks
agc_driver_float16_dot shaderFloat64: EmitFPDot2F32F16 computes v_dot2_f32_f16 in f64 the same
agc_driver_shader_clock shaderSubgroupClock and shaderDeviceClock (ShaderClockKHR) reads the shader clock, which needs the device's VK_KHR_shader_clock

Each program is a single shader, and the two division tests mix f32 and f64 instructions in it. So the whole test skips; the f32 cases can't run without splitting the program.

Not changed: a title that uses v_dot2_f32_f16 still can't run on a device without shaderFloat64, since emission refuses it there.

Tested

Windows 11 (26200), WinLibs GCC 15.2.0 r7, CI configure flags, main at 4764e59c, ctest --repeat until-fail:3 on the eleven tests:

  • Intel Raptor Lake-S Mobile Graphics (driver 32.0.101.6790; shaderFloat64 = 0, shaderDeviceClock = 0), ANYPS5_GPU=Intel: all eleven skip with the messages above (skipped, the device has no shaderFloat64 ×9, the v_dot2_f32_f16 one, skipped, the device lacks shaderSubgroupClock or shaderDeviceClock). On main they fail.
  • NVIDIA RTX 4070 Laptop GPU (driver 32.0.15.9597, has both): all eleven run and pass, none skip.

Devices that have the features run the tests unchanged. On CI's lavapipe device these tests run and pass today: they aren't among the 20 skips listed in #1012. So that device has both features, and its expected skip set (#1028) doesn't change.

Checklist

  • Based on current main; no other open PR implements the same thing
  • One topic per PR
  • No comments in code except technical debt
  • No silent stubs added
  • No notes, investigation files or images added to the repository
  • No new third-party code
  • Generic, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4777865847 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1259). Originally posted by [kr4y4](https://github.com/kr4y4) on 2026-10-07T20:07:23Z. --- ### What Eleven execution tests fail instead of skipping on a device that lacks a feature their program needs. Emission already refuses those programs with a clear error. The tests now skip, as `ImageSampleLodClamp` does for `shaderResourceMinLod` and #829 did for `VK_KHR_maintenance8`. | Tests | Needs | Failure on a device without it | |---|---|---| | `agc_driver_f64_arithmetic`, `_f64_conversions`, `_f64_division`, `_f64_division_modifiers`, `_f64_nan_conversions`, `_f64_rounding`, `_f64_transcendental`, `_division_output_modifiers`, `_division_result_modifiers` | `shaderFloat64` (`Float64`) | `64-bit float instructions need the Float64 capability, which the device lacks` | | `agc_driver_float16_dot` | `shaderFloat64`: `EmitFPDot2F32F16` computes `v_dot2_f32_f16` in f64 | the same | | `agc_driver_shader_clock` | `shaderSubgroupClock` and `shaderDeviceClock` (`ShaderClockKHR`) | `reads the shader clock, which needs the device's VK_KHR_shader_clock` | Each program is a single shader, and the two division tests mix f32 and f64 instructions in it. So the whole test skips; the f32 cases can't run without splitting the program. Not changed: a title that uses `v_dot2_f32_f16` still can't run on a device without `shaderFloat64`, since emission refuses it there. ### Tested Windows 11 (26200), WinLibs GCC 15.2.0 r7, CI configure flags, main at 4764e59c, `ctest --repeat until-fail:3` on the eleven tests: - Intel Raptor Lake-S Mobile Graphics (driver 32.0.101.6790; `shaderFloat64` = 0, `shaderDeviceClock` = 0), `ANYPS5_GPU=Intel`: all eleven skip with the messages above (`skipped, the device has no shaderFloat64` ×9, the `v_dot2_f32_f16` one, `skipped, the device lacks shaderSubgroupClock or shaderDeviceClock`). On main they fail. - NVIDIA RTX 4070 Laptop GPU (driver 32.0.15.9597, has both): all eleven run and pass, none skip. Devices that have the features run the tests unchanged. On CI's lavapipe device these tests run and pass today: they aren't among the 20 skips listed in #1012. So that device has both features, and its expected skip set (#1028) doesn't change. ### Checklist - [x] Based on current `main`; no other open PR implements the same thing - [x] One topic per PR - [x] No comments in code except technical debt - [x] No silent stubs added - [x] No notes, investigation files or images added to the repository - [x] No new third-party code - [x] Generic, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!1259
No description provided.