Re: [Mesa-dev] [PATCH v2 3/3] panfrost: Stop passing a ctx to functions being passed a batch

2019-08-31 Thread Boris Brezillon
On Sat, 31 Aug 2019 17:12:33 +0100 Daniel Stone wrote: > Hi Boris, > > On Sat, 31 Aug 2019 at 08:53, Boris Brezillon > wrote: > > @@ -123,8 +123,7 @@ struct panfrost_batch * > > panfrost_job_create_batch(struct panfrost_context *ctx); > > > > void > > -panfrost_job_free_batch(struct

Re: [Mesa-dev] [PATCH v2 3/3] panfrost: Stop passing a ctx to functions being passed a batch

2019-08-31 Thread Daniel Stone
Hi Boris, On Sat, 31 Aug 2019 at 08:53, Boris Brezillon wrote: > @@ -123,8 +123,7 @@ struct panfrost_batch * > panfrost_job_create_batch(struct panfrost_context *ctx); > > void > -panfrost_job_free_batch(struct panfrost_context *ctx, > -struct panfrost_batch *batch); >

[Mesa-dev] [PATCH v2 3/3] panfrost: Stop passing a ctx to functions being passed a batch

2019-08-31 Thread Boris Brezillon
The context can be retrieved from batch->ctx. Signed-off-by: Boris Brezillon --- Changes in v2: * s/panfrost_job_get_batch_for_fbo/panfrost_get_batch_for_fbo/ * s/panfrost_job_batch/panfrost_batch/g --- src/gallium/drivers/panfrost/pan_context.c | 6 +++---