ail: Test 63x63 cube map
This has a subtle interaction with page-aligned layers. Written while debugging dEQP-GLES3.functional.texture.filtering.cube.combinations.nearest_nearest_repeat_clamp Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21114>
This commit is contained in:
committed by
Marge Bot
parent
294351ff77
commit
9b2dc92228
@@ -42,6 +42,30 @@ TEST(Cubemap, Nonmipmapped)
|
||||
EXPECT_EQ(layout.size_B, ALIGN_POT(512 * 512 * 4 * 6, 0x4000));
|
||||
}
|
||||
|
||||
TEST(Cubemap, RoundsToOnePage)
|
||||
{
|
||||
struct ail_layout layout = {
|
||||
.width_px = 63,
|
||||
.height_px = 63,
|
||||
.depth_px = 6,
|
||||
.sample_count_sa = 1,
|
||||
.levels = 6,
|
||||
.tiling = AIL_TILING_TWIDDLED,
|
||||
.format = PIPE_FORMAT_R32_FLOAT,
|
||||
};
|
||||
|
||||
ail_make_miptree(&layout);
|
||||
|
||||
EXPECT_EQ(layout.level_offsets_B[0], 0);
|
||||
EXPECT_EQ(layout.level_offsets_B[1], 0x4000);
|
||||
EXPECT_EQ(layout.level_offsets_B[2], 0x5000);
|
||||
EXPECT_EQ(layout.level_offsets_B[3], 0x5400);
|
||||
EXPECT_EQ(layout.level_offsets_B[4], 0x5500);
|
||||
EXPECT_TRUE(layout.page_aligned_layers);
|
||||
EXPECT_EQ(layout.layer_stride_B, 0x8000);
|
||||
EXPECT_EQ(layout.size_B, 0x30000);
|
||||
}
|
||||
|
||||
TEST(Linear, SmokeTestBuffer)
|
||||
{
|
||||
struct ail_layout layout = {
|
||||
|
||||
Reference in New Issue
Block a user