Skip to content

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

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
LeandroLP23:fix/agc-derivatives-skip-offsets-without-maintenance8
Oct 7, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
LeandroLP23:fix/agc-derivatives-skip-offsets-without-maintenance8

Conversation

@LeandroLP23

Copy link
Copy Markdown
Contributor

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.

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

…fsets

The 2D shader samples with computed texel offsets, which the recompiler
accepts only with VK_KHR_maintenance8; without it the whole test failed
before the 3D and 1D cases ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the agc libSceAgc* label Oct 6, 2026
@oneandonlydean
oneandonlydean merged commit 1f3d5c9 into boykopovar:main Oct 7, 2026
3 checks passed
@LeandroLP23
LeandroLP23 deleted the fix/agc-derivatives-skip-offsets-without-maintenance8 branch October 10, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

agc_driver_image_sample_derivatives fails instead of skipping its offset cases without VK_KHR_maintenance8

2 participants