ac/surface: allow linear swizzle mode automatic selection on gfx9 & 10
authorMarek Olšák <marek.olsak@amd.com>
Tue, 23 Jul 2019 05:55:12 +0000 (01:55 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 31 Jul 2019 02:06:23 +0000 (22:06 -0400)
let addrlib make the decision to get the same result as PAL.

src/amd/common/ac_surface.c

index 53353cdee18238feb8d0fb3bba98615ce2ebd0c8..a9052d068e9c9bce6e5484a9ac2176b0296e1de3 100644 (file)
@@ -982,7 +982,6 @@ gfx9_get_preferred_swizzle_mode(ADDR_HANDLE addrlib,
        /* TODO: We could allow some of these: */
        sin.forbiddenBlock.micro = 1; /* don't allow the 256B swizzle modes */
        sin.forbiddenBlock.var = 1; /* don't allow the variable-sized swizzle modes */
-       sin.forbiddenBlock.linear = 1; /* don't allow linear swizzle modes */
        sin.bpp = in->bpp;
        sin.width = in->width;
        sin.height = in->height;