linux CI: agc_driver_image_plane_address_on_line_implicit_lod fails on main since #3222 (llvmpipe picks another mip level in some pixel quads of an implicit-LOD 1D sample) #3630

Closed
opened 2026-10-11 14:26:41 +00:00 by LeandroSSB · 2 comments
LeandroSSB commented 2026-10-11 14:26:41 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroSSB on 2026-10-11T14:26:41Z.


agc_driver_image_plane_address_on_line_implicit_lod, added by #3222 (merge a258e5e3e, 07:16Z Oct 11), fails in the linux job (lavapipe) in every completed run on main since, from 38121052397 (07:20Z, 6957bb4ae, where it is the only failed test) to 38140296210 (12:42Z, a11c8f7f7):

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

#3222's own checks skipped the linux job, and the PR branch's pre-merge dispatch 38118105222 failed the same way (reported by @orishamir on #3222), so the test has never been green on lavapipe.

The emulator is not wrong: the recompiled access is a 1D implicit-LOD sample on the first coordinate (ResourceTracker.cpp:1196, ResourceMaterializer.cpp:656, SpirvImageEmitter.cpp:1069-1083), measured on RDNA2 with the hardware oracle ("the mip is round(log2(max |du|)) on every lane, whatever the second coordinate does"), and the test passes on RTX 5080/4080 and RADV gfx1036. The level-0 draw advances the first coordinate exactly one texel per pixel, so the implicit LOD is exactly 0 — an integer-level rounding boundary — and llvmpipe's implementation-defined implicit LOD (Mesa 25.2.8 in CI) picks another level in some pixel quads (170 is the mark of the last level; it is also what a second-coordinate-respecting LOD would pick for the test's second coordinate advancing 3 per pixel). Same family as #3460.

Open PR #3418 (test(agc): skip the level checks of the implicit-LOD 1D sample test on llvmpipe) already proposes the skip. I verified its head a8e6c104 in a container mirroring the CI linux job (ubuntu 24.04, GCC 13.3, lavapipe): both agc_driver_image_plane_address_on_line and ..._implicit_lod pass, and on pure main a11c8f7f7 the implicit-LOD test fails deterministically. Merging #3418 closes this red. A same-blob backup exists at LeandroSSB/AnyPS5:fix/image-plane-line-implicit-lod (26a79d233) if the PR needs to be re-based or re-owned; exactly one of the two should merge.

AI-assisted (Claude Code); I ran the CI-mirror verification above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5801948165 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3630). Originally posted by [LeandroSSB](https://github.com/LeandroSSB) on 2026-10-11T14:26:41Z. --- `agc_driver_image_plane_address_on_line_implicit_lod`, added by #3222 (merge `a258e5e3e`, 07:16Z Oct 11), fails in the `linux` job (lavapipe) in every completed run on `main` since, from [38121052397](https://github.com/boykopovar/AnyPS5/actions/runs/38121052397) (07:20Z, 6957bb4ae, where it is the only failed test) to [38140296210](https://github.com/boykopovar/AnyPS5/actions/runs/38140296210) (12:42Z, a11c8f7f7): ``` 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 ``` #3222's own checks skipped the `linux` job, and the PR branch's pre-merge dispatch [38118105222](https://github.com/boykopovar/AnyPS5/actions/runs/38118105222) failed the same way (reported by @orishamir on #3222), so the test has never been green on lavapipe. The emulator is not wrong: the recompiled access is a 1D implicit-LOD sample on the first coordinate (`ResourceTracker.cpp:1196`, `ResourceMaterializer.cpp:656`, `SpirvImageEmitter.cpp:1069-1083`), measured on RDNA2 with the hardware oracle ("the mip is round(log2(max |du|)) on every lane, whatever the second coordinate does"), and the test passes on RTX 5080/4080 and RADV gfx1036. The level-0 draw advances the first coordinate exactly one texel per pixel, so the implicit LOD is exactly 0 — an integer-level rounding boundary — and llvmpipe's implementation-defined implicit LOD (Mesa 25.2.8 in CI) picks another level in some pixel quads (170 is the mark of the last level; it is also what a second-coordinate-respecting LOD would pick for the test's second coordinate advancing 3 per pixel). Same family as #3460. Open PR #3418 (`test(agc): skip the level checks of the implicit-LOD 1D sample test on llvmpipe`) already proposes the skip. I verified its head `a8e6c104` in a container mirroring the CI linux job (ubuntu 24.04, GCC 13.3, lavapipe): both `agc_driver_image_plane_address_on_line` and `..._implicit_lod` pass, and on pure `main` `a11c8f7f7` the implicit-LOD test fails deterministically. Merging #3418 closes this red. A same-blob backup exists at [`LeandroSSB/AnyPS5:fix/image-plane-line-implicit-lod`](https://github.com/LeandroSSB/AnyPS5/tree/fix/image-plane-line-implicit-lod) (`26a79d233`) if the PR needs to be re-based or re-owned; exactly one of the two should merge. AI-assisted (Claude Code); I ran the CI-mirror verification above on my machine.
LeandroSSB commented 2026-10-11 20:00:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroSSB on 2026-10-11T20:00:08Z.


This red is gone from main as of the 19:45Z merge train: the linux job of run 38169396667 (12c2266281) passes agc_driver_image_plane_address_on_line_implicit_lod — fixed by #3922 (entering whole quad mode in the test), which keeps the per-pixel level checks instead of skipping them, so it supersedes both #3418 and the backup branch above. With the refusal no longer reproducing on main, this can close; #3418 looks redundant now (same test, alternative fix already merged).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6113127743 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3630#issuecomment-6113127743). Originally posted by [LeandroSSB](https://github.com/LeandroSSB) on 2026-10-11T20:00:08Z. --- This red is gone from `main` as of the 19:45Z merge train: the linux job of run [38169396667](https://github.com/boykopovar/AnyPS5/actions/runs/38169396667) (`12c2266281`) passes `agc_driver_image_plane_address_on_line_implicit_lod` — fixed by #3922 (entering whole quad mode in the test), which keeps the per-pixel level checks instead of skipping them, so it supersedes both #3418 and the backup branch above. With the refusal no longer reproducing on `main`, this can close; #3418 looks redundant now (same test, alternative fix already merged).
oneandonlydean commented 2026-10-11 23:28:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:28:03Z.


Closing: fixed by #3922.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115105093 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3630#issuecomment-6115105093). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T23:28:03Z. --- Closing: fixed by #3922.
Sign in to join this conversation.
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#3630
No description provided.