Lines Matching defs:ctx
318 struct iris_screen *screen = (struct iris_screen *)ice->ctx.screen;
1510 iris_flush_resource(struct pipe_context *ctx, struct pipe_resource *resource)
1512 struct iris_context *ice = (struct iris_context *)ctx;
1549 struct pipe_screen *pscreen = ice->ctx.screen;
1591 iris_flush_resource(&ice->ctx, &new_res->base.b);
1633 struct pipe_context *ctx,
1642 if (ctx) {
1643 ctx = threaded_context_unwrap_sync(ctx);
1654 ctx = iris_create_context(pscreen, NULL, 0);
1658 struct iris_context *ice = (struct iris_context *)ctx;
1664 iris_destroy_context(ctx);
1689 struct pipe_context *ctx,
1709 iris_resource_disable_suballoc_on_first_query(pscreen, ctx, res);
1788 struct pipe_context *ctx,
1799 iris_resource_disable_suballoc_on_first_query(pscreen, ctx, res);
1874 iris_replace_buffer_storage(struct pipe_context *ctx,
1881 struct iris_screen *screen = (void *) ctx->screen;
1882 struct iris_context *ice = (void *) ctx;
1903 iris_invalidate_resource(struct pipe_context *ctx,
1906 struct iris_screen *screen = (void *) ctx->screen;
1907 struct iris_context *ice = (void *) ctx;
2340 iris_transfer_map(struct pipe_context *ctx,
2347 struct iris_context *ice = (struct iris_context *)ctx;
2355 iris_invalidate_resource(ctx, resource);
2487 iris_transfer_flush_region(struct pipe_context *ctx,
2491 struct iris_context *ice = (struct iris_context *)ctx;
2509 iris_transfer_unmap(struct pipe_context *ctx, struct pipe_transfer *xfer)
2511 struct iris_context *ice = (struct iris_context *)ctx;
2522 iris_transfer_flush_region(ctx, xfer, &flush_box);
2544 iris_texture_subdata(struct pipe_context *ctx,
2553 struct iris_context *ice = (struct iris_context *)ctx;
2573 return u_default_texture_subdata(ctx, resource, level, usage, box,
2717 iris_init_resource_functions(struct pipe_context *ctx)
2719 ctx->flush_resource = iris_flush_resource;
2720 ctx->invalidate_resource = iris_invalidate_resource;
2721 ctx->buffer_map = u_transfer_helper_transfer_map;
2722 ctx->texture_map = u_transfer_helper_transfer_map;
2723 ctx->transfer_flush_region = u_transfer_helper_transfer_flush_region;
2724 ctx->buffer_unmap = u_transfer_helper_transfer_unmap;
2725 ctx->texture_unmap = u_transfer_helper_transfer_unmap;
2726 ctx->buffer_subdata = u_default_buffer_subdata;
2727 ctx->clear_buffer = u_default_clear_buffer;
2728 ctx->texture_subdata = iris_texture_subdata;