test(agc): enter whole quad mode in the implicit-LOD 1D sample test #3922
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3922"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T19:10:37Z.
What
agc_driver_image_plane_address_on_line_implicit_lod, added by #3222, fails on lavapipe, so the Linux job has been red onmainsince that merge (first in run 38121052397; @orishamir reported it on #3222):The cause is the test's pixel shader, not llvmpipe's sampler. Since #305 a pixel wave starts with only its covered pixels in EXEC, and the helper lanes of a partly covered quad join when the shader runs
s_wqm. The test's shader never does. In a partly covered quad its helpers hold a zero coordinate, so the implicit LOD comes out as the last mip (mark 170).Only llvmpipe gets partly covered quads here. The test's triangle reaches 3 in clip space, and llvmpipe clips it at twice the viewport and draws the result as three triangles. The wrong quads in @orishamir's map lie on the two inner edges, from the (-1,-1) corner towards (2,0) and (0,2). With the far vertices moved out to 5 there is one inner edge, towards (2,2), and the wrong quads follow it. With
gl_HelperInvocationforced to false in the recompiled shader, every pixel reads the expected mip.The shader now starts with
s_wqm_b64 exec, exec(0xbefe0a7e). Title pixel shaders do the same: in the 90 captured programs I have that runs_wqm, it comes before the first implicit-LOD sample in every one, most often in this form.#3418 gets the same test green by skipping its level checks on llvmpipe. With this change the checks run there too, so only one of the two is needed.
Tested
Linux, Release, CI's configure flags,
maina11c8f7fagainst this branch (one commit on it).ANYPS5_REQUIRE_VULKAN=1 GALLIUM_OVERRIDE_CPU_CAPS=avx):mainwith the message above and passes 5/5 with the change;ctest: 831/838 onmain, 832/838 with the change. The six left are the same on both:agc_driver_emulated_color_compare(since #3438; #3532 fixes it),guest_kernel_stack_protect(#3459) and the fouragc_driver_prepared_shaders*tests, which fail in this container (shader failure capture was incomplete) and pass in CI.mainand passes 5/5 with the change;ctestwith the change: 837/838, onlyagc_driver_emulated_color_compareagain.ResourceTracker.cppput back tomain's old form, the changed test still fails withimage descriptor is incompatible with the static runtime image interface, as the original does.tools/check_conventions.py --base origin/mainpasses.Not tested: Windows, RADV.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)