anv: initialization pipeline layout to 0s

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19050>
(cherry picked from commit 01e282f23f)
This commit is contained in:
Lionel Landwerlin
2022-10-12 01:54:14 +03:00
committed by Dylan Baker
parent 19ac65f5ac
commit 9ef9b9e6c2
2 changed files with 3 additions and 3 deletions

View File

@@ -391,7 +391,7 @@
"description": "anv: initialization pipeline layout to 0s", "description": "anv: initialization pipeline layout to 0s",
"nominated": true, "nominated": true,
"nomination_type": 0, "nomination_type": 0,
"resolution": 0, "resolution": 1,
"main_sha": null, "main_sha": null,
"because_sha": null "because_sha": null
}, },

View File

@@ -784,8 +784,8 @@ VkResult anv_CreatePipelineLayout(
assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO); assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO);
layout = vk_object_alloc(&device->vk, pAllocator, sizeof(*layout), layout = vk_object_zalloc(&device->vk, pAllocator, sizeof(*layout),
VK_OBJECT_TYPE_PIPELINE_LAYOUT); VK_OBJECT_TYPE_PIPELINE_LAYOUT);
if (layout == NULL) if (layout == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY); return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);