zink: remove unused function
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 16 Jun 2021 13:13:28 +0000 (15:13 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 16 Jun 2021 15:15:14 +0000 (15:15 +0000)
There's no call-sites to this function, so let's drop it.

Fixes: e4e20556d62 ("zink: switch to memory barriers instead of actual buffer barriers")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11421>

src/gallium/drivers/zink/zink_context.c

index eb730f6..2b9046c 100644 (file)
@@ -2275,25 +2275,6 @@ zink_resource_buffer_needs_barrier(struct zink_resource *res, VkAccessFlags flag
           (res->access & flags) != flags;
 }
 
-ALWAYS_INLINE static bool
-zink_resource_buffer_barrier_init(VkBufferMemoryBarrier *bmb, struct zink_resource *res, VkAccessFlags flags, VkPipelineStageFlags pipeline)
-{
-   if (!pipeline)
-      pipeline = pipeline_access_stage(flags);
-   *bmb = (VkBufferMemoryBarrier){
-      VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER,
-      NULL,
-      res->access,
-      flags,
-      VK_QUEUE_FAMILY_IGNORED,
-      VK_QUEUE_FAMILY_IGNORED,
-      res->obj->buffer,
-      res->obj->offset,
-      res->base.b.width0
-   };
-   return zink_resource_buffer_needs_barrier(res, flags, pipeline);
-}
-
 void
 zink_resource_buffer_barrier(struct zink_context *ctx, struct zink_batch *batch, struct zink_resource *res, VkAccessFlags flags, VkPipelineStageFlags pipeline)
 {