From 4aa81fbd8aebfaaf9b288a8e2d1b56cb2b62fff5 Mon Sep 17 00:00:00 2001 From: milescoviello Date: Sun, 18 Oct 2026 05:18:16 +0000 Subject: [PATCH] test(agc): print the staged clear's expected byte count as a size_t The expected count in the failure message of the staged clear sampled read test is Threads * 4u + SampleTexelBytes, a std::size_t, but was formatted with %u. On LP64 hosts that is the only -Wformat warning in the tree, and the message would print the wrong value. Co-Authored-By: Claude Opus 5.5 --- .../libSceAgcDriver/tests/execution/StagedClearSampledRead.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/libs/prx/libSceAgcDriver/tests/execution/StagedClearSampledRead.cpp b/core/libs/prx/libSceAgcDriver/tests/execution/StagedClearSampledRead.cpp index 8997e9418a..f6016f8995 100644 --- a/core/libs/prx/libSceAgcDriver/tests/execution/StagedClearSampledRead.cpp +++ b/core/libs/prx/libSceAgcDriver/tests/execution/StagedClearSampledRead.cpp @@ -187,7 +187,7 @@ int main() { const auto written = Count(texels, SurfaceBytes, 0xff); const auto cleared = Count(texels, SurfaceBytes, 0x00); char message[320]; - std::snprintf(message, sizeof(message), "the sampled read stored %zu written and %zu cleared bytes of %zu, expected %u written", written, cleared, SurfaceBytes, Threads * 4u + SampleTexelBytes); + std::snprintf(message, sizeof(message), "the sampled read stored %zu written and %zu cleared bytes of %zu, expected %zu written", written, cleared, SurfaceBytes, Threads * 4u + SampleTexelBytes); Require(written == Threads * 4u + SampleTexelBytes && cleared == SurfaceBytes - written, message); for (std::uint32_t index = 0; index < Threads * 4u; ++index) { std::snprintf(message, sizeof(message), "component %u of thread %u is 0x%08x, expected the drawn 0x3f800000 the staged clear does not cover", index % 4u, index / 4u, outputData[index]);