diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c index bdc9911b587..6b77ad16e61 100644 --- a/src/gallium/frontends/lavapipe/lvp_device.c +++ b/src/gallium/frontends/lavapipe/lvp_device.c @@ -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, diff --git a/src/gallium/frontends/lavapipe/lvp_private.h b/src/gallium/frontends/lavapipe/lvp_private.h index d928d74eb11..b6904df915f 100644 --- a/src/gallium/frontends/lavapipe/lvp_private.h +++ b/src/gallium/frontends/lavapipe/lvp_private.h @@ -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 {