panfrost: Allocate panfrost_job in panfrost_context
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 19 Jun 2019 11:16:45 +0000 (13:16 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 20 Jun 2019 13:48:35 +0000 (15:48 +0200)
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_job.c

index 96f05c663540a9bd5b8a713d933151b7ac827cbe..717676021b448dc489ddbb0494029cf1ccc3389d 100644 (file)
@@ -31,7 +31,7 @@
 struct panfrost_job *
 panfrost_create_job(struct panfrost_context *ctx)
 {
-        struct panfrost_job *job = rzalloc(NULL, struct panfrost_job);
+        struct panfrost_job *job = rzalloc(ctx, struct panfrost_job);
 
         job->ctx = ctx;