anv: Limit memory maps to the client-allocated size
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Mon, 20 Mar 2023 22:02:40 +0000 (17:02 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 20 Mar 2023 23:11:09 +0000 (23:11 +0000)
commitf4a5b2d59e19bac6977b3eb1364ad80a5ee4242e
tree0a86922fbe1bf606dd76a2c99a2a50eaa617ee6e
parentb4497e54be0870dfadc93ae2b6a101a9065ed485
anv: Limit memory maps to the client-allocated size

No need to expose extra padding or CCS data to the client map.  Now that
we have the data, we can also make the BindBufferMemory asserts a bit
more accurate.

Reviewed-by: Iván Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22031>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h