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:

committed by
Marge Bot

parent
b4497e54be
commit
f4a5b2d59e
@@ -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;
|
||||
|
Reference in New Issue
Block a user