vk: Drop anv_attachment_view::extent
It's duplicated by anv_attachment_view::image_view::extent.
This commit is contained in:
@@ -842,8 +842,8 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer,
|
||||
.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);
|
||||
|
||||
@@ -1574,8 +1574,8 @@ void anv_CmdClearColorImage(
|
||||
.layout = VK_IMAGE_LAYOUT_GENERAL
|
||||
}
|
||||
},
|
||||
.width = aview->extent.width,
|
||||
.height = aview->extent.height,
|
||||
.width = iview->extent.width,
|
||||
.height = iview->extent.height,
|
||||
.layers = 1
|
||||
}, &fb);
|
||||
|
||||
@@ -1622,8 +1622,8 @@ void anv_CmdClearColorImage(
|
||||
.renderArea = {
|
||||
.offset = { 0, 0, },
|
||||
.extent = {
|
||||
.width = aview->extent.width,
|
||||
.height = aview->extent.height,
|
||||
.width = iview->extent.width,
|
||||
.height = iview->extent.height,
|
||||
},
|
||||
},
|
||||
.renderPass = pass,
|
||||
|
||||
@@ -1258,7 +1258,6 @@ enum anv_attachment_view_type {
|
||||
|
||||
struct anv_attachment_view {
|
||||
enum anv_attachment_view_type attachment_type;
|
||||
VkExtent3D extent;
|
||||
};
|
||||
|
||||
struct anv_color_attachment_view {
|
||||
|
||||
@@ -381,7 +381,7 @@ gen7_color_attachment_view_init(struct anv_color_attachment_view *cview,
|
||||
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),
|
||||
|
||||
@@ -307,7 +307,7 @@ gen8_color_attachment_view_init(struct anv_color_attachment_view *cview,
|
||||
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),
|
||||
@@ -346,7 +346,7 @@ gen8_color_attachment_view_init(struct anv_color_attachment_view *cview,
|
||||
* 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");
|
||||
|
||||
Reference in New Issue
Block a user