v142: Bug 14275 - Remove image layouts in VkFramebufferCreateInfo
diff --git a/icd/intel/fb.c b/icd/intel/fb.c
index 06683fa..762d65b 100644
--- a/icd/intel/fb.c
+++ b/icd/intel/fb.c
@@ -61,14 +61,9 @@
array_size = info->layers;
for (i = 0; i < info->attachmentCount; i++) {
- const VkAttachmentBindInfo *att = &info->pAttachments[i];
- const struct intel_att_view *view = intel_att_view(att->view);
- const struct intel_layout *layout = &view->img->layout;
+ const VkAttachmentView *att = &info->pAttachments[i];
+ const struct intel_att_view *view = intel_att_view(*att);
- if (width > layout->width0)
- width = layout->width0;
- if (height > layout->height0)
- height = layout->height0;
if (array_size > view->array_size)
array_size = view->array_size;