From e7a52cc381d275b4ab8ee2fb230e32ab97090daf Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 3 Aug 2017 09:48:55 -0700 Subject: i965/miptree: Set supports_fast_clear = false in make_shareable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The make_shareable function deletes the aux buffer and then whacks aux_usage to ISL_AUX_USAGE_NONE but not unsetting supports_fast_clear. Since we only look at supports_fast_clear to decide whether or not to do fast clears, this was causing assertion failures. Reported-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101925 Reviewed-by: Kenneth Graunke Reviewed-by: Tapani Pälli --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 7611f85a774..61a9c0c6627 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -2706,6 +2706,7 @@ intel_miptree_make_shareable(struct brw_context *brw, } mt->aux_usage = ISL_AUX_USAGE_NONE; + mt->supports_fast_clear = false; } -- cgit v1.2.3