Home
last modified time | relevance | path

Searched refs:binding_layout (Results 1 – 8 of 8) sorted by relevance

/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_descriptor_set.c135 struct panvk_descriptor_set_binding_layout *binding_layout = in panvk_per_arch() local
138 binding_layout->type = binding->descriptorType; in panvk_per_arch()
139 binding_layout->array_size = binding->descriptorCount; in panvk_per_arch()
140 binding_layout->shader_stages = binding->stageFlags; in panvk_per_arch()
141 binding_layout->desc_ubo_stride = 0; in panvk_per_arch()
143 binding_layout->immutable_samplers = immutable_samplers; in panvk_per_arch()
144 immutable_samplers += binding_layout->array_size; in panvk_per_arch()
145 for (unsigned j = 0; j < binding_layout->array_size; j++) { in panvk_per_arch()
147 binding_layout->immutable_samplers[j] = sampler; in panvk_per_arch()
151 switch (binding_layout->type) { in panvk_per_arch()
[all …]
Dpanvk_descriptor_set.c159 const struct panvk_descriptor_set_binding_layout *binding_layout = in panvk_CreatePipelineLayout() local
162 if (binding_layout->immutable_samplers) { in panvk_CreatePipelineLayout()
163 for (unsigned s = 0; s < binding_layout->array_size; s++) { in panvk_CreatePipelineLayout()
164 struct panvk_sampler *sampler = binding_layout->immutable_samplers[s]; in panvk_CreatePipelineLayout()
169 _mesa_sha1_update(&ctx, &binding_layout->type, sizeof(binding_layout->type)); in panvk_CreatePipelineLayout()
170 _mesa_sha1_update(&ctx, &binding_layout->array_size, sizeof(binding_layout->array_size)); in panvk_CreatePipelineLayout()
171 … _mesa_sha1_update(&ctx, &binding_layout->shader_stages, sizeof(binding_layout->shader_stages)); in panvk_CreatePipelineLayout()
Dpanvk_private.h456 const struct panvk_descriptor_set_binding_layout *binding_layout = in panvk_pipeline_layout_ubo_index() local
460 binding_layout->type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; in panvk_pipeline_layout_ubo_index()
461 const uint32_t ubo_idx = is_dynamic ? binding_layout->dyn_ubo_idx : in panvk_pipeline_layout_ubo_index()
462 binding_layout->ubo_idx; in panvk_pipeline_layout_ubo_index()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_descriptor_set.c37 const struct v3dv_descriptor_set_binding_layout *binding_layout, in descriptor_bo_map() argument
44 uint32_t bo_size = v3dv_X(device, descriptor_bo_size)(binding_layout->type); in descriptor_bo_map()
46 binding_layout->type == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK); in descriptor_bo_map()
49 set->base_offset + binding_layout->descriptor_offset + in descriptor_bo_map()
89 const struct v3dv_descriptor_set_binding_layout *binding_layout = in v3dv_descriptor_map_get_descriptor() local
93 assert(array_index < binding_layout->array_size); in v3dv_descriptor_map_get_descriptor()
95 if (descriptor_type_is_dynamic(binding_layout->type)) { in v3dv_descriptor_map_get_descriptor()
98 binding_layout->dynamic_offset_index + array_index; in v3dv_descriptor_map_get_descriptor()
103 return &set->descriptors[binding_layout->descriptor_index + array_index]; in v3dv_descriptor_map_get_descriptor()
132 const struct v3dv_descriptor_set_binding_layout *binding_layout = in v3dv_descriptor_map_get_descriptor_bo() local
[all …]
Dv3dv_pipeline.c602 struct v3dv_descriptor_set_binding_layout *binding_layout = in lower_vulkan_resource_index() local
606 switch (binding_layout->type) { in lower_vulkan_resource_index()
613 pipeline_get_descriptor_map(state->pipeline, binding_layout->type, in lower_vulkan_resource_index()
629 if (binding_layout->type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER || in lower_vulkan_resource_index()
630 binding_layout->type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC) { in lower_vulkan_resource_index()
636 binding_layout->array_size, in lower_vulkan_resource_index()
641 if (binding_layout->type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER || in lower_vulkan_resource_index()
642 binding_layout->type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC || in lower_vulkan_resource_index()
643 binding_layout->type == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK) { in lower_vulkan_resource_index()
735 struct v3dv_descriptor_set_binding_layout *binding_layout = in lower_tex_src_to_offset() local
[all …]
/third_party/mesa3d/src/amd/vulkan/
Dradv_descriptor_set.c1207 const struct radv_descriptor_set_binding_layout *binding_layout = in radv_update_descriptor_sets_impl() local
1216 binding_layout->immutable_samplers_offset && in radv_update_descriptor_sets_impl()
1217 !binding_layout->immutable_samplers_equal; in radv_update_descriptor_sets_impl()
1218 const uint32_t *samplers = radv_immutable_samplers(set->header.layout, binding_layout); in radv_update_descriptor_sets_impl()
1221 ptr += binding_layout->offset / 4; in radv_update_descriptor_sets_impl()
1232 ptr += binding_layout->size * writeset->dstArrayElement / 4; in radv_update_descriptor_sets_impl()
1233 buffer_list += binding_layout->buffer_offset; in radv_update_descriptor_sets_impl()
1240 idx += binding_layout->dynamic_offset_offset; in radv_update_descriptor_sets_impl()
1267 unsigned sampler_offset = radv_combined_image_descriptor_sampler_offset(binding_layout); in radv_update_descriptor_sets_impl()
1270 writeset->pImageInfo + j, !binding_layout->immutable_samplers_offset); in radv_update_descriptor_sets_impl()
[all …]
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_descriptor_set.c1012 const struct tu_descriptor_set_binding_layout *binding_layout = in tu_update_descriptor_sets() local
1018 ptr += binding_layout->dynamic_offset_offset / 4; in tu_update_descriptor_sets()
1021 ptr += binding_layout->offset / 4; in tu_update_descriptor_sets()
1026 dstSetOverride && binding_layout->immutable_samplers_offset; in tu_update_descriptor_sets()
1028 tu_immutable_samplers(set->layout, binding_layout); in tu_update_descriptor_sets()
1030 ptr += (binding_layout->size / 4) * writeset->dstArrayElement; in tu_update_descriptor_sets()
1053 !binding_layout->immutable_samplers_offset); in tu_update_descriptor_sets()
1059 if (!binding_layout->immutable_samplers_offset) in tu_update_descriptor_sets()
1073 ptr += binding_layout->size / 4; in tu_update_descriptor_sets()
1173 const struct tu_descriptor_set_binding_layout *binding_layout = in tu_CreateDescriptorUpdateTemplate() local
[all …]
Dtu_shader.c168 struct tu_descriptor_set_binding_layout *binding_layout = in lower_vulkan_resource_index() local
174 switch (binding_layout->type) { in lower_vulkan_resource_index()
178 binding_layout->dynamic_offset_offset) / (4 * A6XX_TEX_CONST_DWORDS); in lower_vulkan_resource_index()
182 base = binding_layout->offset / (4 * A6XX_TEX_CONST_DWORDS); in lower_vulkan_resource_index()
186 unsigned stride = binding_layout->size / (4 * A6XX_TEX_CONST_DWORDS); in lower_vulkan_resource_index()