i965: Add missing _NEW_POLYGON flag to polygon stipple upload.
authorEric Anholt <eric@anholt.net>
Mon, 19 Sep 2011 16:25:49 +0000 (09:25 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 20 Sep 2011 17:20:06 +0000 (10:20 -0700)
Because we skip the pattern upload when stippling is disabled, we need
to check again when it might have been turned on.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
src/mesa/drivers/dri/i965/brw_misc_state.c

index f7e6e7c81d164add82d6bbdd219523e739d114cb..0807554bed9eec278af9c31c8edb11ff2b34e515 100644 (file)
@@ -450,6 +450,7 @@ static void upload_polygon_stipple(struct brw_context *brw)
    struct gl_context *ctx = &brw->intel.ctx;
    GLuint i;
 
+   /* _NEW_POLYGON */
    if (!ctx->Polygon.StippleFlag)
       return;
 
@@ -479,7 +480,8 @@ static void upload_polygon_stipple(struct brw_context *brw)
 
 const struct brw_tracked_state brw_polygon_stipple = {
    .dirty = {
-      .mesa = _NEW_POLYGONSTIPPLE,
+      .mesa = (_NEW_POLYGONSTIPPLE |
+              _NEW_POLYGON),
       .brw = BRW_NEW_CONTEXT,
       .cache = 0
    },