diff options
author | Kenneth Graunke <[email protected]> | 2018-01-19 21:55:32 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:05 -0800 |
commit | 231935efa2d710fd8e81524a3a03938e8cf29059 (patch) | |
tree | 63a9503a855bbef7b14fb738b57ddc97f6c5cc58 /src/gallium | |
parent | 9ca58ca517006b245077ba282d9f35826c8a166a (diff) |
iris: init the batch!
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index 0daa77483ca..df273b29f0b 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -75,8 +75,9 @@ iris_destroy_context(struct pipe_context *ctx) } struct pipe_context * -iris_create_context(struct pipe_screen *screen, void *priv, unsigned flags) +iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags) { + struct iris_screen *screen = (struct iris_screen*)pscreen; struct iris_context *ice = calloc(1, sizeof(struct iris_context)); if (!ice) @@ -84,7 +85,7 @@ iris_create_context(struct pipe_screen *screen, void *priv, unsigned flags) struct pipe_context *ctx = &ice->ctx; - ctx->screen = screen; + ctx->screen = pscreen; ctx->priv = priv; ctx->stream_uploader = u_upload_create_default(ctx); @@ -105,5 +106,7 @@ iris_create_context(struct pipe_screen *screen, void *priv, unsigned flags) iris_init_state_functions(ctx); iris_init_query_functions(ctx); + iris_batch_init(&ice->render_batch, screen, &ice->dbg); + return ctx; } |