Home
last modified time | relevance | path

Searched refs:vctx (Results 1 – 21 of 21) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/virgl/
Dvirgl_context.c68 virgl_can_rebind_resource(struct virgl_context *vctx, in virgl_can_rebind_resource() argument
88 virgl_rebind_resource(struct virgl_context *vctx, in virgl_rebind_resource() argument
101 assert(virgl_can_rebind_resource(vctx, res) && in virgl_rebind_resource()
105 for (i = 0; i < vctx->num_vertex_buffers; i++) { in virgl_rebind_resource()
106 if (vctx->vertex_buffer[i].buffer.resource == res) { in virgl_rebind_resource()
107 vctx->vertex_array_dirty = true; in virgl_rebind_resource()
114 uint32_t remaining_mask = vctx->atomic_buffer_enabled_mask; in virgl_rebind_resource()
117 if (vctx->atomic_buffers[i].buffer == res) { in virgl_rebind_resource()
118 const struct pipe_shader_buffer *abo = &vctx->atomic_buffers[i]; in virgl_rebind_resource()
119 virgl_encode_set_hw_atomic_buffers(vctx, i, 1, abo); in virgl_rebind_resource()
[all …]
Dvirgl_streamout.c36 struct virgl_context *vctx = virgl_context(ctx); in virgl_create_so_target() local
57 virgl_encoder_create_so_target(vctx, handle, res, buffer_offset, buffer_size); in virgl_create_so_target()
64 struct virgl_context *vctx = virgl_context(ctx); in virgl_destroy_so_target() local
68 virgl_encode_delete_object(vctx, t->handle, VIRGL_OBJECT_STREAMOUT_TARGET); in virgl_destroy_so_target()
77 struct virgl_context *vctx = virgl_context(ctx); in virgl_set_so_targets() local
81 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_set_so_targets()
84 pipe_resource_reference(&vctx->so_targets[i].base.buffer, targets[i]->buffer); in virgl_set_so_targets()
86 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_set_so_targets()
88 pipe_resource_reference(&vctx->so_targets[i].base.buffer, NULL); in virgl_set_so_targets()
91 for (i = num_targets; i < vctx->num_so_targets; i++) in virgl_set_so_targets()
[all …]
Dvirgl_query.c87 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()
[all …]
Dvirgl_resource.c57 static bool virgl_res_needs_flush(struct virgl_context *vctx, in virgl_res_needs_flush() argument
60 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_res_needs_flush()
66 if (!vws->res_is_referenced(vws, vctx->cbuf, res->hw_res)) in virgl_res_needs_flush()
82 static bool virgl_res_needs_readback(struct virgl_context *vctx, in virgl_res_needs_readback() argument
97 virgl_resource_transfer_prepare(struct virgl_context *vctx, in virgl_resource_transfer_prepare() argument
100 struct virgl_screen *vs = virgl_screen(vctx->base.screen); in virgl_resource_transfer_prepare()
120 flush = virgl_res_needs_flush(vctx, xfer); in virgl_resource_transfer_prepare()
121 readback = virgl_res_needs_readback(vctx, res, xfer->base.usage, in virgl_resource_transfer_prepare()
159 can_realloc = virgl_can_rebind_resource(vctx, &res->b); in virgl_resource_transfer_prepare()
161 can_staging = vctx->supports_staging; in virgl_resource_transfer_prepare()
[all …]
Dvirgl_buffer.c34 struct virgl_context *vctx = virgl_context(ctx); in virgl_buffer_transfer_unmap() local
42 virgl_resource_destroy_transfer(vctx, trans); in virgl_buffer_transfer_unmap()
52 virgl_encode_copy_transfer(vctx, trans); in virgl_buffer_transfer_unmap()
53 virgl_resource_destroy_transfer(vctx, trans); in virgl_buffer_transfer_unmap()
55 virgl_transfer_queue_unmap(&vctx->queue, trans); in virgl_buffer_transfer_unmap()
58 virgl_resource_destroy_transfer(vctx, trans); in virgl_buffer_transfer_unmap()
Dvirgl_context.h127 void virgl_init_blit_functions(struct virgl_context *vctx);
128 void virgl_init_query_functions(struct virgl_context *vctx);
129 void virgl_init_so_functions(struct virgl_context *vctx);
134 virgl_can_rebind_resource(struct virgl_context *vctx,
138 virgl_rebind_resource(struct virgl_context *vctx,
Dvirgl_texture.c122 struct virgl_context *vctx = virgl_context(ctx); in texture_transfer_map_resolve() local
127 trans = virgl_resource_create_transfer(vctx, resource, in texture_transfer_map_resolve()
216 virgl_resource_destroy_transfer(vctx, trans); in texture_transfer_map_resolve()
260 struct virgl_context *vctx = virgl_context(ctx); in virgl_texture_transfer_unmap() local
289 virgl_resource_destroy_transfer(vctx, in virgl_texture_transfer_unmap()
295 virgl_encode_copy_transfer(vctx, trans); in virgl_texture_transfer_unmap()
296 virgl_resource_destroy_transfer(vctx, trans); in virgl_texture_transfer_unmap()
298 virgl_transfer_queue_unmap(&vctx->queue, trans); in virgl_texture_transfer_unmap()
301 virgl_resource_destroy_transfer(vctx, trans); in virgl_texture_transfer_unmap()
Dvirgl_transfer_queue.c166 virgl_resource_destroy_transfer(queue->vctx, queued); in remove_transfer()
265 struct virgl_context *vctx) in virgl_transfer_queue_init() argument
267 struct virgl_screen *vs = virgl_screen(vctx->base.screen); in virgl_transfer_queue_init()
270 queue->vctx = vctx; in virgl_transfer_queue_init()
296 queue->vctx = NULL; in virgl_transfer_queue_fini()
Dvirgl_transfer_queue.h38 struct virgl_context *vctx; member
44 struct virgl_context *vctx);
Dvirgl_resource.h185 virgl_resource_create_transfer(struct virgl_context *vctx,
191 void virgl_resource_destroy_transfer(struct virgl_context *vctx,
Dvirgl_screen.c810 struct virgl_context *vctx = virgl_context(ctx); in virgl_fence_finish() local
812 if (vctx && timeout) in virgl_fence_finish()
813 virgl_flush_eq(vctx, NULL, NULL); in virgl_fence_finish()
869 struct virgl_context *vctx = virgl_context(ctx); in virgl_query_memory_info() local
887 virgl_encode_get_memory_info(vctx, res); in virgl_query_memory_info()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dxml_libxml2.c59 xmlSchemaValidCtxtPtr vctx; in xml_validate() local
86 vctx = xmlSchemaNewValidCtxt(schema); in xml_validate()
87 xmlSchemaSetValidErrors(vctx, (xmlSchemaValidityErrorFunc) add_str, in xml_validate()
91 ret = xmlSchemaValidateDoc(vctx, doc); in xml_validate()
92 xmlSchemaFreeValidCtxt(vctx); in xml_validate()
120 xmlValidCtxt vctx; in xml_validate_dtd() local
146 os_memset(&vctx, 0, sizeof(vctx)); in xml_validate_dtd()
147 vctx.userData = &errors; in xml_validate_dtd()
148 vctx.error = add_str; in xml_validate_dtd()
149 vctx.warning = add_str; in xml_validate_dtd()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dxml_libxml2.c59 xmlSchemaValidCtxtPtr vctx; in xml_validate() local
86 vctx = xmlSchemaNewValidCtxt(schema); in xml_validate()
87 xmlSchemaSetValidErrors(vctx, (xmlSchemaValidityErrorFunc) add_str, in xml_validate()
91 ret = xmlSchemaValidateDoc(vctx, doc); in xml_validate()
92 xmlSchemaFreeValidCtxt(vctx); in xml_validate()
120 xmlValidCtxt vctx; in xml_validate_dtd() local
146 os_memset(&vctx, 0, sizeof(vctx)); in xml_validate_dtd()
147 vctx.userData = &errors; in xml_validate_dtd()
148 vctx.error = add_str; in xml_validate_dtd()
149 vctx.warning = add_str; in xml_validate_dtd()
[all …]
/third_party/ejdb/src/jbl/
Djbl_json.c529 int lvl, JBL_NODE n, const char *key, int klidx, JBN_VCTX *vctx, in _jbl_clone_node_visit() argument
534 JBL_NODE parent = vctx->root; in _jbl_clone_node_visit()
535 if (lvl < vctx->pos) { // Pop in _jbl_clone_node_visit()
536 for ( ; lvl < vctx->pos; --vctx->pos) { in _jbl_clone_node_visit()
540 vctx->root = parent; in _jbl_clone_node_visit()
541 assert(vctx->root); in _jbl_clone_node_visit()
542 } else if (lvl > vctx->pos) { // Push in _jbl_clone_node_visit()
543 vctx->pos = lvl; in _jbl_clone_node_visit()
544 parent = vctx->op; in _jbl_clone_node_visit()
545 vctx->root = parent; in _jbl_clone_node_visit()
[all …]
Djbl.c1114 iwrc _jbl_visit(binn_iter *iter, int lvl, JBL_VCTX *vctx, JBL_VISITOR visitor) { in _jbl_visit() argument
1116 binn *bn = vctx->bn; in _jbl_visit()
1132 rc = _jbl_visit(&it, 0, vctx, visitor); in _jbl_visit()
1139 while (!vctx->terminate && binn_object_next(iter, key, &bv)) { in _jbl_visit()
1140 cmd = visitor(lvl, &bv, key, -1, vctx, &rc); in _jbl_visit()
1143 vctx->terminate = true; in _jbl_visit()
1151 rc = _jbl_visit(&it, lvl + 1, vctx, visitor); in _jbl_visit()
1158 while (!vctx->terminate && binn_map_next(iter, &idx, &bv)) { in _jbl_visit()
1159 cmd = visitor(lvl, &bv, 0, idx, vctx, &rc); in _jbl_visit()
1162 vctx->terminate = true; in _jbl_visit()
[all …]
Djbl_internal.h83 …isitor_cmd_t (*JBL_VISITOR)(int lvl, binn *bv, const char *key, int idx, JBL_VCTX *vctx, iwrc *rc);
84 iwrc _jbl_visit(binn_iter *iter, int lvl, JBL_VCTX *vctx, JBL_VISITOR visitor);
Djbl.h868 …or_cmd_t (*JBN_VISITOR)(int lvl, JBL_NODE n, const char *key, int klidx, JBN_VCTX *vctx, iwrc *rc);
870 IW_EXPORT iwrc jbn_visit(JBL_NODE node, int lvl, JBN_VCTX *vctx, JBN_VISITOR visitor);
/third_party/openssl/crypto/evp/
Dm_sigver.c179 int vctx = 0; in EVP_DigestVerifyFinal() local
182 vctx = 1; in EVP_DigestVerifyFinal()
184 vctx = 0; in EVP_DigestVerifyFinal()
186 if (vctx) in EVP_DigestVerifyFinal()
198 if (vctx) in EVP_DigestVerifyFinal()
205 if (vctx || !r) in EVP_DigestVerifyFinal()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DvalidationEGL.h146 ValidationContext vctx(THREAD, epname, OBJ); \
147 auto ANGLE_LOCAL_VAR = (Validate##EP(&vctx, ##__VA_ARGS__)); \
158 ValidationContext vctx(THREAD, epname, OBJ); \
159 auto ANGLE_LOCAL_VAR = (Validate##EP(&vctx, ##__VA_ARGS__)); \
/third_party/mesa3d/src/gallium/drivers/virgl/tests/
Dvirgl_staging_mgr_test.cpp88 struct virgl_context *vctx = CALLOC_STRUCT(virgl_context); in fake_virgl_context_create() local
92 vctx->base.screen = &vs->base; in fake_virgl_context_create()
99 return &vctx->base; in fake_virgl_context_create()
105 struct virgl_context *vctx = virgl_context(ctx); in fake_virgl_context_destroy() local
110 FREE(vctx); in fake_virgl_context_destroy()
/third_party/ejdb/src/jql/
Djql.c16 JBL_VCTX *vctx; member
1351 …_cmd_t _jql_match_visitor(int lvl, binn *bv, const char *key, int idx, JBL_VCTX *vctx, iwrc *rcp) { in _jql_match_visitor() argument
1354 JQL q = vctx->op; in _jql_match_visitor()
1363 .vctx = vctx, in _jql_match_visitor()
1381 JBL_VCTX vctx = { in jql_matched() local
1406 iwrc rc = _jbl_visit(0, 0, &vctx, _jql_match_visitor); in jql_matched()
1407 if (vctx.pool) { in jql_matched()
1408 iwpool_destroy(vctx.pool); in jql_matched()
1509 JBN_VCTX *vctx, JQP_PROJECTION *proj, in _jql_proj_matched() argument
1545 JBN_VCTX *vctx, JQP_PROJECTION *proj, in _jql_proj_join_matched() argument
[all …]