mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 21:50:11 +01:00
ac/surface: don't forbid 256KB swizzle modes on smaller gfx11 chips
let addrlib make the right choice Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17864>
This commit is contained in:
parent
2c25dd0f27
commit
5c0b0f0058
1 changed files with 1 additions and 7 deletions
|
|
@ -1432,14 +1432,8 @@ static int gfx9_get_preferred_swizzle_mode(ADDR_HANDLE addrlib, const struct rad
|
|||
/* TODO: We could allow some of these: */
|
||||
sin.forbiddenBlock.micro = 1; /* don't allow the 256B swizzle modes */
|
||||
|
||||
if (info->gfx_level >= GFX11) {
|
||||
if ((1 << G_0098F8_NUM_PIPES(info->gb_addr_config)) <= 16) {
|
||||
sin.forbiddenBlock.gfx11.thin256KB = 1;
|
||||
sin.forbiddenBlock.gfx11.thick256KB = 1;
|
||||
}
|
||||
} else {
|
||||
if (info->gfx_level < GFX11)
|
||||
sin.forbiddenBlock.var = 1; /* don't allow the variable-sized swizzle modes */
|
||||
}
|
||||
|
||||
sin.bpp = in->bpp;
|
||||
sin.width = in->width;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue