diff options
author | Chris Wilson <[email protected]> | 2018-11-07 11:50:02 +0000 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:10 -0800 |
commit | f459c56be6bf33439cccc11e932b2b5b52ba7ad8 (patch) | |
tree | 2a599d4150ad12711280e08307d7f3115368563f /src/gallium/drivers/iris/iris_context.c | |
parent | db199d9d0770c3c76e6a9487b07c61513204bf8f (diff) |
iris: Add fence support using drm_syncobj
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index 981b7dd8b88..efcdf128e71 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -34,23 +34,6 @@ #include "iris_screen.h" #include "common/gen_sample_positions.h" -static void -iris_flush(struct pipe_context *ctx, - struct pipe_fence_handle **fence, - unsigned flags) -{ - struct iris_context *ice = (struct iris_context *)ctx; - - iris_batch_flush(&ice->render_batch); - - if (ice->compute_batch.contains_draw) - iris_batch_flush(&ice->compute_batch); - - // XXX: bogus!!! - if (fence) - *fence = NULL; -} - /** * For debugging purposes, this returns a time in seconds. */ @@ -182,12 +165,12 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags) ctx->const_uploader = ctx->stream_uploader; ctx->destroy = iris_destroy_context; - ctx->flush = iris_flush; ctx->set_debug_callback = iris_set_debug_callback; ctx->get_sample_position = iris_get_sample_position; ice->shaders.urb_size = devinfo->urb.size; + iris_init_context_fence_functions(ctx); iris_init_blit_functions(ctx); iris_init_clear_functions(ctx); iris_init_program_functions(ctx); |