mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
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:
parent
5e6db19168
commit
afd2f489d3
2 changed files with 1 additions and 4 deletions
|
|
@ -1346,13 +1346,11 @@ anv_image_create(VkDevice _device,
|
||||||
IMAGE_FORMAT_LIST_CREATE_INFO_KHR);
|
IMAGE_FORMAT_LIST_CREATE_INFO_KHR);
|
||||||
|
|
||||||
if (mod_explicit_info) {
|
if (mod_explicit_info) {
|
||||||
assert(create_info->stride == 0);
|
|
||||||
r = add_all_surfaces_explicit_layout(device, image, fmt_list,
|
r = add_all_surfaces_explicit_layout(device, image, fmt_list,
|
||||||
mod_explicit_info, isl_tiling_flags,
|
mod_explicit_info, isl_tiling_flags,
|
||||||
create_info->isl_extra_usage_flags);
|
create_info->isl_extra_usage_flags);
|
||||||
} else {
|
} else {
|
||||||
r = add_all_surfaces_implicit_layout(device, image, fmt_list,
|
r = add_all_surfaces_implicit_layout(device, image, fmt_list, 0,
|
||||||
create_info->stride,
|
|
||||||
isl_tiling_flags,
|
isl_tiling_flags,
|
||||||
create_info->isl_extra_usage_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. */
|
/** These flags will be added to any derived from VkImageCreateInfo. */
|
||||||
isl_surf_usage_flags_t isl_extra_usage_flags;
|
isl_surf_usage_flags_t isl_extra_usage_flags;
|
||||||
|
|
||||||
uint32_t stride;
|
|
||||||
bool external_format;
|
bool external_format;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue