mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
ac/surface/tests: add the test for ADDR3_256B_2D
Signed-off-by: Leo Liu <leo.liu@amd.com> Acked-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29541>
This commit is contained in:
parent
59e813d953
commit
448c716358
1 changed files with 3 additions and 2 deletions
|
|
@ -314,8 +314,9 @@ static void test_modifier(const struct radeon_info *info,
|
|||
unsigned block_size_bits;
|
||||
|
||||
if (info->gfx_level >= GFX12) {
|
||||
assert(surf.u.gfx9.swizzle_mode == ADDR3_64KB_2D);
|
||||
block_size_bits = 16;
|
||||
assert(surf.u.gfx9.swizzle_mode == ADDR3_64KB_2D ||
|
||||
surf.u.gfx9.swizzle_mode == ADDR3_256B_2D);
|
||||
block_size_bits = (surf.u.gfx9.swizzle_mode == ADDR3_256B_2D) ? 8 : 16;
|
||||
} else {
|
||||
block_size_bits = surf.u.gfx9.swizzle_mode >= ADDR_SW_256KB_Z_X ? 18 : 16;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue