i965: Annotate the use of _NEW_PROGRAM in Gen6+ SF state atoms.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Jan 2012 19:03:46 +0000 (11:03 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jan 2012 05:45:09 +0000 (21:45 -0800)
The dirty bit was already correctly in place, but there was no comment.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen6_sf_state.c
src/mesa/drivers/dri/i965/gen7_sf_state.c

index 4c4ff308054687d203d7b4d0f458bda40ed20170..548c5a397cc8486ba333d8e40317f2e53f033804 100644 (file)
@@ -247,7 +247,7 @@ upload_sf_state(struct brw_context *brw)
       dw3 |= GEN6_SF_LINE_END_CAP_WIDTH_1_0;
    }
 
-   /* _NEW_POINT */
+   /* _NEW_PROGRAM | _NEW_POINT */
    if (!(ctx->VertexProgram.PointSizeEnabled ||
         ctx->Point._Attenuated))
       dw4 |= GEN6_SF_USE_STATE_POINT_WIDTH;
index c8448af6d9b900bd408aee8166b6a309550f4709..90853181009326fde3cb26a06a4b3ce221eb4ca8 100644 (file)
@@ -247,7 +247,7 @@ upload_sf_state(struct brw_context *brw)
 
    dw3 = 0;
 
-   /* _NEW_POINT */
+   /* _NEW_PROGRAM | _NEW_POINT */
    if (!(ctx->VertexProgram.PointSizeEnabled || ctx->Point._Attenuated))
       dw3 |= GEN6_SF_USE_STATE_POINT_WIDTH;