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 <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20434>
This commit is contained in:

committed by
Marge Bot

parent
c4c4f0502b
commit
bf93fd46e2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user