mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
iris: init the batch!
This commit is contained in:
parent
9ca58ca517
commit
231935efa2
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue