zink: split mem unmap logic for images and buffers
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 29 Jul 2021 17:31:38 +0000 (13:31 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Aug 2021 19:40:27 +0000 (19:40 +0000)
commit89e2591e8d0c2af0f3861c9f44f8782fe696e0e6
treebc02598ac7de12b78bf9ea5af9bb01d41e05f5bb
parent6001ebc1b6745fff2f3276f4272e8904d51298c7
zink: split mem unmap logic for images and buffers

buffers should only be unmapped if they're explicitly marked for unmap,
but images should only be unmapped when running in 32bit, in which case
they need to always be unmapped

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12410>
src/gallium/drivers/zink/zink_resource.c
src/gallium/drivers/zink/zink_resource.h