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:
committed by
Marge Bot
parent
17ccc80920
commit
490ddbd0b7
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user