this is supposed to return the address at the start of the buffer,
not the address at the start of the memory allocation
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19274>
{
LVP_FROM_HANDLE(lvp_buffer, buffer, pInfo->buffer);
- return (VkDeviceAddress)(uintptr_t)buffer->pmem;
+ return (VkDeviceAddress)(uintptr_t)((char*)buffer->pmem + buffer->offset);
}
VKAPI_ATTR uint64_t VKAPI_CALL lvp_GetBufferOpaqueCaptureAddress(