vulkan: constify vk_acceleration_structure_get_va()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33599>
This commit is contained in:
Samuel Pitoiset 2025-02-12 17:31:47 +01:00 committed by Marge Bot
parent e93592dc62
commit a03e391aa3
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ static const uint32_t ploc_spv[] = {
};
VkDeviceAddress
vk_acceleration_structure_get_va(struct vk_acceleration_structure *accel_struct)
vk_acceleration_structure_get_va(const struct vk_acceleration_structure *accel_struct)
{
VkBufferDeviceAddressInfo info = {
.sType = VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO,

View file

@ -52,7 +52,7 @@ struct vk_acceleration_structure {
uint64_t size;
};
VkDeviceAddress vk_acceleration_structure_get_va(struct vk_acceleration_structure *accel_struct);
VkDeviceAddress vk_acceleration_structure_get_va(const struct vk_acceleration_structure *accel_struct);
VK_DEFINE_NONDISP_HANDLE_CASTS(vk_acceleration_structure, base, VkAccelerationStructureKHR,
VK_OBJECT_TYPE_ACCELERATION_STRUCTURE_KHR)