Lines Matching refs:ve
76 const struct pipe_vertex_element *ve = &elements[i]; in nvc0_vertex_state_create() local
77 const unsigned vbi = ve->vertex_buffer_index; in nvc0_vertex_state_create()
79 enum pipe_format fmt = ve->src_format; in nvc0_vertex_state_create()
99 src_offset_max = MAX2(src_offset_max, ve->src_offset); in nvc0_vertex_state_create()
101 if (so->vb_access_size[vbi] < (ve->src_offset + size)) in nvc0_vertex_state_create()
102 so->vb_access_size[vbi] = ve->src_offset + size; in nvc0_vertex_state_create()
104 if (unlikely(ve->instance_divisor)) { in nvc0_vertex_state_create()
107 if (ve->instance_divisor < so->min_instance_div[vbi]) in nvc0_vertex_state_create()
108 so->min_instance_div[vbi] = ve->instance_divisor; in nvc0_vertex_state_create()
120 transkey.element[j].input_format = ve->src_format; in nvc0_vertex_state_create()
122 transkey.element[j].input_offset = ve->src_offset; in nvc0_vertex_state_create()
123 transkey.element[j].instance_divisor = ve->instance_divisor; in nvc0_vertex_state_create()
169 struct pipe_vertex_element *ve = &nvc0->vertex->element[a].pipe; in nvc0_set_constant_vertex_attrib() local
170 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[ve->vertex_buffer_index]; in nvc0_set_constant_vertex_attrib()
174 const void *src = (const uint8_t *)vb->user_buffer + ve->src_offset; in nvc0_set_constant_vertex_attrib()
177 desc = util_format_description(ve->src_format); in nvc0_set_constant_vertex_attrib()
235 struct pipe_vertex_element *ve = &nvc0->vertex->element[i].pipe; in nvc0_update_user_vbufs() local
236 const unsigned b = ve->vertex_buffer_index; in nvc0_update_user_vbufs()
262 PUSH_DATAh(push, address[b] + ve->src_offset); in nvc0_update_user_vbufs()
263 PUSH_DATA (push, address[b] + ve->src_offset); in nvc0_update_user_vbufs()
316 const struct nvc0_vertex_element *ve; in nvc0_validate_vertex_buffers() local
324 ve = &vertex->element[i]; in nvc0_validate_vertex_buffers()
325 b = ve->pipe.vertex_buffer_index; in nvc0_validate_vertex_buffers()
330 if (ve->pipe.instance_divisor) { in nvc0_validate_vertex_buffers()
332 PUSH_DATA (push, ve->pipe.instance_divisor); in nvc0_validate_vertex_buffers()
341 offset = ve->pipe.src_offset + vb->buffer_offset; in nvc0_validate_vertex_buffers()
344 if (unlikely(ve->pipe.instance_divisor)) { in nvc0_validate_vertex_buffers()
349 PUSH_DATA (push, ve->pipe.instance_divisor); in nvc0_validate_vertex_buffers()
413 struct nvc0_vertex_element *ve; in nvc0_vertex_arrays_validate() local
480 ve = &vertex->element[i]; in nvc0_vertex_arrays_validate()
481 data[i] = ve->state; in nvc0_vertex_arrays_validate()
482 if (unlikely(const_vbos & (1 << ve->pipe.vertex_buffer_index))) { in nvc0_vertex_arrays_validate()