i965/blorp: Use BRW_NEW_BLORP instead of trashing all state bits
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 22 Apr 2016 10:43:39 +0000 (13:43 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Sat, 23 Apr 2016 04:09:39 +0000 (07:09 +0300)
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/gen7_urb.c

index ce09b099005a3943cf4aeadbe973ca7f1a8aab8b..76c9fbe9661324de8004a6b032a62de00fc6eeb8 100644 (file)
@@ -284,12 +284,10 @@ retry:
    if (unlikely(brw->always_flush_batch))
       intel_batchbuffer_flush(brw);
 
-   const uint64_t do_not_smash_bits = BRW_NEW_URB_SIZE;
-
    /* We've smashed all state compared to what the normal 3D pipeline
     * rendering tracks for GL.
     */
-   brw->ctx.NewDriverState |= ~do_not_smash_bits;
+   brw->ctx.NewDriverState |= BRW_NEW_BLORP;
    brw->no_depth_or_stencil = false;
    brw->ib.type = -1;
 
index 3f731df87c47512c30394510661eddb78c744610..a412a4263b33f50dd6aeac95bc50c1ac98b48547 100644 (file)
@@ -418,8 +418,7 @@ gen7_emit_urb_state(struct brw_context *brw,
 const struct brw_tracked_state gen7_urb = {
    .dirty = {
       .mesa = 0,
-      .brw = BRW_NEW_BLORP |
-             BRW_NEW_CONTEXT |
+      .brw = BRW_NEW_CONTEXT |
              BRW_NEW_URB_SIZE |
              BRW_NEW_GEOMETRY_PROGRAM |
              BRW_NEW_TESS_PROGRAMS |