Lines Matching refs:ctx

411    struct dri_context *ctx = dri_context(context);
412 struct pipe_context *pipe = ctx->st->pipe;
435 dri2_allocate_textures(struct dri_context *ctx,
492 struct pipe_context *pipe = ctx->st->pipe;
536 handle_in_fence(ctx->cPriv, images.front);
548 handle_in_fence(ctx->cPriv, images.back);
560 handle_in_fence(ctx->cPriv, images.back);
562 ctx->is_shared_buffer_bound = true;
564 ctx->is_shared_buffer_bound = false;
664 dri_pipe_blit(ctx->st->pipe,
734 dri2_flush_frontbuffer(struct dri_context *ctx,
743 struct pipe_context *pipe = ctx->st->pipe;
752 (!ctx->is_shared_buffer_bound || statt != ST_ATTACHMENT_BACK_LEFT))
757 dri_pipe_blit(ctx->st->pipe, drawable->textures[statt],
765 if (ctx->is_shared_buffer_bound) {
775 if (ctx->is_shared_buffer_bound) {
796 dri2_flush_swapbuffers(struct dri_context *ctx,
809 struct dri_context *ctx,
1747 struct dri_context *ctx = dri_context(context);
1748 struct pipe_context *pipe = ctx->st->pipe;
1780 ctx->st->flush(ctx->st, 0, NULL, NULL, NULL);
1782 screen = dri_screen(ctx->sPriv)->base.screen;
1784 ctx->st->flush(ctx->st, 0, &fence, NULL, NULL);
1795 struct dri_context *ctx = dri_context(context);
1796 struct pipe_context *pipe = ctx->st->pipe;
1832 struct dri_context *ctx = dri_context(context);
1833 struct pipe_context *pipe = ctx->st->pipe;
1964 struct gl_context *ctx = ((struct st_context *)st)->ctx;
2010 simple_mtx_lock(&ctx->Shared->Mutex);
2018 struct gl_buffer_object *buf = _mesa_lookup_bufferobj(ctx, in->obj);
2026 simple_mtx_unlock(&ctx->Shared->Mutex);
2033 simple_mtx_unlock(&ctx->Shared->Mutex);
2047 struct gl_renderbuffer *rb = _mesa_lookup_renderbuffer(ctx, in->obj);
2054 simple_mtx_unlock(&ctx->Shared->Mutex);
2063 simple_mtx_unlock(&ctx->Shared->Mutex);
2073 simple_mtx_unlock(&ctx->Shared->Mutex);
2088 struct gl_texture_object *obj = _mesa_lookup_texture(ctx, in->obj);
2091 _mesa_test_texobj_completeness(ctx, obj);
2103 simple_mtx_unlock(&ctx->Shared->Mutex);
2113 simple_mtx_unlock(&ctx->Shared->Mutex);
2134 simple_mtx_unlock(&ctx->Shared->Mutex);
2138 if (!st_finalize_texture(ctx, st->pipe, obj, 0)) {
2139 simple_mtx_unlock(&ctx->Shared->Mutex);
2146 simple_mtx_unlock(&ctx->Shared->Mutex);
2176 simple_mtx_unlock(&ctx->Shared->Mutex);