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
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev