iris: Use persistent mappings for pinned memory (userptr)
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Sep 2022 23:12:07 +0000 (16:12 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Dec 2022 21:46:03 +0000 (21:46 +0000)
commit465eb092ede759f873bb34e54b11721296be4c5a
tree10e5ca3f14f1ecabb5dfb080340c2add71df50a3
parentb82d545442538d91f46d7b7d384c10c15d12cbb7
iris: Use persistent mappings for pinned memory (userptr)

This is a port of Nicolai's b52721e3b693e113aa537d163c8a855169e7b75d
from radeonsi.  Because GL_AMD_pinned_memory guarantees that mappings
will refer to the same underlying page, we need to avoid using staging
maps.  Using a persistent map is a reasonable way to accomplish this.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19209>
src/gallium/drivers/iris/iris_resource.c