test(agc): print the staged clear's expected byte count as a size_t #7415
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7415"
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-18T05:18:19Z.
What
The failure message of
agc_driver_staged_clear_sampled_readformats its expected byte count,Threads * 4u + SampleTexelBytes(astd::size_t), with%u. On Linux with GCC 13 this is the only-Wformatwarning in the tree:The test only prints this when it fails, and then it would show the wrong number. The conversion is now
%zu, which the same format string already uses for its other three counts.Tested
Ubuntu 24.04, GCC 13.3, Release:
agc_driver_staged_clear_sampled_readpasses on an RTX 4070 Ti (NVIDIA 595.99.02);tools/check_conventions.py --base upstream/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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T19:53:08Z.
Checked the operand types (Threads is uint32_t, SampleTexelBytes is size_t, so the sum is size_t); %zu is right and matches the other counts in the format string. Merged.