It's duplicated by anv_attachment_view::image_view::extent.
.layout = VK_IMAGE_LAYOUT_GENERAL
}
},
- .width = dest_aview->extent.width,
- .height = dest_aview->extent.height,
+ .width = dest_iview->extent.width,
+ .height = dest_iview->extent.height,
.layers = 1
}, &fb);
.layout = VK_IMAGE_LAYOUT_GENERAL
}
},
- .width = aview->extent.width,
- .height = aview->extent.height,
+ .width = iview->extent.width,
+ .height = iview->extent.height,
.layers = 1
}, &fb);
.renderArea = {
.offset = { 0, 0, },
.extent = {
- .width = aview->extent.width,
- .height = aview->extent.height,
+ .width = iview->extent.width,
+ .height = iview->extent.height,
},
},
.renderPass = pass,
struct anv_attachment_view {
enum anv_attachment_view_type attachment_type;
- VkExtent3D extent;
};
struct anv_color_attachment_view {
iview->offset = image->offset + surface->offset;
iview->format = anv_format_for_vk_format(pCreateInfo->format);
- aview->extent = (VkExtent3D) {
+ iview->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),
iview->offset = image->offset + surface->offset;
iview->format = anv_format_for_vk_format(pCreateInfo->format);
- aview->extent = (VkExtent3D) {
+ iview->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),
* indicates the extent of the accessible 'R' coordinates minus 1 on
* the LOD currently being rendered to.
*/
- rt_view_extent = aview->extent.depth;
+ rt_view_extent = iview->extent.depth;
break;
default:
unreachable(!"bad VkImageType");