Mesa (main): zink: remove unused function
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 16 15:36:05 UTC 2021
Module: Mesa
Branch: main
Commit: c35fc7ad2cbb0098dc28c71481185756d327de59
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c35fc7ad2cbb0098dc28c71481185756d327de59
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Wed Jun 16 15:13:28 2021 +0200
zink: remove unused function
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 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11421>
---
src/gallium/drivers/zink/zink_context.c | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index eb730f6c97f..2b9046ce1a1 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -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)
{
More information about the mesa-commit
mailing list