/* Need to locate the two positions present in vertex + header.
* These are currently hardcoded:
*/
- c.header_position_offset = ATTR_SIZE;
+ c.ndc_offset = ATTR_SIZE;
if (intel->gen == 5)
header_regs = 3;
GLboolean need_direction;
- GLuint header_position_offset;
+ GLuint ndc_offset;
/** Mapping from VERT_RESULT_* to offset within the VUE. */
GLuint offset[VERT_RESULT_MAX];
/** Mapping from attribute index to VERT_RESULT_* */
struct brw_indirect vert )
{
struct brw_compile *p = &c->func;
- struct brw_reg z = deref_1f(vert, c->header_position_offset +
+ struct brw_reg z = deref_1f(vert, c->ndc_offset +
2 * type_sz(BRW_REGISTER_TYPE_F));
brw_ADD(p, z, z, vec1(c->reg.offset));
*/
brw_MOV(p, tmp, deref_4f(vert_addr, c->offset[VERT_RESULT_HPOS]));
brw_clip_project_position(c, tmp);
- brw_MOV(p, deref_4f(vert_addr, c->header_position_offset), tmp);
+ brw_MOV(p, deref_4f(vert_addr, c->ndc_offset), tmp);
release_tmp(c, tmp);
}