Lines Matching defs:attr

181       assert(exec->vtx.attr[i].size);
187 if (exec->vtx.attr[i].type == GL_DOUBLE ||
188 exec->vtx.attr[i].type == GL_UNSIGNED_INT64_ARB) {
190 memcpy(tmp, exec->vtx.attrptr[i], exec->vtx.attr[i].size * sizeof(GLfloat));
194 exec->vtx.attr[i].size,
196 exec->vtx.attr[i].type);
225 if (exec->vtx.attr[i].type != vbo->current[i].Format.Type ||
226 (exec->vtx.attr[i].size >> dmul_shift) != vbo->current[i].Format.Size) {
228 exec->vtx.attr[i].size >> dmul_shift,
229 exec->vtx.attr[i].type);
246 * \param attr VBO_ATTRIB_x vertex attribute value
250 GLuint attr, GLuint newSize, GLenum newType)
258 const GLuint oldSize = exec->vtx.attr[attr].size;
261 assert(attr < VBO_ATTRIB_MAX);
294 exec->vtx.attr[attr].size = newSize;
295 exec->vtx.attr[attr].active_size = newSize;
296 exec->vtx.attr[attr].type = newType;
298 exec->vtx.vertex_size_no_pos = exec->vtx.vertex_size - exec->vtx.attr[0].size;
302 exec->vtx.enabled |= BITFIELD64_BIT(attr);
304 if (attr != 0) {
306 unsigned offset = exec->vtx.attrptr[attr] - exec->vtx.vertex;
311 fi_type *old_first = exec->vtx.attrptr[attr] + oldSize;
312 fi_type *new_first = exec->vtx.attrptr[attr] + newSize;
343 ~BITFIELD64_BIT(attr);
347 if (exec->vtx.attrptr[i] > exec->vtx.attrptr[attr])
353 exec->vtx.attrptr[attr] = exec->vtx.vertex +
376 GLuint sz = exec->vtx.attr[j].size;
382 if (j == attr) {
387 exec->vtx.attr[j].type);
415 * \param attr VBO_ATTRIB_x vertex attribute value
418 vbo_exec_fixup_vertex(struct gl_context *ctx, GLuint attr,
423 assert(attr < VBO_ATTRIB_MAX);
425 if (newSize > exec->vtx.attr[attr].size ||
426 newType != exec->vtx.attr[attr].type) {
430 vbo_exec_wrap_upgrade_vertex(exec, attr, newSize, newType);
432 else if (newSize < exec->vtx.attr[attr].active_size) {
435 vbo_get_default_vals_as_union(exec->vtx.attr[attr].type);
440 for (i = newSize; i <= exec->vtx.attr[attr].size; i++)
441 exec->vtx.attrptr[attr][i-1] = id[i-1];
443 exec->vtx.attr[attr].active_size = newSize;
493 if (unlikely(exec->vtx.attr[A].active_size != N * sz || \
494 exec->vtx.attr[A].type != T)) { \
503 assert(exec->vtx.attr[A].type == T); \
509 int size = exec->vtx.attr[0].size; \
513 exec->vtx.attr[0].type != T)) { \
722 if (exec->vtx.attr[i].active_size != exec->eval.map1[i].sz)
750 if (exec->vtx.attr[i].active_size != exec->eval.map2[i].sz)
755 if (exec->vtx.attr[VBO_ATTRIB_NORMAL].active_size != 3)
841 if (exec->vtx.vertex_size && !exec->vtx.attr[VBO_ATTRIB_POS].size)
1100 exec->vtx.attr[i].size = 0;
1101 exec->vtx.attr[i].type = GL_FLOAT;
1102 exec->vtx.attr[i].active_size = 0;