vkd3d: Fix some const warnings on MSVC.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2021-03-10 11:17:48 +01:00 committed by Joshie
parent ce62d3d700
commit cd876284e0
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ void vkd3d_acceleration_structure_build_info_cleanup(
if (info->geometries != info->geometries_stack)
vkd3d_free(info->geometries);
if (info->build_range_ptrs != info->build_range_ptr_stack)
vkd3d_free(info->build_range_ptrs);
vkd3d_free((void *)info->build_range_ptrs);
if (info->build_ranges != info->build_range_stack)
vkd3d_free(info->build_ranges);
}

View File

@ -30,10 +30,10 @@ static inline VkDeviceAddress vkd3d_va_map_get_block_address(VkDeviceAddress va)
return (va >> VKD3D_VA_BLOCK_SIZE_BITS) & VKD3D_VA_BLOCK_MASK;
}
static const struct vkd3d_va_block *vkd3d_va_map_find_block(const struct vkd3d_va_map *va_map, VkDeviceAddress va)
static struct vkd3d_va_block *vkd3d_va_map_find_block(struct vkd3d_va_map *va_map, VkDeviceAddress va)
{
VkDeviceAddress next_address = vkd3d_va_map_get_next_address(va);
const struct vkd3d_va_tree *tree = &va_map->va_tree;
struct vkd3d_va_tree *tree = &va_map->va_tree;
while (next_address && tree)
{
@ -221,7 +221,7 @@ void vkd3d_va_map_remove(struct vkd3d_va_map *va_map, const struct vkd3d_unique_
static struct vkd3d_unique_resource *vkd3d_va_map_deref_mutable(struct vkd3d_va_map *va_map, VkDeviceAddress va)
{
const struct vkd3d_va_block *block = vkd3d_va_map_find_block(va_map, va);
struct vkd3d_va_block *block = vkd3d_va_map_find_block(va_map, va);
struct vkd3d_unique_resource *resource = NULL;
if (block)