diff options
Diffstat (limited to 'src/intel/vulkan/anv_blorp.c')
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 292cee8e3e0..5ee850aa3e2 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -1480,12 +1480,12 @@ anv_image_ccs_clear(struct anv_cmd_buffer *cmd_buffer, /* Blorp likes to treat 2D_ARRAY and 3D the same. */ uint32_t blorp_base_layer, blorp_layer_count; - if (view) { - blorp_base_layer = view->base_array_layer; - blorp_layer_count = view->array_len; - } else if (image->type == VK_IMAGE_TYPE_3D) { + if (image->type == VK_IMAGE_TYPE_3D) { blorp_base_layer = 0; blorp_layer_count = extent.depth; + } else if (view) { + blorp_base_layer = view->base_array_layer; + blorp_layer_count = view->array_len; } else { blorp_base_layer = subresourceRange->baseArrayLayer; blorp_layer_count = anv_get_layerCount(image, subresourceRange); |