i965: clip: rename header_position_offset to the more correct ndc_offset.
authorPaul Berry <stereotype441@gmail.com>
Thu, 25 Aug 2011 02:57:51 +0000 (19:57 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Sep 2011 18:05:08 +0000 (11:05 -0700)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_clip.c
src/mesa/drivers/dri/i965/brw_clip.h
src/mesa/drivers/dri/i965/brw_clip_unfilled.c
src/mesa/drivers/dri/i965/brw_clip_util.c

index b9ec55a841e8aa5dba84a2645740824fe2fdf879..f9f3fd4f1e3237e2598b96dff4b86a557f599bde 100644 (file)
@@ -77,7 +77,7 @@ static void compile_clip_prog( struct brw_context *brw,
    /* 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;
index ca2362c0627f20ff62e3c22c1d18904806d9b5f3..4e4166c9131351fd90a054c9a9b79ab955280ae3 100644 (file)
@@ -115,7 +115,7 @@ struct brw_clip_compile {
 
    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_* */
index e761980284c7cf30ce2ab04f6617cd4b0d754242..97f321966acca085891fbcf568d596a77a5aae23 100644 (file)
@@ -236,7 +236,7 @@ static void apply_one_offset( struct brw_clip_compile *c,
                          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));
index 29aff2d9905641b7a132bb9ed0db30e7759357fb..7e2998366bea5da820bbe8867ee6464dc6408cb9 100644 (file)
@@ -115,7 +115,7 @@ static void brw_clip_project_vertex( struct brw_clip_compile *c,
     */
    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);
 }