diff options
author | Kenneth Graunke <[email protected]> | 2018-04-06 11:44:59 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:05 -0800 |
commit | 6cbd1d16921c5336e87e7d954e7ac6da67749ba9 (patch) | |
tree | c9840e98189fb62a418b3da5ea158dd8413efb80 /src/gallium/drivers/iris/iris_context.c | |
parent | 209692c7168b5bf4f4034862e2af3ccfc79f6257 (diff) |
iris: binders
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index d0656cf2f22..dbf4759c96b 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -80,6 +80,7 @@ iris_destroy_context(struct pipe_context *ctx) u_upload_destroy(ctx->stream_uploader); iris_destroy_program_cache(ice); + iris_destroy_binder(&ice->state.binder); u_upload_destroy(ice->state.surface_uploader); u_upload_destroy(ice->state.dynamic_uploader); @@ -136,6 +137,8 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags) iris_init_program_cache(ice); + iris_init_binder(&ice->state.binder, screen->bufmgr); + ice->state.surface_uploader = u_upload_create(&ice->ctx, 16384, PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE, IRIS_RESOURCE_FLAG_SURFACE_MEMZONE); |