[Mesa-dev] [PATCH 3/3] panfrost: Allocate panfrost_job in panfrost_context

Tomeu Vizoso tomeu.vizoso at collabora.com
Thu Jun 20 09:20:24 UTC 2019


Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
 src/gallium/drivers/panfrost/pan_job.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c
index 14efa71fb055..ecc0ac7be8e1 100644
--- a/src/gallium/drivers/panfrost/pan_job.c
+++ b/src/gallium/drivers/panfrost/pan_job.c
@@ -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;
 
-- 
2.20.1



More information about the mesa-dev mailing list