Mesa (master): zink: ralloc zink_framebuffer structs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 14 22:18:16 UTC 2021


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu Dec 24 09:20:39 2020 -0500

zink: ralloc zink_framebuffer structs

Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8227>

---

 src/gallium/drivers/zink/zink_framebuffer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_framebuffer.c b/src/gallium/drivers/zink/zink_framebuffer.c
index 41de02d0ab8..b8467d2b696 100644
--- a/src/gallium/drivers/zink/zink_framebuffer.c
+++ b/src/gallium/drivers/zink/zink_framebuffer.c
@@ -69,7 +69,7 @@ zink_destroy_framebuffer(struct zink_screen *screen,
 
    pipe_surface_reference(&fbuf->null_surface, NULL);
 
-   FREE(fbuf);
+   ralloc_free(fbuf);
 }
 
 struct zink_framebuffer *
@@ -77,7 +77,7 @@ zink_create_framebuffer(struct zink_context *ctx, struct zink_screen *screen,
                         struct zink_framebuffer_state *fb,
                         struct pipe_surface **attachments)
 {
-   struct zink_framebuffer *fbuf = CALLOC_STRUCT(zink_framebuffer);
+   struct zink_framebuffer *fbuf = rzalloc(NULL, struct zink_framebuffer);
    if (!fbuf)
       return NULL;
 



More information about the mesa-commit mailing list