Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yusuf Khan
mesa
Commits
9c97dcf6
Commit
9c97dcf6
authored
Oct 30, 2022
by
Yusuf Khan
Browse files
nvk: support KHR_buffer_device_address
Signed-off-by:
Yusuf Khan
<
yusisamerican@gmail.com
>
parent
7f459fb0
Pipeline
#725153
waiting for manual action with stages
in 6 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/nouveau/vulkan/nvk_buffer.c
View file @
9c97dcf6
...
...
@@ -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
,
...
...
src/nouveau/vulkan/nvk_physical_device.c
View file @
9c97dcf6
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment