view->offset = image->offset + surface->offset;
view->format = pCreateInfo->format;
- view->extent = (VkExtent3D) {
+ iview->extent = (VkExtent3D) {
.width = anv_minify(image->extent.width, range->baseMipLevel),
.height = anv_minify(image->extent.height, range->baseMipLevel),
.depth = anv_minify(image->extent.depth, range->baseMipLevel),
view->offset = image->offset + surface->offset;
view->format = pCreateInfo->format;
- view->extent = (VkExtent3D) {
+ aview->base.extent = (VkExtent3D) {
.width = anv_minify(image->extent.width, pCreateInfo->mipLevel),
.height = anv_minify(image->extent.height, pCreateInfo->mipLevel),
.depth = anv_minify(image->extent.depth, pCreateInfo->mipLevel),
dest_offset.y + dest_extent.height,
},
.tex_coord = {
- (float)(src_offset.x + src_extent.width) / (float)src->view.extent.width,
- (float)(src_offset.y + src_extent.height) / (float)src->view.extent.height,
+ (float)(src_offset.x + src_extent.width) / (float)src->extent.width,
+ (float)(src_offset.y + src_extent.height) / (float)src->extent.height,
},
};
dest_offset.y + dest_extent.height,
},
.tex_coord = {
- (float)src_offset.x / (float)src->view.extent.width,
- (float)(src_offset.y + src_extent.height) / (float)src->view.extent.height,
+ (float)src_offset.x / (float)src->extent.width,
+ (float)(src_offset.y + src_extent.height) / (float)src->extent.height,
},
};
dest_offset.y,
},
.tex_coord = {
- (float)src_offset.x / (float)src->view.extent.width,
- (float)src_offset.y / (float)src->view.extent.height,
+ (float)src_offset.x / (float)src->extent.width,
+ (float)src_offset.y / (float)src->extent.height,
},
};
.layout = VK_IMAGE_LAYOUT_GENERAL
}
},
- .width = dest->view.extent.width,
- .height = dest->view.extent.height,
+ .width = dest->base.extent.width,
+ .height = dest->base.extent.height,
.layers = 1
}, &fb);
.layout = VK_IMAGE_LAYOUT_GENERAL
}
},
- .width = view.view.extent.width,
- .height = view.view.extent.height,
+ .width = view.base.extent.width,
+ .height = view.base.extent.height,
.layers = 1
}, &fb);
.renderArea = {
.offset = { 0, 0, },
.extent = {
- .width = view.view.extent.width,
- .height = view.view.extent.height,
+ .width = view.base.extent.width,
+ .height = view.base.extent.height,
},
},
.renderPass = pass,
struct anv_bo *bo;
uint32_t offset; /**< VkBufferCreateInfo::offset */
uint32_t range; /**< VkBufferCreateInfo::range */
- VkExtent3D extent;
VkFormat format; /**< VkBufferCreateInfo::format */
};
struct anv_buffer_view {
- /* FINISHME: Trim unneeded data from this struct. */
struct anv_surface_view view;
};
struct anv_image_view {
struct anv_surface_view view;
+ VkExtent3D extent;
};
enum anv_attachment_view_type {
struct anv_attachment_view {
enum anv_attachment_view_type attachment_type;
+ VkExtent3D extent;
};
struct anv_color_attachment_view {
struct anv_attachment_view base;
-
struct anv_surface_view view;
};