[Mesa-dev] [PATCH v2 3/3] anv/blorp: do not clear with hiz if we have more than one layer
Iago Toral Quiroga
itoral at igalia.com
Fri Feb 16 11:54:26 UTC 2018
blorp_gen8_hiz_clear_attachments only clears the first layer.
v2:
- do this in all cases, not just when multiview is involved.
- rebased on top of fast-clear rework.
---
src/intel/vulkan/anv_blorp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
index 25035909b6..ab5fefff9d 100644
--- a/src/intel/vulkan/anv_blorp.c
+++ b/src/intel/vulkan/anv_blorp.c
@@ -1409,6 +1409,9 @@ anv_cmd_buffer_clear_subpass(struct anv_cmd_buffer *cmd_buffer)
* not support this feature at all.
*/
clear_with_hiz = false;
+ } else if (clear_rect.layerCount > 1 ||
+ (is_multiview && cmd_state->subpass->view_mask != 1)) {
+ clear_with_hiz = false;
}
}
--
2.14.1
More information about the mesa-dev
mailing list