i965/gen6+: Correct gratuitous dependency on NEW_POLYGONSTIPPLE.
authorEric Anholt <eric@anholt.net>
Thu, 16 Jun 2011 00:35:49 +0000 (17:35 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 20 Jun 2011 15:37:42 +0000 (08:37 -0700)
That flag is for the contents of the stipple, not the enable flag.

src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c

index 62e060098b1ac532fde48a584fa4c8d5f5093fa3..038087e267ff532562ea7f4a5ef9aabd804ac1d5 100644 (file)
@@ -99,7 +99,7 @@ upload_wm_state(struct brw_context *brw)
       brw_fragment_program_const(brw->fragment_program);
    uint32_t dw2, dw4, dw5, dw6;
 
-   /* CACHE_NEW_WM_PROG */
+    /* CACHE_NEW_WM_PROG */
    if (brw->wm.prog_data->nr_params == 0) {
       /* Disable the push constant buffers. */
       BEGIN_BATCH(5);
@@ -159,7 +159,7 @@ upload_wm_state(struct brw_context *brw)
    if (ctx->Line.StippleFlag)
       dw5 |= GEN6_WM_LINE_STIPPLE_ENABLE;
 
-   /* _NEW_POLYGONSTIPPLE */
+   /* _NEW_POLYGON */
    if (ctx->Polygon.StippleFlag)
       dw5 |= GEN6_WM_POLYGON_STIPPLE_ENABLE;
 
@@ -204,8 +204,11 @@ upload_wm_state(struct brw_context *brw)
 
 const struct brw_tracked_state gen6_wm_state = {
    .dirty = {
-      .mesa  = (_NEW_LINE | _NEW_POLYGONSTIPPLE | _NEW_COLOR | _NEW_BUFFERS |
-               _NEW_PROGRAM_CONSTANTS | _NEW_POLYGON),
+      .mesa  = (_NEW_LINE |
+               _NEW_COLOR |
+               _NEW_BUFFERS |
+               _NEW_PROGRAM_CONSTANTS |
+               _NEW_POLYGON),
       .brw   = (BRW_NEW_CURBE_OFFSETS |
                BRW_NEW_FRAGMENT_PROGRAM |
                 BRW_NEW_NR_WM_SURFACES |
index 239f6616cde8bc651d822d8c72b26306710f4bad..17f75354f1d49e7f824c9890f143db601ea3a40b 100644 (file)
@@ -105,7 +105,7 @@ upload_wm_state(struct brw_context *brw)
    if (ctx->Line.StippleFlag)
       dw1 |= GEN7_WM_LINE_STIPPLE_ENABLE;
 
-   /* _NEW_POLYGONSTIPPLE */
+   /* _NEW_POLYGON */
    if (ctx->Polygon.StippleFlag)
       dw1 |= GEN7_WM_POLYGON_STIPPLE_ENABLE;
 
@@ -240,7 +240,9 @@ upload_ps_state(struct brw_context *brw)
 
 const struct brw_tracked_state gen7_ps_state = {
    .dirty = {
-      .mesa  = (_NEW_LINE | _NEW_POLYGON | _NEW_POLYGONSTIPPLE |
+      .mesa  = (_NEW_LINE |
+               _NEW_POLYGON |
+               _NEW_POLYGONSTIPPLE |
                _NEW_PROGRAM_CONSTANTS),
       .brw   = (BRW_NEW_CURBE_OFFSETS |
                BRW_NEW_FRAGMENT_PROGRAM |