Lines Matching refs:ve

58 	} ve[33];
107 state.ve[id].buffer = data[0] >> 27;
108 state.ve[id].valid = !!(data[0] & (1 << 26));
109 state.ve[id].type = (data[0] >> 16) & 0x1ff;
110 state.ve[id].offset = data[0] & 0x7ff;
111 state.ve[id].swizzle[0] = get_ve_component(data[1], 0);
112 state.ve[id].swizzle[1] = get_ve_component(data[1], 1);
113 state.ve[id].swizzle[2] = get_ve_component(data[1], 2);
114 state.ve[id].swizzle[3] = get_ve_component(data[1], 3);
117 static void vertices_sint16_out(const struct vertex_elements *ve, const int16_t *v, int max)
123 switch (ve->swizzle[c]) {
136 switch (ve->swizzle[c]) {
151 static void vertices_float_out(const struct vertex_elements *ve, const float *f, int max)
157 switch (ve->swizzle[c]) {
170 switch (ve->swizzle[c]) {
185 static void ve_out(const struct vertex_elements *ve, const void *ptr)
187 switch (ve->type) {
189 vertices_float_out(ve, ptr, 1);
192 vertices_float_out(ve, ptr, 2);
195 vertices_float_out(ve, ptr, 3);
198 vertices_float_out(ve, ptr, 4);
201 vertices_sint16_out(ve, ptr, 1);
204 vertices_sint16_out(ve, ptr, 2);
207 vertices_sint16_out(ve, ptr, 4);
210 vertices_sint16_out(ve, ptr, 1);
213 vertices_sint16_out(ve, ptr, 2);
216 vertices_sint16_out(ve, ptr, 4);
226 const struct vertex_elements *ve = &state.ve[i];
227 const struct vertex_buffer *vb = &state.vb[ve->buffer];
228 const void *ptr = vb->ptr + v * vb->pitch + ve->offset;
230 if (!ve->valid)
233 ve_out(ve, ptr);
235 while (++i <= state.num_ve && !state.ve[i].valid)
552 memset(state.ve, 0, sizeof(state.ve)); /* XXX? */