Module: Mesa Branch: main Commit: 73317bb7065f5b8e2751ffd2c3821f300db0348b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=73317bb7065f5b8e2751ffd2c3821f300db0348b
Author: Thomas H.P. Andersen <[email protected]> Date: Wed Nov 22 01:54:44 2023 +0100 nvk: use nvk_pipeline_zalloc 3b3b157961cec37cf6846f13898acfa90f63551e removed setting the pipeline type assuming that it was already set by nvk_pipeline_zalloc. That helper was not actually being used, so this patch updates it to do so. This does not fix anything as the NVK_PIPELINE_GRAPHICS = 0 anyway, so it is just a code cleanup. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26329> --- src/nouveau/vulkan/nvk_graphics_pipeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nouveau/vulkan/nvk_graphics_pipeline.c b/src/nouveau/vulkan/nvk_graphics_pipeline.c index 35bddedd548..05d37aa637f 100644 --- a/src/nouveau/vulkan/nvk_graphics_pipeline.c +++ b/src/nouveau/vulkan/nvk_graphics_pipeline.c @@ -309,8 +309,8 @@ nvk_graphics_pipeline_create(struct nvk_device *dev, struct nvk_graphics_pipeline *pipeline; VkResult result = VK_SUCCESS; - pipeline = vk_object_zalloc(&dev->vk, pAllocator, sizeof(*pipeline), - VK_OBJECT_TYPE_PIPELINE); + pipeline = (void *)nvk_pipeline_zalloc(dev, NVK_PIPELINE_GRAPHICS, + sizeof(*pipeline), pAllocator); if (pipeline == NULL) return vk_error(dev, VK_ERROR_OUT_OF_HOST_MEMORY);
