test(agc): skip the LOD checks a driver's LOD remap explains #24153
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24153"
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 XFlawless1 on 2026-11-20T08:13:40Z.
What
#23232 traced the
agc_driver_image_plane_address_on_line1D mip blend failure and theagc_driver_image_sample_lod_clamp/_shader_laneLOD bias -96 failure on NVIDIA to a driver setting, not to AnyPS5. The setting is Manage 3D settings > Texture filtering - Quality = High performance, and it applies to Vulkan too. With it, linear mip filtering samples fractional LODs at other values. On an RTX 5080 with driver 621.14, explicit and gradient LOD 0.5 both sample as 0.875. With Quality (the default) or High quality the tests pass (confirmed by the reporter on the 4070 SUPER).When one of those checks fails, the test now measures whether the driver remaps LODs and reports the checks as skipped only if it does:
TextureLodFidelity.hpp(test-only) samples a five-level 16×16 mip chain, one level index per level, with linear mip filtering at 21 fractional LODs. It uses the same path as the failing check:image_sample_lfor the explicit LOD,image_sample_dfor the gradient.docs/dev/BUILD.mdlists the setting with the other Windows host settings that affect tests.Overlapping open PRs, both with other approaches:
ImagePlaneAddressOnLine.cppand keeps only the DIM 1D comparison. If it merges first, this PR'sImagePlaneAddressOnLine.cpphunk drops out, and the rest still applies.trywraps its -192 line instead, and the message's "-96" and "0.375" become "-192" and "0.25". That merge is mechanical.BUILD.md. Keep both.Tested
Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 5080 (
10de:2c02), driver 621.14, Texture filtering - Quality at High performance. MinGW-w64 GCC 15 (WinLibs UCRT), Ninja, Release,maine825fa1492,ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.thread 12 blends the levels to 67.501945, expected 60;thread 2 component 0 is 2.000000, expected 1), as reported in #23232.Selected GPU name=NVIDIA GeForce RTX 5080, the original failure, andthe driver samples linear mips at the explicit|gradient LOD 0.500 as 0.875, more than 0.066 away.tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)10de:2c02), driver 621.14, Windows 11 Pro 10.0.26300🤖 Generated with Claude Code
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:21:05Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review is complete, and the inspected code supports merging.
What I ran
Reviewed head
5ecd634fabe1857597cb8cfb2b0904126fab0333. I read the prepared description, commit summary, manifest, and diff, then inspected the complete new probe and changed call sites plus relevant test helpers. No commands or tests were run; I used the provided PR reader.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I read all four files listed as reviewed in the manifest:
ImagePlaneAddressOnLine.cpp,ImageSampleLodClamp.cpp,TextureLodFidelity.hpp, anddocs/dev/BUILD.md. No files were excluded in the manifest. I did not run builds or tests, and did not verify behavior on physical GPUs or other drivers. The reported Windows/NVIDIA test results are author-reported.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T01:32:46Z.
Review: COMMENTED
Actionable comments posted: 2
4c4c6d26-10ef-4ba6-ae9c-2513bac64ba7Reviewing files that changed from the base of the PR and between
ffc6f26b07and92a39e417e.core/libs/prx/libSceAgcDriver/tests/execution/ImagePlaneAddressOnLine.cppcore/libs/prx/libSceAgcDriver/tests/execution/ImageSampleLodClamp.cppcore/libs/prx/libSceAgcDriver/tests/execution/TextureLodFidelity.hppdocs/dev/BUILD.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.