zink: implement PIPE_RESOURCE_FLAG_DONT_MAP_DIRECTLY when resizable bar not present
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 30 Jul 2021 13:20:10 +0000 (09:20 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 30 Aug 2021 13:46:04 +0000 (13:46 +0000)
commit849033e6d8ba7befeb560278bb9b24c2469de498
treeff8298c0489a84e0f3b10bf9a0572f9407c55eff
parent9a8960de53ab21592510056bb9681991565564c8
zink: implement PIPE_RESOURCE_FLAG_DONT_MAP_DIRECTLY when resizable bar not present

this helps in some cases to avoid allocating and mapping large staging resources

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12579>
src/gallium/drivers/zink/zink_resource.c