Lines Matching defs:reg
51 /* Temporaries, allocated after last vertex reg.
76 static inline int vert_reg_to_vue_slot(struct brw_sf_compile *c, GLuint reg,
79 return (reg + c->urb_entry_read_offset) * 2 + half;
87 static inline int vert_reg_to_varying(struct brw_sf_compile *c, GLuint reg,
90 int vue_slot = vert_reg_to_vue_slot(c, reg, half);
283 GLuint reg, i;
305 reg = 3;
307 c->vert[i] = brw_vec8_grf(reg, 0);
308 reg += c->nr_attr_regs;
311 /* Temporaries, allocated after last vertex reg.
313 c->inv_det = brw_vec1_grf(reg, 0); reg++;
314 c->a1_sub_a0 = brw_vec8_grf(reg, 0); reg++;
315 c->a2_sub_a0 = brw_vec8_grf(reg, 0); reg++;
316 c->tmp = brw_vec8_grf(reg, 0); reg++;
320 c->prog_data.total_grf = reg;
361 GLuint reg,
366 bool is_last_attr = (reg == c->nr_setup_regs - 1);
373 interp = c->key.interp_mode[vert_reg_to_vue_slot(c, reg, 0)];
382 if (vert_reg_to_varying(c, reg, 1) != BRW_VARYING_SLOT_COUNT) {
385 interp = c->key.interp_mode[vert_reg_to_vue_slot(c, reg, 1)];
396 /* Calculates the predicate control for which channels of a reg
400 calculate_point_sprite_mask(struct brw_sf_compile *c, GLuint reg)
405 varying1 = vert_reg_to_varying(c, reg, 0);
413 varying2 = vert_reg_to_varying(c, reg, 1);