spirv_to_dxil() doesn't modify those, so let's constify them.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16221>
struct dxil_spirv_vulkan_descriptor_set {
uint32_t binding_count;
- struct dxil_spirv_vulkan_binding *bindings;
+ const struct dxil_spirv_vulkan_binding *bindings;
};
#define DXIL_SPIRV_MAX_VIEWPORT 16
} push_constant_cbv;
uint32_t descriptor_set_count;
- struct dxil_spirv_vulkan_descriptor_set *descriptor_sets;
+ const struct dxil_spirv_vulkan_descriptor_set *descriptor_sets;
// Set true if vertex and instance ids have already been converted to
// zero-based. Otherwise, runtime_data will be required to lower them.
layout->set_count = pCreateInfo->setLayoutCount;
for (uint32_t j = 0; j < layout->set_count; j++) {
VK_FROM_HANDLE(dzn_descriptor_set_layout, set_layout, pCreateInfo->pSetLayouts[j]);
- struct dxil_spirv_vulkan_binding *bindings = layout->binding_translation[j].bindings;
+ struct dxil_spirv_vulkan_binding *bindings =
+ (struct dxil_spirv_vulkan_binding *)layout->binding_translation[j].bindings;
layout->sets[j].dynamic_buffer_count = set_layout->dynamic_buffers.count;
memcpy(layout->sets[j].range_desc_count, set_layout->range_desc_count,