i965: emit BRW_NEW_AUX_STATE if we drop the aux surface
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 14 Sep 2017 09:06:59 +0000 (11:06 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 18 Sep 2017 08:47:51 +0000 (10:47 +0200)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 32394ca3aaa2b8d5365e835a703b586a2085a95e..970eca723f8a6c904b5804493799058c15de0980 100644 (file)
@@ -2854,6 +2854,7 @@ intel_miptree_make_shareable(struct brw_context *brw,
        */
       free(mt->aux_state);
       mt->aux_state = NULL;
+      brw->ctx.NewDriverState |= BRW_NEW_AUX_STATE;
    }
 
    if (mt->hiz_buf) {
@@ -2870,6 +2871,7 @@ intel_miptree_make_shareable(struct brw_context *brw,
        */
       free(mt->aux_state);
       mt->aux_state = NULL;
+      brw->ctx.NewDriverState |= BRW_NEW_AUX_STATE;
    }
 
    mt->aux_usage = ISL_AUX_USAGE_NONE;