Mesa (master): i965/mt: Disable aux surfaces after making miptree shareable

Chad Versace chadversary at kemper.freedesktop.org
Sat Dec 10 16:14:35 UTC 2016


Module: Mesa
Branch: master
Commit: 1c8be049bea786c2c054a770025976beba5b8636
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c8be049bea786c2c054a770025976beba5b8636

Author: Chad Versace <chadversary at chromium.org>
Date:   Fri Dec  9 16:18:11 2016 -0800

i965/mt: Disable aux surfaces after making miptree shareable

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>
Cc: Nanley Chery <nanley.g.chery at intel.com
Cc: Haixia Shi <hshi at chromium.org>
Cc: mesa-stable at lists.freedesktop.org

---

 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 7cda019..15404da 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -2330,6 +2330,8 @@ intel_miptree_make_shareable(struct brw_context *brw,
       free(mt->mcs_buf);
       mt->mcs_buf = NULL;
    }
+
+   mt->disable_aux_buffers = true;
 }
 
 




More information about the mesa-commit mailing list