test(agc): leave the template audit out of the lookup log test #8601
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8601"
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 milescoviello on 2026-10-20T18:02:49Z.
What
agc_driver_lookup_log_fits_buildfails when the machine is busy:The test builds a
ShaderResourcesset over 1500 textures, then expects the first proof, with memory unchanged, to take the fast path.Revalidateturns a fast proof into a full walk onceAPS5_TEMPLATE_AUDIT_MS(default 1000 ms) has passed sincelastFullWalk. A new object stampslastFullWalkwhen it is constructed, which is before the build of its 1500 textures. When the build and the first proof together take longer than a second, the audit is due on that first proof, so the test fails even though nothing it checks went wrong.The test now sets
APS5_TEMPLATE_AUDIT_MSto 0 (no audit) unless it is already set, the waySampledCacheBudget.cpppins it to 250. Its fast-path and full-walk checks then depend only on memory changes. The production code is unchanged.Tested
Ubuntu 24.04 (Linux 6.8), GCC 13.3, NVIDIA RTX 4070 Ti, driver 595.99.02, on
main892a4f1328. For each case, six copies of the test ran at once, repeatedly, with ctest's environment (ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_JOURNAL=1) and its working directory:mainAPS5_TEMPLATE_AUDIT_MS=1000setThe last row shows the audit is the cause: with the default interval set again, the failure returns.
main's test passes 15 of 15, and two copies at once pass 20 of 20. I found this when it failed once in actest -R '^(agc_|shader_cache)' -j4run of 835 tests and then passed every rerun.ctest -R '^agc_driver_lookup_log_fits_build$'passes 3 of 3.tools/check_conventions.py --base upstream/mainpasses, andtools/pr_overlap.pyfinds no open PR that touches this test.Not tested: Windows (the
_putenv_sbranch is the same asSampledCacheBudget.cpp's), AMD.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)🤖 Generated with Claude Code