OSDN Git Service

i965/miptree: Set supports_fast_clear = false in make_shareable
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 3 Aug 2017 16:48:55 +0000 (09:48 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 7 Aug 2017 16:31:11 +0000 (09:31 -0700)
commite7a52cc381d275b4ab8ee2fb230e32ab97090daf
treebb33b79510ab73c7cda498051fb2c0f8329c5d84
parent24a0da338f47ac2e8fd2a7845b87045439250e75
i965/miptree: Set supports_fast_clear = false in make_shareable

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 <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101925
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c