iris: Add an assert to iris_bo_gem_mmap_legacy()
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 16 Jul 2021 14:39:56 +0000 (09:39 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Aug 2021 19:29:59 +0000 (19:29 +0000)
commit373f0d6accd197812a9de00e388e5b86a5ddd7ff
tree4863ebbfef6bbfa7213b0b9250c0c7636e858dad
parent24031700a7f6f38826d3a2ff4c5aa4b7c773c919
iris: Add an assert to iris_bo_gem_mmap_legacy()

It only supports two caching modes so we should assert that the only
mode we ever see is one of them.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11888>
src/gallium/drivers/iris/iris_bufmgr.c