ac/surface: fix an assertion failure on gfx9 in CMASK computation
authorMarek Olšák <marek.olsak@amd.com>
Fri, 20 Dec 2019 21:19:54 +0000 (16:19 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 20 Dec 2019 22:57:08 +0000 (22:57 +0000)
commit7d65614422736de32214fc28b0054692f4e5e48f
treee9f1d2e20c50e5c38a7166a6aa70efd492a870e2
parent3e1e4ad13da1581f11b833fba021aaf209c02fff
ac/surface: fix an assertion failure on gfx9 in CMASK computation

addrlib only allows the 2D resource type with CMASK.

Fixes: 69ea473eeb9 "amd/addrlib: update to the latest version"
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3187>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3187>
src/amd/common/ac_surface.c