aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2020-03-02 13:54:22 -0600
committerMarge Bot <[email protected]>2020-03-05 18:56:45 +0000
commit4531f0ffcec591e3853e78ce58f5d83cf276fb0d (patch)
tree2704e59181a4d05359b29eea3fa95b6ac9a8cdd1
parent9f5f4269a66eebfcaa3ae5cd7bdf91d88a7fc69c (diff)
iris: Allow HiZ on blit sources
Ever since 95cc5438ebf, BLORP has been able to read from HiZ-compressed depth buffers as long as the sampler supports HiZ. This just makes iris stop doing the unneeded resolve. Closes: #2583 Reviewed-by: Nanley Chery <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3717>
-rw-r--r--src/gallium/drivers/iris/iris_blit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_blit.c b/src/gallium/drivers/iris/iris_blit.c
index 20b73406383..10a157b3ef4 100644
--- a/src/gallium/drivers/iris/iris_blit.c
+++ b/src/gallium/drivers/iris/iris_blit.c
@@ -355,7 +355,7 @@ iris_blit(struct pipe_context *ctx, const struct pipe_blit_info *info)
iris_resource_texture_aux_usage(ice, src_res, src_fmt.fmt);
if (iris_resource_level_has_hiz(src_res, info->src.level))
- src_aux_usage = ISL_AUX_USAGE_NONE;
+ assert(src_res->surf.format == src_fmt.fmt);
bool src_clear_supported = isl_aux_usage_has_fast_clears(src_aux_usage) &&
src_res->surf.format == src_fmt.fmt;