mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-06 13:30:00 +00:00
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 <[email protected]>
This commit is contained in:
1 parent
bb2624a533
commit
4aa81fbd8a
1 file changed
+1
-1
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user