mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 12:50:12 +01:00
anv: Don't assert that stencil HiZ clears are single-slice
It's true for depth HiZ clears because we only have HiZ on single-slice images right now. However, for stencil-only clears there is no such restriction. Tested-by: Rafael Antognolli <rafael.antognolli@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
This commit is contained in:
parent
7dd0f73fe1
commit
52056206e1
1 changed files with 6 additions and 3 deletions
|
|
@ -3438,9 +3438,12 @@ cmd_buffer_begin_subpass(struct anv_cmd_buffer *cmd_buffer,
|
|||
VK_IMAGE_ASPECT_STENCIL_BIT)) {
|
||||
if (att_state->fast_clear) {
|
||||
/* We currently only support HiZ for single-layer images */
|
||||
assert(iview->planes[0].isl.base_level == 0);
|
||||
assert(iview->planes[0].isl.base_array_layer == 0);
|
||||
assert(fb->layers == 1);
|
||||
if (att_state->pending_clear_aspects & VK_IMAGE_ASPECT_DEPTH_BIT) {
|
||||
assert(iview->image->planes[0].aux_usage == ISL_AUX_USAGE_HIZ);
|
||||
assert(iview->planes[0].isl.base_level == 0);
|
||||
assert(iview->planes[0].isl.base_array_layer == 0);
|
||||
assert(fb->layers == 1);
|
||||
}
|
||||
|
||||
anv_image_hiz_clear(cmd_buffer, image,
|
||||
att_state->pending_clear_aspects,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue