zink: ralloc zink_framebuffer structs
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8227>
This commit is contained in:
committed by
Marge Bot
parent
c6741f52bd
commit
b4da9f42e5
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user