Skip to content

test(agc): remove ambiguous 1D V wrap expectation - #3490

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
MarcZX10:codex/image-dimension-boundary-3460
Oct 11, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
MarcZX10:codex/image-dimension-boundary-3460

Conversation

@MarcZX10

Copy link
Copy Markdown
Contributor

What

core/libs/prx/libSceAgcDriver/tests/execution/ImageAddressDimension.cpp:245 on current main expects a 7.5 value from a bilinear sample with the V coordinate at exactly 0 and repeat addressing. That puts the sample halfway between the last and first rows. The Linux CI lavapipe run reports 8.0, while the issue reports other llvmpipe builds selecting the opposite row.

The test covers a 1D image sample backed by a 2D texture. It now clamps the unused V axis to the edge and checks the first row, keeping the sample independent of how a driver resolves the exact repeat boundary. The U coordinates remain at texel centers.

Closes #3460.

Tested

Linux, GCC 12.2 Release: built agc_driver_image_address_dimension_tests. The unchanged test failed on current main with component 2 is 8.000000, expected 7.500000; the updated agc_driver_image_address_dimension test passed three consecutive runs on llvmpipe. python3 tools/check_conventions.py --base upstream/main and git diff --check passed. Windows and PS5 hardware not tested.

Checklist

  • Based on current main (0f863c102207dae4b77b1a2bad16c3aedec34691); no other open PR implements this test correction
  • 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
  • New third-party code is a submodule built from source
  • Generic behavior, not specific to one title
  • Depends on: none
  • AI-assisted: yes

@github-actions github-actions Bot added the agc libSceAgc* label Oct 11, 2026
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked on the PR merged onto current main: agc_driver_image_address_dimension passes, also 3 runs on CI's lavapipe (Mesa 25.2.8) where it failed before. Clamp-last-texel on Y with the sample at V=0 makes the expected row 0 independent of how a driver resolves the repeat boundary; merging.

@adriadam10
adriadam10 merged commit a5d75aa into boykopovar:main Oct 11, 2026
15 checks passed
@sypher69

Copy link
Copy Markdown

I compared your #3490 approach with an alternative fixture I've tested locally.

My concern with clamping V and sampling U at texel centers is that the test may no longer detect point filtering or the omitted-coordinate wrap behavior that #1416 originally added coverage for.

I tried changing the blue-channel row markers to y * (y + 1) while keeping linear filtering, repeat addressing, and the original <0.25 assertion.

At V=0, rows 15 and 0 have values 240 and 0, producing an expected boundary blend of 120 rather than the original half-integer 7.5. This passes on llvmpipe.

I also verified with temporary mutations that V=0.5, point filtering, and clamp addressing fail the test.

I haven't validated other Vulkan drivers, so I'm not claiming the approach is universally portable. Would it make sense to incorporate this fixture into #3490 to preserve the original regression coverage?

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.

linux CI: agc_driver_image_address_dimension fails on lavapipe since #1416

3 participants