summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2016-12-09 16:18:11 -0800
committerChad Versace <[email protected]>2016-12-10 08:05:11 -0800
commit1c8be049bea786c2c054a770025976beba5b8636 (patch)
treea477c947ed3ecb84a1e663c1ceda7b60c807ab4d /src/mesa/drivers
parentda1c49171d0df185545cfbbd600e287f7c6160fa (diff)
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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Cc: Nanley Chery <[email protected] Cc: Haixia Shi <[email protected]> Cc: [email protected]
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 7cda0190b4a..15404dae320 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;
}