Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_context.c65 virgl_can_rebind_resource(struct virgl_context *vctx, in virgl_can_rebind_resource() argument
85 virgl_rebind_resource(struct virgl_context *vctx, in virgl_rebind_resource() argument
98 assert(virgl_can_rebind_resource(vctx, res) && in virgl_rebind_resource()
102 for (i = 0; i < vctx->num_vertex_buffers; i++) { in virgl_rebind_resource()
103 if (vctx->vertex_buffer[i].buffer.resource == res) { in virgl_rebind_resource()
104 vctx->vertex_array_dirty = true; in virgl_rebind_resource()
111 uint32_t remaining_mask = vctx->atomic_buffer_enabled_mask; in virgl_rebind_resource()
114 if (vctx->atomic_buffers[i].buffer == res) { in virgl_rebind_resource()
115 const struct pipe_shader_buffer *abo = &vctx->atomic_buffers[i]; in virgl_rebind_resource()
116 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->u.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.h126 void virgl_init_blit_functions(struct virgl_context *vctx);
127 void virgl_init_query_functions(struct virgl_context *vctx);
128 void virgl_init_so_functions(struct virgl_context *vctx);
130 struct tgsi_token *virgl_tgsi_transform(struct virgl_context *vctx, const struct tgsi_token *tokens…
133 virgl_can_rebind_resource(struct virgl_context *vctx,
137 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_tgsi.c104 struct tgsi_token *virgl_tgsi_transform(struct virgl_context *vctx, const struct tgsi_token *tokens… in virgl_tgsi_transform() argument
106 struct virgl_screen *vscreen = (struct virgl_screen *)vctx->base.screen; in virgl_tgsi_transform()
Dvirgl_resource.h178 virgl_resource_create_transfer(struct virgl_context *vctx,
184 void virgl_resource_destroy_transfer(struct virgl_context *vctx,
/external/wpa_supplicant_8/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 …]
/external/angle/src/libANGLE/
DvalidationEGL.h145 ValidationContext vctx(THREAD, epname, OBJ); \
146 auto ANGLE_LOCAL_VAR = (Validate##EP(&vctx, ##__VA_ARGS__)); \
157 ValidationContext vctx(THREAD, epname, OBJ); \
158 auto ANGLE_LOCAL_VAR = (Validate##EP(&vctx, ##__VA_ARGS__)); \
/external/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()