Mesa (main): dzn: Drop an unused argument passed to dzn_graphics_pipeline_translate_vi()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 9 16:19:30 UTC 2022


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

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Jun  9 16:00:30 2022 +0200

dzn: Drop an unused argument passed to dzn_graphics_pipeline_translate_vi()

The 'out' argument is not used, let's drop it.

Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16948>

---

 src/microsoft/vulkan/dzn_pipeline.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/microsoft/vulkan/dzn_pipeline.c b/src/microsoft/vulkan/dzn_pipeline.c
index 2d588d0ee5a..300280efa97 100644
--- a/src/microsoft/vulkan/dzn_pipeline.c
+++ b/src/microsoft/vulkan/dzn_pipeline.c
@@ -357,7 +357,6 @@ out:
 static VkResult
 dzn_graphics_pipeline_translate_vi(struct dzn_graphics_pipeline *pipeline,
                                    const VkAllocationCallbacks *alloc,
-                                   D3D12_GRAPHICS_PIPELINE_STATE_DESC *out,
                                    const VkGraphicsPipelineCreateInfo *in,
                                    D3D12_INPUT_ELEMENT_DESC *inputs)
 {
@@ -955,7 +954,7 @@ dzn_graphics_pipeline_create(struct dzn_device *device,
       pCreateInfo->pRasterizationState->rasterizerDiscardEnable ?
       NULL : pCreateInfo->pViewportState;
 
-   ret = dzn_graphics_pipeline_translate_vi(pipeline, pAllocator, &desc, pCreateInfo, attribs);
+   ret = dzn_graphics_pipeline_translate_vi(pipeline, pAllocator, pCreateInfo, attribs);
    if (ret != VK_SUCCESS)
       goto out;
 



More information about the mesa-commit mailing list