• Home
  • Raw
  • Download

Lines Matching refs:ves

46    struct zink_vertex_elements_state *ves = CALLOC_STRUCT(zink_vertex_elements_state);  in zink_create_vertex_elements_state()  local
47 if (!ves) in zink_create_vertex_elements_state()
49 ves->hw_state.hash = _mesa_hash_pointer(ves); in zink_create_vertex_elements_state()
65 ves->binding_map[num_bindings] = binding; in zink_create_vertex_elements_state()
70 ves->bindings[binding].binding = binding; in zink_create_vertex_elements_state()
71ves->bindings[binding].inputRate = elem->instance_divisor ? VK_VERTEX_INPUT_RATE_INSTANCE : VK_VER… in zink_create_vertex_elements_state()
76ves->divisor[binding] = MIN2(elem->instance_divisor, screen->info.vdiv_props.maxVertexAttribDiviso… in zink_create_vertex_elements_state()
101 ves->decomposed_attrs |= BITFIELD_BIT(i); in zink_create_vertex_elements_state()
102 ves->decomposed_attrs_size = size; in zink_create_vertex_elements_state()
104 ves->decomposed_attrs_without_w |= BITFIELD_BIT(i); in zink_create_vertex_elements_state()
105 ves->decomposed_attrs_without_w_size = size; in zink_create_vertex_elements_state()
110ves->hw_state.dynattribs[i].sType = VK_STRUCTURE_TYPE_VERTEX_INPUT_ATTRIBUTE_DESCRIPTION_2_EXT; in zink_create_vertex_elements_state()
111 ves->hw_state.dynattribs[i].binding = binding; in zink_create_vertex_elements_state()
112 ves->hw_state.dynattribs[i].location = i; in zink_create_vertex_elements_state()
113 ves->hw_state.dynattribs[i].format = format; in zink_create_vertex_elements_state()
114 assert(ves->hw_state.dynattribs[i].format != VK_FORMAT_UNDEFINED); in zink_create_vertex_elements_state()
115 ves->hw_state.dynattribs[i].offset = elem->src_offset; in zink_create_vertex_elements_state()
117 ves->hw_state.attribs[i].binding = binding; in zink_create_vertex_elements_state()
118 ves->hw_state.attribs[i].location = i; in zink_create_vertex_elements_state()
119 ves->hw_state.attribs[i].format = format; in zink_create_vertex_elements_state()
120 assert(ves->hw_state.attribs[i].format != VK_FORMAT_UNDEFINED); in zink_create_vertex_elements_state()
121 ves->hw_state.attribs[i].offset = elem->src_offset; in zink_create_vertex_elements_state()
122ves->min_stride[binding] = MAX2(ves->min_stride[binding], elem->src_offset + vk_format_get_blocksi… in zink_create_vertex_elements_state()
126 u_foreach_bit(i, ves->decomposed_attrs | ves->decomposed_attrs_without_w) { in zink_create_vertex_elements_state()
138 …memcpy(&ves->hw_state.dynattribs[num_elements], &ves->hw_state.dynattribs[i], sizeof(VkVertexInput… in zink_create_vertex_elements_state()
139 ves->hw_state.dynattribs[num_elements].location = num_elements; in zink_create_vertex_elements_state()
140 ves->hw_state.dynattribs[num_elements].offset += j * size; in zink_create_vertex_elements_state()
142 …memcpy(&ves->hw_state.attribs[num_elements], &ves->hw_state.attribs[i], sizeof(VkVertexInputAttrib… in zink_create_vertex_elements_state()
143 ves->hw_state.attribs[num_elements].location = num_elements; in zink_create_vertex_elements_state()
144 ves->hw_state.attribs[num_elements].offset += j * size; in zink_create_vertex_elements_state()
149 ves->hw_state.num_bindings = num_bindings; in zink_create_vertex_elements_state()
150 ves->hw_state.num_attribs = num_elements; in zink_create_vertex_elements_state()
153ves->hw_state.dynbindings[i].sType = VK_STRUCTURE_TYPE_VERTEX_INPUT_BINDING_DESCRIPTION_2_EXT; in zink_create_vertex_elements_state()
154 ves->hw_state.dynbindings[i].binding = ves->bindings[i].binding; in zink_create_vertex_elements_state()
155 ves->hw_state.dynbindings[i].inputRate = ves->bindings[i].inputRate; in zink_create_vertex_elements_state()
156 if (ves->divisor[i]) in zink_create_vertex_elements_state()
157 ves->hw_state.dynbindings[i].divisor = ves->divisor[i]; in zink_create_vertex_elements_state()
159 ves->hw_state.dynbindings[i].divisor = 1; in zink_create_vertex_elements_state()
163 ves->hw_state.b.bindings[i].binding = ves->bindings[i].binding; in zink_create_vertex_elements_state()
164 ves->hw_state.b.bindings[i].inputRate = ves->bindings[i].inputRate; in zink_create_vertex_elements_state()
165 if (ves->divisor[i]) { in zink_create_vertex_elements_state()
166 ves->hw_state.b.divisors[ves->hw_state.b.divisors_present].divisor = ves->divisor[i]; in zink_create_vertex_elements_state()
167ves->hw_state.b.divisors[ves->hw_state.b.divisors_present].binding = ves->bindings[i].binding; in zink_create_vertex_elements_state()
168 ves->hw_state.b.divisors_present++; in zink_create_vertex_elements_state()
172 return ves; in zink_create_vertex_elements_state()
235 void *ves) in zink_delete_vertex_elements_state() argument
237 FREE(ves); in zink_delete_vertex_elements_state()