anv: Drop unused anv_image_create_info::stride
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1466>
This commit is contained in:
@@ -1346,13 +1346,11 @@ anv_image_create(VkDevice _device,
|
||||
IMAGE_FORMAT_LIST_CREATE_INFO_KHR);
|
||||
|
||||
if (mod_explicit_info) {
|
||||
assert(create_info->stride == 0);
|
||||
r = add_all_surfaces_explicit_layout(device, image, fmt_list,
|
||||
mod_explicit_info, isl_tiling_flags,
|
||||
create_info->isl_extra_usage_flags);
|
||||
} else {
|
||||
r = add_all_surfaces_implicit_layout(device, image, fmt_list,
|
||||
create_info->stride,
|
||||
r = add_all_surfaces_implicit_layout(device, image, fmt_list, 0,
|
||||
isl_tiling_flags,
|
||||
create_info->isl_extra_usage_flags);
|
||||
}
|
||||
|
||||
@@ -4144,7 +4144,6 @@ struct anv_image_create_info {
|
||||
/** These flags will be added to any derived from VkImageCreateInfo. */
|
||||
isl_surf_usage_flags_t isl_extra_usage_flags;
|
||||
|
||||
uint32_t stride;
|
||||
bool external_format;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user