Lines Matching refs:vctx
87 struct virgl_context *vctx = virgl_context(ctx); in virgl_render_condition() local
92 virgl_encoder_render_condition(vctx, handle, condition, mode); in virgl_render_condition()
98 struct virgl_context *vctx = virgl_context(ctx); in virgl_create_query() local
121 virgl_encoder_create_query(vctx, query->handle, in virgl_create_query()
130 struct virgl_context *vctx = virgl_context(ctx); in virgl_destroy_query() local
133 virgl_encode_delete_object(vctx, query->handle, VIRGL_OBJECT_QUERY); in virgl_destroy_query()
142 struct virgl_context *vctx = virgl_context(ctx); in virgl_begin_query() local
145 virgl_encoder_begin_query(vctx, query->handle); in virgl_begin_query()
154 struct virgl_context *vctx = virgl_context(ctx); in virgl_end_query() local
165 virgl_encoder_end_query(vctx, query->handle); in virgl_end_query()
168 virgl_encoder_get_query_result(vctx, query->handle, 0); in virgl_end_query()
169 vs->vws->emit_res(vs->vws, vctx->cbuf, query->buf->hw_res, false); in virgl_end_query()
183 struct virgl_context *vctx = virgl_context(ctx); in virgl_get_query_result() local
187 if (vs->vws->res_is_referenced(vs->vws, vctx->cbuf, query->buf->hw_res)) in virgl_get_query_result()
246 struct virgl_context *vctx = virgl_context(ctx); in virgl_get_query_result_resource() local
250 virgl_encode_get_query_result_qbo(vctx, query->handle, qbo, wait, result_type, offset, index); in virgl_get_query_result_resource()
253 void virgl_init_query_functions(struct virgl_context *vctx) in virgl_init_query_functions() argument
255 vctx->base.render_condition = virgl_render_condition; in virgl_init_query_functions()
256 vctx->base.create_query = virgl_create_query; in virgl_init_query_functions()
257 vctx->base.destroy_query = virgl_destroy_query; in virgl_init_query_functions()
258 vctx->base.begin_query = virgl_begin_query; in virgl_init_query_functions()
259 vctx->base.end_query = virgl_end_query; in virgl_init_query_functions()
260 vctx->base.get_query_result = virgl_get_query_result; in virgl_init_query_functions()
261 vctx->base.set_active_query_state = virgl_set_active_query_state; in virgl_init_query_functions()
262 vctx->base.get_query_result_resource = virgl_get_query_result_resource; in virgl_init_query_functions()