Mesa (master): pipebuffer: Remove unused buffer event in slab bufmgr

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 17 11:42:50 UTC 2020


Module: Mesa
Branch: master
Commit: 350dd2a36dc54d55fafaf173faa613e66f0666f1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=350dd2a36dc54d55fafaf173faa613e66f0666f1

Author: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
Date:   Tue May 26 23:19:08 2020 -0400

pipebuffer: Remove unused buffer event in slab bufmgr

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6225>

---

 src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c
index c936096210a..ba753e614f8 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c
+++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c
@@ -67,10 +67,6 @@ struct pb_slab_buffer
    
    /** Offset relative to the start of the slab buffer. */
    pb_size start;
-   
-   /** Use when validating, to signal that all mappings are finished */
-   /* TODO: Actually validation does not reach this stage yet */
-   cnd_t event;
 };
 
 
@@ -245,8 +241,6 @@ pb_slab_buffer_unmap(struct pb_buffer *_buf)
    struct pb_slab_buffer *buf = pb_slab_buffer(_buf);
 
    --buf->mapCount;
-   if (buf->mapCount == 0) 
-       cnd_broadcast(&buf->event);
 }
 
 
@@ -351,7 +345,6 @@ pb_slab_create(struct pb_slab_manager *mgr)
       buf->slab = slab;
       buf->start = i* mgr->bufSize;
       buf->mapCount = 0;
-      cnd_init(&buf->event);
       list_addtail(&buf->head, &slab->freeBuffers);
       slab->numFree++;
       buf++;



More information about the mesa-commit mailing list