ac/surface: handle S8 on gfx9
authorDave Airlie <airlied@redhat.com>
Mon, 18 Sep 2017 03:17:33 +0000 (20:17 -0700)
committerDave Airlie <airlied@redhat.com>
Wed, 20 Sep 2017 05:32:05 +0000 (15:32 +1000)
commitc4ac522511d20683c09441a9e96ddfbc1b540c00
tree834325c46dbee2e2b69d4b1193c2cc5762bdf1d8
parent39d539e321c6c97433a15660c9d9a20ad8657ff0
ac/surface: handle S8 on gfx9

If we don't have a depth piece, we don't get a correct
swizzle mode and we hit an assert in addrlib.

In case of no depth get the preferrred swizzle mode for
stencil alone.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_surface.c