[Mesa-stable] [PATCH 1/2] i965/mt: Disable aux surfaces after making miptree shareable

Chad Versace chadversary at chromium.org
Fri Dec 16 20:05:44 UTC 2016


The entire goal of intel_miptree_make_shareable() is to permanently
disable the miptree's aux surfaces. So set
intel_mipmap_tree:disable_aux_buffers after the function's done with
discarding down the aux surfaces.

References: https://bugs.freedesktop.org/show_bug.cgi?id=98329
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
Cc: Nanley Chery <nanley.g.chery at intel.com
Cc: Haixia Shi <hshi at chromium.org>
(cherry picked from commit 1c8be049bea786c2c054a770025976beba5b8636)
---
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index e74a2dc92f..7c6bf79b3a 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -2201,6 +2201,8 @@ intel_miptree_make_shareable(struct brw_context *brw,
       intel_miptree_release(&mt->mcs_mt);
       mt->fast_clear_state = INTEL_FAST_CLEAR_STATE_NO_MCS;
    }
+
+   mt->disable_aux_buffers = true;
 }
 
 
-- 
2.11.0



More information about the mesa-stable mailing list