Reviewed-by: Eric Anholt <eric@anholt.net>
/* Iterate over each attribute (could be done in pairs?)
*/
for (i = 0; i < c->nr_attrs; i++) {
- GLuint delta = c->offset[c->idx_to_attr[i]];
+ GLuint delta = ATTR_SIZE * (2*c->header_regs + i);
if (c->idx_to_attr[i] == VERT_RESULT_EDGE) {
if (force_edgeflag)
}
if (i & 1) {
- GLuint delta = c->offset[c->idx_to_attr[c->nr_attrs - 1]] + ATTR_SIZE;
+ GLuint delta = c->vue_map.num_slots * ATTR_SIZE;
brw_MOV(p, deref_4f(dest_ptr, delta), brw_imm_f(0));
}