aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-12-05 10:39:18 -0600
committerKenneth Graunke <[email protected]>2020-01-04 12:25:55 -0800
commit7d75bf4f3fc6a048fed05de301590c3a2b73c268 (patch)
treee83289c7b89ad76c6ecbce71be48bdeb33c9060f /src/mesa
parent52ad1712ed62edbc1a6f530b892bce4e9c1f10b7 (diff)
i965: Allow HiZ for glCopyImageSubData sources
v2 (Ken): Handle platforms without sampler support for HiZ Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> [v2 changes]
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.c9
1 files changed, 9 insertions, 0 deletions
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;