From bf93fd46e21393c9e918fd0cf47df2cbb080b714 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 27 Dec 2022 17:34:58 -0500 Subject: [PATCH] asahi: Clang-format the twiddled tests There are no outstanding commits to these files in any branch, so they don't need to be considered for the rebasing script. That said, they are massive and bottleneck the rebasing script, so we'll want to split them out to keep rebasing efficient. (Nominally I should make the rebasing script less stupid but with these files ignored it works pretty well.) Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/layout/tests/test-comp-twiddled.cpp | 9 +++++---- src/asahi/layout/tests/test-uncomp-twiddled.cpp | 13 +++++++------ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/asahi/layout/tests/test-comp-twiddled.cpp b/src/asahi/layout/tests/test-comp-twiddled.cpp index 1a69cd0787f..22ae0d540d3 100644 --- a/src/asahi/layout/tests/test-comp-twiddled.cpp +++ b/src/asahi/layout/tests/test-comp-twiddled.cpp @@ -14329,9 +14329,10 @@ TEST(CompTwiddled, SizeTests) ail_make_miptree(&layout); - EXPECT_EQ(layout.size_B, test.size) << - test.width << "x" << test.height << "x" << test.depth << " " << (int)test.levels << - "L " << util_format_short_name(test.format) << - " compressed texture has wrong allocation size, off by " << ((int)layout.size_B - (int)test.size); + EXPECT_EQ(layout.size_B, test.size) + << test.width << "x" << test.height << "x" << test.depth << " " + << (int)test.levels << "L " << util_format_short_name(test.format) + << " compressed texture has wrong allocation size, off by " + << ((int)layout.size_B - (int)test.size); } } diff --git a/src/asahi/layout/tests/test-uncomp-twiddled.cpp b/src/asahi/layout/tests/test-uncomp-twiddled.cpp index c8841b4fcb6..60d5a217d2c 100644 --- a/src/asahi/layout/tests/test-uncomp-twiddled.cpp +++ b/src/asahi/layout/tests/test-uncomp-twiddled.cpp @@ -7,8 +7,8 @@ #include "layout.h" /* - * Test uncompressed texture sizes. All test cases in this file are extracted from - * texture structure dumps in Metal. + * Test uncompressed texture sizes. All test cases in this file are extracted + * from texture structure dumps in Metal. */ struct sizetest { enum pipe_format format; @@ -4766,9 +4766,10 @@ TEST(UncompTwiddled, SizeTests) ail_make_miptree(&layout); - EXPECT_EQ(layout.size_B, test.size) << - test.width << "x" << test.height << "x" << test.depth << " " << (int)test.levels << - "L " << util_format_short_name(test.format) << - " uncompressed texture has wrong allocation size, off by " << ((int)layout.size_B - (int)test.size); + EXPECT_EQ(layout.size_B, test.size) + << test.width << "x" << test.height << "x" << test.depth << " " + << (int)test.levels << "L " << util_format_short_name(test.format) + << " uncompressed texture has wrong allocation size, off by " + << ((int)layout.size_B - (int)test.size); } }