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>
This commit is contained in:
Faith Ekstrand
2023-03-20 17:02:40 -05:00
committed by Marge Bot
parent b4497e54be
commit f4a5b2d59e
2 changed files with 9 additions and 4 deletions

View File

@@ -1577,6 +1577,9 @@ _anv_combine_address(struct anv_batch *batch, void *location,
struct anv_device_memory {
struct vk_object_base base;
/** Client-requested allocaiton size */
uint64_t size;
struct list_head link;
struct anv_bo * bo;