summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <chadversary@chromium.org>2016-12-09 16:18:11 -0800
committerEmil Velikov <emil.l.velikov@gmail.com>2016-12-14 19:31:30 +0000
commit4cc5e897b5eec42c0e3a80ee0dcbfe6ee6187ed1 (patch)
treebecffc055e6b680a89a57bca22bbc0b747866766 /src
parent1f33823fc1b0a2af68f8f8b657255aeefefe2339 (diff)
downloadexternal_mesa3d-4cc5e897b5eec42c0e3a80ee0dcbfe6ee6187ed1.zip
external_mesa3d-4cc5e897b5eec42c0e3a80ee0dcbfe6ee6187ed1.tar.gz
external_mesa3d-4cc5e897b5eec42c0e3a80ee0dcbfe6ee6187ed1.tar.bz2
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@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: Nanley Chery <nanley.g.chery@intel.com Cc: Haixia Shi <hshi@chromium.org> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 1c8be049bea786c2c054a770025976beba5b8636)
Diffstat (limited to 'src')
-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 aba203a..78c7a11 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -2159,6 +2159,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;
}