diff --git a/src/gallium/drivers/lima/lima_context.c b/src/gallium/drivers/lima/lima_context.c index f9d423a31fb..1070a56d25c 100644 --- a/src/gallium/drivers/lima/lima_context.c +++ b/src/gallium/drivers/lima/lima_context.c @@ -205,7 +205,7 @@ lima_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) struct lima_screen *screen = lima_screen(pscreen); struct lima_context *ctx; - ctx = rzalloc(screen, struct lima_context); + ctx = rzalloc(NULL, struct lima_context); if (!ctx) return NULL; diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 304107f45c4..c268e07d1b8 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -1060,7 +1060,7 @@ panfrost_set_stream_output_targets(struct pipe_context *pctx, struct pipe_context * panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags) { - struct panfrost_context *ctx = rzalloc(screen, struct panfrost_context); + struct panfrost_context *ctx = rzalloc(NULL, struct panfrost_context); struct pipe_context *gallium = (struct pipe_context *) ctx; struct panfrost_device *dev = pan_device(screen);