mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 01:30:08 +01:00
microsoft/spirv_to_dxil: Constify the descriptor binding mapping fields
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>
This commit is contained in:
parent
c86ea7daa3
commit
e8fd20da90
2 changed files with 4 additions and 3 deletions
|
|
@ -131,7 +131,7 @@ struct dxil_spirv_vulkan_binding {
|
|||
|
||||
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
|
||||
|
|
@ -148,7 +148,7 @@ struct dxil_spirv_runtime_conf {
|
|||
} 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.
|
||||
|
|
|
|||
|
|
@ -531,7 +531,8 @@ dzn_pipeline_layout_create(struct dzn_device *device,
|
|||
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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue