+static VkExtent3D
+meta_image_block_size(const struct anv_image *image)
+{
+ if (image->aspects == VK_IMAGE_ASPECT_COLOR_BIT) {
+ const struct isl_format_layout *isl_layout =
+ isl_format_get_layout(image->color_surface.isl.format);
+ return (VkExtent3D) { isl_layout->bw, isl_layout->bh, isl_layout->bd };
+ } else {
+ return (VkExtent3D) { 1, 1, 1 };
+ }
+}
+