{
ANV_FROM_HANDLE(anv_image, image, _image);
+ assert(__builtin_popcount(subresource->aspectMask) == 1);
+
const struct anv_surface *surface;
if (subresource->aspectMask == VK_IMAGE_ASPECT_PLANE_1_BIT &&
image->drm_format_mod != DRM_FORMAT_MOD_INVALID &&
surface = &image->planes[plane].primary_surface;
}
- assert(__builtin_popcount(subresource->aspectMask) == 1);
-
layout->offset = surface->memory_range.offset;
layout->rowPitch = surface->isl.row_pitch_B;
layout->depthPitch = isl_surf_get_array_pitch(&surface->isl);