diff --git a/.pick_status.json b/.pick_status.json index a7c590011ba..36669d2df46 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -274,7 +274,7 @@ "description": "panfrost: Use normal malloc/free instead of ralloc for surfaces", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index 66970426096..3d9658ef604 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -175,7 +175,7 @@ panfrost_create_surface(struct pipe_context *pipe, { struct pipe_surface *ps = NULL; - ps = rzalloc(pipe, struct pipe_surface); + ps = CALLOC_STRUCT(pipe_surface); if (ps) { pipe_reference_init(&ps->reference, 1); @@ -211,7 +211,7 @@ panfrost_surface_destroy(struct pipe_context *pipe, { assert(surf->texture); pipe_resource_reference(&surf->texture, NULL); - ralloc_free(surf); + free(surf); } static struct pipe_resource *