test(agc): skip the level checks of the implicit-LOD 1D sample test on llvmpipe #3418

Closed
fma-rc wants to merge 1 commit from upstream-pr/3418 into main
fma-rc commented 2026-10-11 10:02:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-11T10:02:16Z.


What

agc_driver_image_plane_address_on_line_implicit_lod, added by #3222, fails on lavapipe, so the linux CI job is red on main (reported by @orishamir on #3222):

AGC graphics: image_sample 2d on a 1D texture with the first coordinate advancing 1 texels per pixel: pixel 20,0 component 0 is 170, expected 10

llvmpipe reads another mip level in some pixel quads of the implicit-LOD 1D sample (170 is the mark of the last level, where the first coordinate advances exactly one texel per pixel). The test now skips its per-pixel level checks when the device is llvmpipe, the way ImageSampleUnnormalized.cpp does for another llvmpipe difference. It still recompiles and draws all three steps there, which is what fails without #3222, and still checks the image_sample_b refusal.

Tested

Arch Linux, GCC 16.2.1, Release, ANYPS5_REQUIRE_VULKAN=1. The main row is from b44eeb96; the branch row was rerun after the rebase onto a11c8f7f.

lavapipe (Mesa 26.2.4, LLVM pipe) RTX 5080 RADV (Radeon 610M)
main exit 1, the message above pass pass
this branch pass, prints level checks skipped pass, full checks pass, full checks

Not tested on Windows.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4818236907 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3418). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-11T10:02:16Z. --- ### What `agc_driver_image_plane_address_on_line_implicit_lod`, added by #3222, fails on lavapipe, so the `linux` CI job is red on `main` (reported by @orishamir on #3222): ``` AGC graphics: image_sample 2d on a 1D texture with the first coordinate advancing 1 texels per pixel: pixel 20,0 component 0 is 170, expected 10 ``` llvmpipe reads another mip level in some pixel quads of the implicit-LOD 1D sample (170 is the mark of the last level, where the first coordinate advances exactly one texel per pixel). The test now skips its per-pixel level checks when the device is llvmpipe, the way `ImageSampleUnnormalized.cpp` does for another llvmpipe difference. It still recompiles and draws all three steps there, which is what fails without #3222, and still checks the `image_sample_b` refusal. ### Tested Arch Linux, GCC 16.2.1, Release, `ANYPS5_REQUIRE_VULKAN=1`. The `main` row is from b44eeb96; the branch row was rerun after the rebase onto a11c8f7f. | | lavapipe (Mesa 26.2.4, LLVM pipe) | RTX 5080 | RADV (Radeon 610M) | |---|---|---|---| | `main` | exit 1, the message above | pass | pass | | this branch | pass, prints `level checks skipped` | pass, full checks | pass, full checks | Not tested on Windows. ### 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
orishamir commented 2026-10-11 10:18:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by orishamir on 2026-10-11T10:18:02Z.


Verified where it failed: a8e6c104 (fast-forward from main a73a1af9) in the replica of CI's linux job, ubuntu 24.04, GCC 13.3, Mesa 25.2.8 llvmpipe (LLVM 20.1.2), ANYPS5_REQUIRE_VULKAN=1 GALLIUM_OVERRIDE_CPU_CAPS=avx: agc_driver_image_plane_address_on_line_implicit_lod passes 3/3 and prints the skip line; the same binary on Mesa 26.0.8 llvmpipe (LLVM 21.1.8) passes too. Without the change both llvmpipes fail at pixel 20,0 component 0 is 170, expected 10, so the skip is what flips it; the three draws and the image_sample_b refusal still run on both.

AI-assisted: yes (Claude Code Fable 5.1 xhigh)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107992859 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3418#issuecomment-6107992859). Originally posted by [orishamir](https://github.com/orishamir) on 2026-10-11T10:18:02Z. --- Verified where it failed: a8e6c104 (fast-forward from `main` a73a1af9) in the replica of CI's `linux` job, ubuntu 24.04, GCC 13.3, Mesa 25.2.8 llvmpipe (LLVM 20.1.2), `ANYPS5_REQUIRE_VULKAN=1 GALLIUM_OVERRIDE_CPU_CAPS=avx`: `agc_driver_image_plane_address_on_line_implicit_lod` passes 3/3 and prints the skip line; the same binary on Mesa 26.0.8 llvmpipe (LLVM 21.1.8) passes too. Without the change both llvmpipes fail at `pixel 20,0 component 0 is 170, expected 10`, so the skip is what flips it; the three draws and the `image_sample_b` refusal still run on both. AI-assisted: yes (Claude Code Fable 5.1 xhigh)
fma-rc commented 2026-10-11 20:02:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-11T20:02:49Z.


Closing: #3922 fixed the cause (the test's pixel shader never entered whole quad mode), which is better than skipping the level checks on llvmpipe as this PR does. On main 0a8b1d32b the test passes with the full checks on local lavapipe, an RTX 5080 and RADV on a 610M.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6113152918 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3418#issuecomment-6113152918). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-11T20:02:49Z. --- Closing: #3922 fixed the cause (the test's pixel shader never entered whole quad mode), which is better than skipping the level checks on llvmpipe as this PR does. On `main` 0a8b1d32b the test passes with the full checks on local lavapipe, an RTX 5080 and RADV on a 610M.

Pull request closed

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!3418
No description provided.