vk: Drop redundant gen7_CreateGraphicsPipelines
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Thu, 27 Aug 2015 19:04:41 +0000 (12:04 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Thu, 3 Sep 2015 18:53:09 +0000 (11:53 -0700)
This is handled by anv_CreateGraphicsPipelines().

Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
src/vulkan/gen7_pipeline.c

index 0ed4727c37f4f58f1eebd0347aef4937f5b59669..599432ed68ab59107df2de7a0f5de2a1dfcece73 100644 (file)
@@ -561,31 +561,6 @@ gen7_graphics_pipeline_create(
    return VK_SUCCESS;
 }
 
-VkResult gen7_CreateGraphicsPipelines(
-    VkDevice                                    _device,
-    VkPipelineCache                             pipelineCache,
-    uint32_t                                    count,
-    const VkGraphicsPipelineCreateInfo*         pCreateInfos,
-    VkPipeline*                                 pPipelines)
-{
-   VkResult result = VK_SUCCESS;
-
-   unsigned i = 0;
-   for (; i < count; i++) {
-      result = gen7_graphics_pipeline_create(_device, &pCreateInfos[i],
-                                             NULL, &pPipelines[i]);
-      if (result != VK_SUCCESS) {
-         for (unsigned j = 0; j < i; j++) {
-            anv_DestroyPipeline(_device, pPipelines[j]);
-         }
-
-         return result;
-      }
-   }
-
-   return VK_SUCCESS;
-}
-
 VkResult gen7_compute_pipeline_create(
     VkDevice                                    _device,
     const VkComputePipelineCreateInfo*          pCreateInfo,