From cd4fb5a434ca145eee3f4374ac1141664d6aa72d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 3 Sep 2020 13:11:37 -0700 Subject: [PATCH] freedreno/fdl: Add layout test for the Android CTS's MSAA mustpass surface. Rob had a question of if we were laying things out the same as the blob. This doesn't detect any difference in our layout, though. Part-of: --- src/freedreno/fdl/fd6_layout_test.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/freedreno/fdl/fd6_layout_test.c b/src/freedreno/fdl/fd6_layout_test.c index 6c917d4bffc..d8b4a032903 100644 --- a/src/freedreno/fdl/fd6_layout_test.c +++ b/src/freedreno/fdl/fd6_layout_test.c @@ -586,6 +586,22 @@ static const struct testcase testcases[] = { }, }, }, + + { + .format = PIPE_FORMAT_R8G8B8A8_UNORM, + .layout = { + .tile_mode = TILE6_3, + .ubwc = true, + .nr_samples = 4, + .width0 = 412, .height0 = 732, + .slices = { + { .offset = 0, .pitch = 7168 }, + }, + .ubwc_slices = { + { .offset = 0, .pitch = 128 }, + }, + }, + }, }; int