Commit 9c97dcf6 authored by Yusuf Khan's avatar Yusuf Khan
Browse files

nvk: support KHR_buffer_device_address



Signed-off-by: Yusuf Khan's avatarYusuf Khan <yusisamerican@gmail.com>
parent 7f459fb0
Pipeline #725153 waiting for manual action with stages
in 6 seconds
......@@ -65,6 +65,31 @@ nvk_GetBufferMemoryRequirements2(VkDevice _device,
}
}
VKAPI_ATTR VkDeviceAddress VKAPI_CALL
nvk_GetBufferDeviceAddress(VkDevice device,
const VkBufferDeviceAddressInfoKHR *pInfo)
{
VK_FROM_HANDLE(nvk_buffer, buffer, pInfo->buffer);
return buffer->addr;
}
VKAPI_ATTR VkDeviceAddress VKAPI_CALL
nvk_GetBufferOpaqueCaptureAddress(VkDevice device,
const VkBufferDeviceAddressInfoKHR *pInfo)
{
return 0;
}
VKAPI_ATTR VkDeviceAddress VKAPI_CALL
nvk_GetDeviceMemoryOpaqueCaptureAddress(VkDevice device,
const VkDeviceMemoryOpaqueCaptureAddressInfoKHR *pInfo)
{
VK_FROM_HANDLE(nvk_device_memory, memory, pInfo->memory);
return memory->bo->offset;
}
VKAPI_ATTR VkResult VKAPI_CALL
nvk_BindBufferMemory2(VkDevice _device,
uint32_t bindInfoCount,
......
......@@ -368,6 +368,7 @@ nvk_get_device_extensions(const struct nvk_physical_device *device,
.KHR_swapchain_mutable_format = true,
#endif
.KHR_variable_pointers = true,
.KHR_buffer_device_address = true,
.EXT_border_color_swizzle = true,
.EXT_custom_border_color = true,
.EXT_extended_dynamic_state = true,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment