lavapipe: store binding offset for buffers

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19274>
This commit is contained in:
Mike Blumenkrantz
2022-10-22 12:47:16 -04:00
committed by Marge Bot
parent 7cca889ecd
commit 17ccc80920
2 changed files with 2 additions and 0 deletions
@@ -2040,6 +2040,7 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_BindBufferMemory2(VkDevice _device,
LVP_FROM_HANDLE(lvp_buffer, buffer, pBindInfos[i].buffer);
buffer->pmem = mem->pmem;
buffer->offset = pBindInfos[i].memoryOffset;
device->pscreen->resource_bind_backing(device->pscreen,
buffer->bo,
mem->pmem,
@@ -450,6 +450,7 @@ struct lvp_buffer {
struct pipe_memory_allocation *pmem;
struct pipe_resource *bo;
uint64_t total_size;
uint64_t offset;
};
struct lvp_buffer_view {