Module: Mesa
Branch: main
Commit: 3b3b157961cec37cf6846f13898acfa90f63551e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3b3b157961cec37cf6846f13898acfa90f63551e

Author: Faith Ekstrand <[email protected]>
Date:   Thu Nov 16 16:08:40 2023 -0600

nvk: Don't set pipeline->base.type manually

It's already set by nvk_pipeline_zalloc().

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26241>

---

 src/nouveau/vulkan/nvk_graphics_pipeline.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/nouveau/vulkan/nvk_graphics_pipeline.c 
b/src/nouveau/vulkan/nvk_graphics_pipeline.c
index 0ce98cf809e..bc734c77564 100644
--- a/src/nouveau/vulkan/nvk_graphics_pipeline.c
+++ b/src/nouveau/vulkan/nvk_graphics_pipeline.c
@@ -314,8 +314,6 @@ nvk_graphics_pipeline_create(struct nvk_device *dev,
    if (pipeline == NULL)
       return vk_error(dev, VK_ERROR_OUT_OF_HOST_MEMORY);
 
-   pipeline->base.type = NVK_PIPELINE_GRAPHICS;
-
    struct vk_graphics_pipeline_all_state all;
    struct vk_graphics_pipeline_state state = {};
    result = vk_graphics_pipeline_state_fill(&dev->vk, &state, pCreateInfo,

Reply via email to