i965: Fix missing _NEW_TRANSFORM in Gen8+ 3DSTATE_DS atom.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 9 Sep 2016 03:35:39 +0000 (20:35 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Oct 2016 00:09:07 +0000 (17:09 -0700)
Needed for user clip plane enables.  Broken since this code was
introduced.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/gen8_ds_state.c

index c316d01dbb95f7b29f41d15b6bd4b15cd1b4bdf4..f1df1305fb45e8371e23cd214fb4feaf0e86a007 100644 (file)
@@ -70,6 +70,7 @@ gen8_upload_ds_state(struct brw_context *brw)
                  GEN7_DS_SIMD8_DISPATCH_ENABLE : 0) |
                 (tes_prog_data->domain == BRW_TESS_DOMAIN_TRI ?
                  GEN7_DS_COMPUTE_W_COORDINATE_ENABLE : 0));
+      /* _NEW_TRANSFORM */
       OUT_BATCH(SET_FIELD(ctx->Transform.ClipPlanesEnabled,
                           GEN8_DS_USER_CLIP_DISTANCE) |
                 SET_FIELD(vue_prog_data->cull_distance_mask,
@@ -107,7 +108,7 @@ gen8_upload_ds_state(struct brw_context *brw)
 
 const struct brw_tracked_state gen8_ds_state = {
    .dirty = {
-      .mesa  = 0,
+      .mesa  = _NEW_TRANSFORM,
       .brw   = BRW_NEW_BATCH |
                BRW_NEW_BLORP |
                BRW_NEW_TESS_PROGRAMS |