From: Jason Ekstrand Date: Thu, 5 Dec 2019 16:39:18 +0000 (-0600) Subject: i965: Allow HiZ for glCopyImageSubData sources X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d75bf4f3fc6a048fed05de301590c3a2b73c268;p=mesa.git i965: Allow HiZ for glCopyImageSubData sources v2 (Ken): Handle platforms without sampler support for HiZ Reviewed-by: Kenneth Graunke Reviewed-by: Jason Ekstrand [v2 changes] --- diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index 0ac636bb88c..33729430638 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -463,6 +463,15 @@ brw_blorp_copy_miptrees(struct brw_context *brw, bool src_clear_supported, dst_clear_supported; switch (src_mt->aux_usage) { + case ISL_AUX_USAGE_HIZ: + if (intel_miptree_sample_with_hiz(brw, src_mt)) { + src_aux_usage = src_mt->aux_usage; + src_clear_supported = true; + } else { + src_aux_usage = ISL_AUX_USAGE_NONE; + src_clear_supported = false; + } + break; case ISL_AUX_USAGE_MCS: case ISL_AUX_USAGE_CCS_E: src_aux_usage = src_mt->aux_usage;