mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
zink: clamp VkImageCreateInfo.arrayLayers to 1 for image resource creation
this is required by spec, so we can generally assume that any time it's 0 here this is the result of us being lazy elsewhere in the zink driver when we're manually creating this sort of buffer Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5614>
This commit is contained in:
parent
994224bc29
commit
7b3976d3f8
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ resource_create(struct pipe_screen *pscreen,
|
|||
ici.extent.height = templ->height0;
|
||||
ici.extent.depth = templ->depth0;
|
||||
ici.mipLevels = templ->last_level + 1;
|
||||
ici.arrayLayers = templ->array_size;
|
||||
ici.arrayLayers = MAX2(templ->array_size, 1);
|
||||
ici.samples = templ->nr_samples ? templ->nr_samples : VK_SAMPLE_COUNT_1_BIT;
|
||||
ici.tiling = templ->bind & PIPE_BIND_LINEAR ? VK_IMAGE_TILING_LINEAR : VK_IMAGE_TILING_OPTIMAL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue