From 7d75bf4f3fc6a048fed05de301590c3a2b73c268 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 5 Dec 2019 10:39:18 -0600 Subject: [PATCH] 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] --- src/mesa/drivers/dri/i965/brw_blorp.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- 2.30.2