Home
last modified time | relevance | path

Searched refs:set_layout (Results 1 – 21 of 21) sorted by relevance

/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_descriptor_set.c36 struct lvp_descriptor_set_layout *set_layout; in lvp_CreateDescriptorSetLayout() local
62 num_bindings * sizeof(set_layout->binding[0]) + in lvp_CreateDescriptorSetLayout()
65 set_layout = vk_zalloc2(&device->vk.alloc, pAllocator, size, 8, in lvp_CreateDescriptorSetLayout()
67 if (!set_layout) in lvp_CreateDescriptorSetLayout()
70 vk_object_base_init(&device->vk, &set_layout->base, in lvp_CreateDescriptorSetLayout()
72 set_layout->ref_cnt = 1; in lvp_CreateDescriptorSetLayout()
75 (struct lvp_sampler **)&set_layout->binding[num_bindings]; in lvp_CreateDescriptorSetLayout()
77 set_layout->alloc = pAllocator; in lvp_CreateDescriptorSetLayout()
78 set_layout->binding_count = num_bindings; in lvp_CreateDescriptorSetLayout()
79 set_layout->shader_stages = 0; in lvp_CreateDescriptorSetLayout()
[all …]
Dlvp_cmd_buffer.c534 …struct lvp_descriptor_set_layout **set_layout = vk_zalloc(cmd_buffer->queue.alloc, sizeof(*set_lay… in lvp_CmdBindDescriptorSets() local
535 cmd->driver_data = set_layout; in lvp_CmdBindDescriptorSets()
537 set_layout[i] = layout->set[i].layout; in lvp_CmdBindDescriptorSets()
Dlvp_execute.c1249 struct lvp_descriptor_set_layout **set_layout = cmd->driver_data; in handle_compute_descriptor_sets() local
1253 increment_dyn_info(dyn_info, set_layout[i], false); in handle_compute_descriptor_sets()
1260 increment_dyn_info(dyn_info, set_layout[bds->first_set + i], true); in handle_compute_descriptor_sets()
1268 struct lvp_descriptor_set_layout **set_layout = cmd->driver_data; in handle_descriptor_sets() local
1283 increment_dyn_info(&dyn_info, set_layout[i], false); in handle_descriptor_sets()
1304 increment_dyn_info(&dyn_info, set_layout[bds->first_set + i], true); in handle_descriptor_sets()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_descriptor_set.c48 struct panvk_descriptor_set_layout *set_layout; in panvk_CreateDescriptorSetLayout() local
70 size_t size = sizeof(*set_layout) + in panvk_CreateDescriptorSetLayout()
74 set_layout = vk_object_zalloc(&device->vk, pAllocator, size, in panvk_CreateDescriptorSetLayout()
76 if (!set_layout) { in panvk_CreateDescriptorSetLayout()
82 (struct panvk_sampler **)((uint8_t *)set_layout + sizeof(*set_layout) + in panvk_CreateDescriptorSetLayout()
86 set_layout->flags = pCreateInfo->flags; in panvk_CreateDescriptorSetLayout()
87 set_layout->binding_count = num_bindings; in panvk_CreateDescriptorSetLayout()
95 &set_layout->bindings[binding->binding]; in panvk_CreateDescriptorSetLayout()
151 set_layout->num_descs = desc_idx; in panvk_CreateDescriptorSetLayout()
152 set_layout->num_samplers = sampler_idx; in panvk_CreateDescriptorSetLayout()
[all …]
Dpanvk_vX_cs.c354 const struct panvk_descriptor_set_layout *set_layout = in panvk_per_arch() local
359 if (!set_layout) in panvk_per_arch()
363 unsigned num_ubos = (set_layout->num_dynoffsets != 0) + set_layout->num_ubos; in panvk_per_arch()
366 memcpy(&ubos[offset], set->ubos, set_layout->num_ubos * sizeof(*ubos)); in panvk_per_arch()
367 if (set_layout->num_dynoffsets) { in panvk_per_arch()
370 &ubos[offset + set_layout->num_ubos]); in panvk_per_arch()
Dpanvk_vX_shader.c148 struct panvk_descriptor_set_layout *set_layout = ctx->layout->sets[set].layout; in lower_vulkan_resource_index() local
150 &set_layout->bindings[binding]; in lower_vulkan_resource_index()
/third_party/mesa3d/src/intel/vulkan/
Danv_descriptor_set.c386 VK_MULTIALLOC_DECL(&ma, struct anv_descriptor_set_layout, set_layout, 1); in anv_CreateDescriptorSetLayout()
396 set_layout->ref_cnt = 1; in anv_CreateDescriptorSetLayout()
397 set_layout->binding_count = num_bindings; in anv_CreateDescriptorSetLayout()
401 memset(&set_layout->binding[b], -1, sizeof(set_layout->binding[b])); in anv_CreateDescriptorSetLayout()
403 set_layout->binding[b].flags = 0; in anv_CreateDescriptorSetLayout()
404 set_layout->binding[b].data = 0; in anv_CreateDescriptorSetLayout()
405 set_layout->binding[b].max_plane_count = 0; in anv_CreateDescriptorSetLayout()
406 set_layout->binding[b].array_size = 0; in anv_CreateDescriptorSetLayout()
407 set_layout->binding[b].immutable_samplers = NULL; in anv_CreateDescriptorSetLayout()
424 set_layout->binding[b].immutable_samplers = (void *)(uintptr_t)(j + 1); in anv_CreateDescriptorSetLayout()
[all …]
Danv_cmd_buffer.c910 struct anv_descriptor_set_layout *set_layout = in anv_cmd_buffer_bind_descriptor_set() local
913 VkShaderStageFlags stages = set_layout->shader_stages; in anv_cmd_buffer_bind_descriptor_set()
971 if (set_layout->dynamic_offset_count > 0) { in anv_cmd_buffer_bind_descriptor_set()
979 assert(set_layout->dynamic_offset_count <= *dynamic_offset_count); in anv_cmd_buffer_bind_descriptor_set()
980 assert(dynamic_offset_start + set_layout->dynamic_offset_count <= in anv_cmd_buffer_bind_descriptor_set()
983 for (uint32_t i = 0; i < set_layout->dynamic_offset_count; i++) { in anv_cmd_buffer_bind_descriptor_set()
990 dirty_stages |= set_layout->dynamic_offset_stages[i] & stages; in anv_cmd_buffer_bind_descriptor_set()
994 *dynamic_offsets += set_layout->dynamic_offset_count; in anv_cmd_buffer_bind_descriptor_set()
995 *dynamic_offset_count -= set_layout->dynamic_offset_count; in anv_cmd_buffer_bind_descriptor_set()
1457 struct anv_descriptor_set_layout *set_layout = layout->set[_set].layout; in anv_CmdPushDescriptorSetKHR() local
[all …]
Danv_nir_lower_ycbcr_textures.c218 const struct anv_descriptor_set_layout *set_layout = in anv_nir_lower_ycbcr_textures_instr() local
221 &set_layout->binding[var->data.binding]; in anv_nir_lower_ycbcr_textures_instr()
Danv_nir_apply_pipeline_layout.c1457 struct anv_descriptor_set_layout *set_layout = layout->set[set].layout; in anv_nir_apply_pipeline_layout() local
1458 for (unsigned b = 0; b < set_layout->binding_count; b++) { in anv_nir_apply_pipeline_layout()
1470 const struct anv_descriptor_set_layout *set_layout = layout->set[set].layout; in anv_nir_apply_pipeline_layout() local
1471 for (unsigned b = 0; b < set_layout->binding_count; b++) { in anv_nir_apply_pipeline_layout()
Danv_private.h2137 anv_descriptor_set_layout_descriptor_buffer_size(const struct anv_descriptor_set_layout *set_layout,
/third_party/mesa3d/src/amd/vulkan/
Dradv_descriptor_set.c96 struct radv_descriptor_set_layout *set_layout; in radv_CreateDescriptorSetLayout() local
136 set_layout = in radv_CreateDescriptorSetLayout()
138 if (!set_layout) in radv_CreateDescriptorSetLayout()
141 vk_object_base_init(&device->vk, &set_layout->base, VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT); in radv_CreateDescriptorSetLayout()
143 set_layout->flags = pCreateInfo->flags; in radv_CreateDescriptorSetLayout()
144 set_layout->layout_size = size; in radv_CreateDescriptorSetLayout()
147 uint32_t *samplers = (uint32_t *)&set_layout->binding[num_bindings]; in radv_CreateDescriptorSetLayout()
153 set_layout->ycbcr_sampler_offsets_offset = (char *)ycbcr_sampler_offsets - (char *)set_layout; in radv_CreateDescriptorSetLayout()
161 set_layout->ycbcr_sampler_offsets_offset = 0; in radv_CreateDescriptorSetLayout()
167 vk_object_base_finish(&set_layout->base); in radv_CreateDescriptorSetLayout()
[all …]
Dradv_nir_lower_ycbcr_textures.c229 const struct radv_descriptor_set_layout *set_layout = in try_lower_tex_ycbcr() local
232 &set_layout->binding[var->data.binding]; in try_lower_tex_ycbcr()
234 radv_immutable_ycbcr_samplers(set_layout, var->data.binding); in try_lower_tex_ycbcr()
241 radv_immutable_samplers(set_layout, binding); in try_lower_tex_ycbcr()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_descriptor_set.c109 struct tu_descriptor_set_layout *set_layout; in tu_CreateDescriptorSetLayout() local
152 set_layout = vk_object_zalloc(&device->vk, pAllocator, size, in tu_CreateDescriptorSetLayout()
154 if (!set_layout) in tu_CreateDescriptorSetLayout()
157 set_layout->flags = pCreateInfo->flags; in tu_CreateDescriptorSetLayout()
160 struct tu_sampler *samplers = (void*) &set_layout->binding[num_bindings]; in tu_CreateDescriptorSetLayout()
168 vk_object_free(&device->vk, pAllocator, set_layout); in tu_CreateDescriptorSetLayout()
172 set_layout->binding_count = num_bindings; in tu_CreateDescriptorSetLayout()
173 set_layout->shader_stages = 0; in tu_CreateDescriptorSetLayout()
174 set_layout->has_immutable_samplers = false; in tu_CreateDescriptorSetLayout()
175 set_layout->size = 0; in tu_CreateDescriptorSetLayout()
[all …]
Dtu_shader.c197 struct tu_descriptor_set_layout *set_layout = layout->set[set].layout; in lower_vulkan_resource_index() local
199 &set_layout->binding[binding]; in lower_vulkan_resource_index()
474 const struct tu_descriptor_set_layout *set_layout = in lower_tex_ycbcr() local
477 &set_layout->binding[var->data.binding]; in lower_tex_ycbcr()
479 tu_immutable_ycbcr_samplers(set_layout, binding); in lower_tex_ycbcr()
Dtu_pipeline.c74 struct tu_descriptor_set_layout *set_layout = pipeline->layout->set[i].layout; in tu6_load_state_size() local
75 for (unsigned j = 0; j < set_layout->binding_count; j++) { in tu6_load_state_size()
76 struct tu_descriptor_set_binding_layout *binding = &set_layout->binding[j]; in tu6_load_state_size()
158 struct tu_descriptor_set_layout *set_layout = layout->set[i].layout; in tu6_emit_load_state() local
159 for (unsigned j = 0; j < set_layout->binding_count; j++) { in tu6_emit_load_state()
160 struct tu_descriptor_set_binding_layout *binding = &set_layout->binding[j]; in tu6_emit_load_state()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_descriptor_set.c335 V3DV_FROM_HANDLE(v3dv_descriptor_set_layout, set_layout, in v3dv_CreatePipelineLayout()
337 layout->set[set].layout = set_layout; in v3dv_CreatePipelineLayout()
340 for (uint32_t b = 0; b < set_layout->binding_count; b++) { in v3dv_CreatePipelineLayout()
341 dynamic_offset_count += set_layout->binding[b].array_size * in v3dv_CreatePipelineLayout()
342 set_layout->binding[b].dynamic_offset_count; in v3dv_CreatePipelineLayout()
345 layout->shader_stages |= set_layout->shader_stages; in v3dv_CreatePipelineLayout()
549 struct v3dv_descriptor_set_layout *set_layout; in v3dv_CreateDescriptorSetLayout() local
578 num_bindings * sizeof(set_layout->binding[0]); in v3dv_CreateDescriptorSetLayout()
582 set_layout = vk_object_zalloc(&device->vk, pAllocator, size, in v3dv_CreateDescriptorSetLayout()
585 if (!set_layout) in v3dv_CreateDescriptorSetLayout()
[all …]
Dv3dv_pipeline.c599 struct v3dv_descriptor_set_layout *set_layout = layout->set[set].layout; in lower_vulkan_resource_index() local
601 &set_layout->binding[binding]; in lower_vulkan_resource_index()
710 struct v3dv_descriptor_set_layout *set_layout = layout->set[set].layout; in lower_tex_src_to_offset() local
712 &set_layout->binding[binding]; in lower_tex_src_to_offset()
828 struct v3dv_descriptor_set_layout *set_layout = layout->set[set].layout; in lower_image_deref() local
830 &set_layout->binding[binding]; in lower_image_deref()
/third_party/gettext/gettext-tools/examples/hello-objc-gnome/
Dhello.m62 [buttonbar set_layout: GTK_BUTTONBOX_END];
/third_party/skia/third_party/externals/imgui/backends/
Dimgui_impl_vulkan.cpp773 VkDescriptorSetLayout set_layout[1] = { bd->DescriptorSetLayout }; in ImGui_ImplVulkan_CreatePipelineLayout() local
777 layout_info.pSetLayouts = set_layout; in ImGui_ImplVulkan_CreatePipelineLayout()
947 VkDescriptorSetLayout set_layout[1] = { bd->DescriptorSetLayout }; in ImGui_ImplVulkan_CreateDeviceObjects() local
951 layout_info.pSetLayouts = set_layout; in ImGui_ImplVulkan_CreateDeviceObjects()
/third_party/flutter/skia/third_party/externals/imgui/examples/
Dimgui_impl_vulkan.cpp547 VkDescriptorSetLayout set_layout[1] = { g_DescriptorSetLayout }; in ImGui_ImplVulkan_CreateDeviceObjects() local
551 layout_info.pSetLayouts = set_layout; in ImGui_ImplVulkan_CreateDeviceObjects()