test(agc): skip the 2D derivative cases without non-constant texel offsets #829

Merged
LeandroLP23 merged 1 commit from upstream-pr/829 into main 2026-10-07 02:23:53 +00:00
LeandroLP23 commented 2026-10-06 07:48:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-06T07:48:11Z.


Closes #827.

What

agc_driver_image_sample_derivatives runs the 2D shader only when device->Target().nonConstantImageOffsets is set, and prints that the 2D cases were skipped otherwise, as it already does for the EXEC-masked cases on narrow subgroups.

The 2D shader holds the _o variants, whose offsets come from VGPRs; since #303 the recompiler accepts them only with VK_KHR_maintenance8 and fails otherwise. The 2D run came first, so on a device without maintenance8 the 3D and 1D cases never ran either. The offset and non-offset 2D cases share one shader, so they are skipped together; splitting the machine code is left out of this change.

Tested

Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release with BUILD_TESTING=ON, AMD Radeon 860M (RDNA 3.5), driver 32.0.13058.8001, no maintenance8. No title or homebrew.

  • agc_driver_image_sample_derivatives: failed before, now prints the skip and passes the 3D and 1D cases in wave32 and wave64.
  • The maintenance8 path is unchanged and not exercised on this device.
  • Full ctest: 356/358 passed; the 2 failures are #825 and #826, which also fail on unmodified main.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4755777369 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/829). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-06T07:48:11Z. --- Closes #827. ### What `agc_driver_image_sample_derivatives` runs the 2D shader only when `device->Target().nonConstantImageOffsets` is set, and prints that the 2D cases were skipped otherwise, as it already does for the EXEC-masked cases on narrow subgroups. The 2D shader holds the `_o` variants, whose offsets come from VGPRs; since #303 the recompiler accepts them only with `VK_KHR_maintenance8` and fails otherwise. The 2D run came first, so on a device without maintenance8 the 3D and 1D cases never ran either. The offset and non-offset 2D cases share one shader, so they are skipped together; splitting the machine code is left out of this change. ### Tested Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release with `BUILD_TESTING=ON`, AMD Radeon 860M (RDNA 3.5), driver 32.0.13058.8001, no maintenance8. No title or homebrew. - `agc_driver_image_sample_derivatives`: failed before, now prints the skip and passes the 3D and 1D cases in wave32 and wave64. - The maintenance8 path is unchanged and not exercised on this device. - Full `ctest`: 356/358 passed; the 2 failures are #825 and #826, which also fail on unmodified `main`. ### Checklist - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] 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!829
No description provided.