lavapipe: fix BufferDeviceAddress usage

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>
This commit is contained in:
Mike Blumenkrantz
2022-10-22 12:47:29 -04:00
committed by Marge Bot
parent 17ccc80920
commit 490ddbd0b7
+1 -1
View File
@@ -440,7 +440,7 @@ VKAPI_ATTR VkDeviceAddress VKAPI_CALL lvp_GetBufferDeviceAddress(
{
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(