Repository navigation
Conversation
… it unwatched On hosts whose host imports do not stay write-watched (Linux and macOS), the GPU store in SparsePendingWrite unwatches the image pages, so the interior-unwatch phase added in boykopovar#27438 always failed its precondition there. Register the image again before that phase; where the store keeps the pages watched (Windows) nothing changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
What
agc_driver_upload_cache_read_only_flushfails on Linux at every run since boykopovar#27438:The
SparsePendingWritecase in boykopovar#27438 has three phases. Its third phase unwatches page 2 of the image and requires pages 0 and 3 to stay watched. On hosts whose host imports do not stay write-watched (Linux and macOS,ImportWatchedwithstaysWatched == false), the GPU store of the second phase already unwatches the whole image. A probe after each step on Linux shows it:So the third phase could never start there. On Windows the store keeps the pages watched, so the test passed there. boykopovar#27438's
linuxjob was skipped, so CI never ran the case on Linux.The fix registers the image for write watching again before the third phase when it is no longer watched. The third phase then runs from the same mixed coverage as on Windows. On Windows the condition is false and nothing changes; the driver is not touched.
Tested
mainf51f7fe the test fails at every run. With this change it passes 5/5 (--repeat until-fail:5).ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layer(validation layer 1.4.363),ctest -R upload_cache -Vpasses on bothmainand the change. Both logs showInsert instance layer "VK_LAYER_KHRONOS_validation", neither containswas not found but was requested by env var VK_INSTANCE_LAYERS, and both have 0VUID-lines.ctestofmainon Linux on the same machine (7286 tests) has 13 failures. Two of them are environment specific: this one and theagc_driver_runtime_formatted_store*timeouts, which pass alone. The other llvmpipe failures already have open PRs (test(agc): skip the PS4 multisampled color fill test without 2-sample color targets boykopovar/AnyPS5#27800, test(agc): leave the LOD bias -192 case out on lavapipe before Mesa 26.1 boykopovar/AnyPS5#27777, test(agc): check filter mode 3 on devices without min/max filtering boykopovar/AnyPS5#27671, test(shader): keep the flat LDS bound stores of two lanes apart boykopovar/AnyPS5#28062), apart fromagc_driver_image_d16_load(llvmpipe quiets a signalling f16 NaN).python3 tools/check_conventions.pyandpython3 tools/pr_overlap.py --branch fix/agc-upload-cache-sparse-rewatch(no overlap; perf(agc): reuse read-only sparse buffer address uploads boykopovar/AnyPS5#27991 shares the file and merges cleanly) pass.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
Summary by CodeRabbit