Home
last modified time | relevance | path

Searched refs:ctx_id (Results 1 – 25 of 97) sorted by relevance

1234

/external/igt-gpu-tools/lib/i915/
Dgem_context.c56 uint32_t ctx_id = 0; in gem_has_contexts() local
58 __gem_context_create(fd, &ctx_id); in gem_has_contexts()
59 if (ctx_id) in gem_has_contexts()
60 gem_context_destroy(fd, ctx_id); in gem_has_contexts()
62 return ctx_id; in gem_has_contexts()
77 int __gem_context_create(int fd, uint32_t *ctx_id) in __gem_context_create() argument
84 *ctx_id = create.ctx_id; in __gem_context_create()
106 uint32_t ctx_id; in gem_context_create() local
108 igt_assert_eq(__gem_context_create(fd, &ctx_id), 0); in gem_context_create()
109 igt_assert(ctx_id != 0); in gem_context_create()
[all …]
Dgem_context.h28 int __gem_context_create(int fd, uint32_t *ctx_id);
29 void gem_context_destroy(int fd, uint32_t ctx_id);
30 int __gem_context_destroy(int fd, uint32_t ctx_id);
/external/igt-gpu-tools/tests/i915/
Dgem_ctx_clone.c67 gem_context_destroy(i915, create.ctx_id); in invalid_clone()
107 set.param.ctx_id = ext.clone_id; in clone_flags()
111 set.param.ctx_id = create.ctx_id; in clone_flags()
118 gem_context_destroy(i915, create.ctx_id); in clone_flags()
121 set.param.ctx_id = ext.clone_id; in clone_flags()
126 set.param.ctx_id = create.ctx_id; in clone_flags()
133 gem_context_destroy(i915, create.ctx_id); in clone_flags()
136 set.param.ctx_id = 0; in clone_flags()
143 set.param.ctx_id = create.ctx_id; in clone_flags()
148 set.param.ctx_id = ext.clone_id; in clone_flags()
[all …]
Dgem_ctx_bad_destroy.c40 uint32_t ctx_id; variable
50 ctx_id = gem_context_create(fd);
52 gem_context_destroy(fd, ctx_id);
57 ctx_id = gem_context_create(fd);
58 gem_context_destroy(fd, ctx_id);
59 igt_assert(__gem_context_destroy(fd, ctx_id) == -ENOENT);
71 ctx_id = gem_context_create(fd);
74 destroy.ctx_id = ctx_id;
79 gem_context_destroy(fd, ctx_id);
Dgem_ctx_param.c85 .ctx_id = flags & NEW_CTX ? gem_context_create(fd) : 0, in set_priority()
127 gem_context_destroy(fd, arg.ctx_id); in set_priority()
195 arg.ctx_id = parent; in test_vm()
204 arg.ctx_id = child; in test_vm()
218 arg.ctx_id = child; in test_vm()
256 arg.ctx_id = ctx;
262 arg.ctx_id = 0;
268 arg.ctx_id = 2;
273 arg.ctx_id = ctx;
275 arg.ctx_id = 2;
[all …]
Dgem_ctx_exec.c47 static int exec(int fd, uint32_t handle, int ring, int ctx_id) in exec() argument
56 i915_execbuffer2_set_context_id(execbuf, ctx_id); in exec()
169 .ctx_id = gem_context_create(i915), in norecovery()
183 .ctx = param.ctx_id, in norecovery()
193 gem_context_destroy(i915, param.ctx_id); in norecovery()
204 uint32_t ctx_id; variable
218 ctx_id = gem_context_create(fd);
219 igt_assert(exec(fd, handle, 0, ctx_id) == 0);
221 gem_context_destroy(fd, ctx_id);
223 ctx_id = gem_context_create(fd);
[all …]
Dgem_mocs_settings.c258 uint32_t ctx_id, in do_read_registers() argument
284 i915_execbuffer2_set_context_id(execbuf, ctx_id); in do_read_registers()
315 uint32_t ctx_id, in write_registers() argument
335 i915_execbuffer2_set_context_id(execbuf, ctx_id); in write_registers()
348 uint32_t ctx_id, in check_control_registers() argument
359 ctx_id, in check_control_registers()
387 uint32_t ctx_id, in check_l3cc_registers() argument
398 ctx_id, in check_l3cc_registers()
463 unsigned engine, uint32_t ctx_id, in check_mocs_values() argument
466 check_control_registers(fd, engine, ctx_id, dirty); in check_mocs_values()
[all …]
Dgem_ctx_create.c265 uint32_t ctx_id; in maximum() local
279 err = __gem_context_create(fd, &ctx_id); in maximum()
286 contexts[count++] = ctx_id; in maximum()
344 gem_context_destroy(i915, create.ctx_id); in basic_ext_param()
354 gem_context_destroy(i915, create.ctx_id); in basic_ext_param()
366 get.ctx_id = create.ctx_id; in basic_ext_param()
371 gem_context_destroy(i915, create.ctx_id); in basic_ext_param()
374 ext.param.ctx_id = 1; in basic_ext_param()
376 ext.param.ctx_id = create.ctx_id; in basic_ext_param()
378 ext.param.ctx_id = -1; in basic_ext_param()
[all …]
Dgem_ctx_engines.c50 .ctx_id = 0, in has_context_engines()
60 .ctx_id = gem_context_create(i915), in invalid_engines()
172 gem_context_destroy(i915, param.ctx_id); in invalid_engines()
180 .ctx_id = gem_context_create(i915), in idempotent()
242 gem_context_destroy(i915, p.ctx_id); in idempotent()
249 .ctx_id = gem_context_create(i915), in execute_one()
260 .rsvd1 = param.ctx_id, in execute_one()
285 .ctx = param.ctx_id, in execute_one()
327 gem_context_destroy(i915, param.ctx_id); in execute_one()
334 .ctx_id = gem_context_create(i915), in execute_oneforall()
[all …]
Dgem_request_retire.c60 blit(int fd, uint32_t dst, uint32_t src, uint32_t ctx_id) in blit() argument
136 i915_execbuffer2_set_context_id(exec, ctx_id); in blit()
144 noop(int fd, uint32_t src, uint32_t ctx_id) in noop() argument
172 i915_execbuffer2_set_context_id(exec, ctx_id); in noop()
188 uint32_t ctx_id; in test_retire_vma_not_inactive() local
194 ctx_id = gem_context_create(fd); in test_retire_vma_not_inactive()
204 noop_bb = noop(fd, src, ctx_id); in test_retire_vma_not_inactive()
211 gem_context_destroy(fd, ctx_id); in test_retire_vma_not_inactive()
Dgem_vm_create.c190 gem_context_destroy(i915, create.ctx_id); in create_ext()
197 ctx[0] = create.ctx_id; in create_ext()
200 ctx[1] = create.ctx_id; in create_ext()
315 arg.ctx_id = ctx[0]; in isolation()
319 arg.ctx_id = ctx[1]; in isolation()
348 .ctx_id = gem_context_create(i915), in async_destroy()
355 .ctx = arg.ctx_id, in async_destroy()
360 spin[1] = __igt_spin_new(i915, .ctx = arg.ctx_id); in async_destroy()
366 gem_context_destroy(i915, arg.ctx_id); in async_destroy()
Dgem_media_vme.c108 .ctx_id = ctx, in shut_non_vme_subslices()
161 uint32_t ctx_id; variable
164 ret = drm_intel_gem_context_get_id(batch->ctx, &ctx_id);
167 shut_non_vme_subslices(drm_fd, ctx_id);
/external/crosvm/rutabaga_gfx/src/
Dgfxstream.rs69 ctx_id: u32, in pipe_virgl_renderer_transfer_read_iov()
80 ctx_id: u32, in pipe_virgl_renderer_transfer_write_iov()
91 ctx_id: i32, in pipe_virgl_renderer_submit_cmd()
104 fn pipe_virgl_renderer_create_fence(client_fence_id: c_int, ctx_id: u32) -> c_int; in pipe_virgl_renderer_create_fence()
105 fn pipe_virgl_renderer_ctx_attach_resource(ctx_id: c_int, res_handle: c_int); in pipe_virgl_renderer_ctx_attach_resource()
106 fn pipe_virgl_renderer_ctx_detach_resource(ctx_id: c_int, res_handle: c_int); in pipe_virgl_renderer_ctx_detach_resource()
123 ctx_id: u32, field
137 self.ctx_id as i32, in submit_cmd()
149 self.ctx_id as i32, in attach()
160 self.ctx_id as i32, in detach()
[all …]
Drutabaga_core.rs283 .get_mut(&fence_data.ctx_id) in create_fence()
315 ctx_id: 0, in poll()
404 ctx_id: u32, in transfer_write()
418 component.transfer_write(ctx_id, resource, transfer) in transfer_write()
427 ctx_id: u32, in transfer_read()
442 component.transfer_read(ctx_id, resource, transfer, buf) in transfer_read()
450 ctx_id: u32, in resource_create_blob()
463 if ctx_id > 0 { in resource_create_blob()
466 .get_mut(&ctx_id) in resource_create_blob()
481 let resource = component.create_blob(ctx_id, resource_id, resource_create_blob, iovecs)?; in resource_create_blob()
[all …]
Dvirgl_renderer.rs41 ctx_id: u32, field
55 self.ctx_id as i32, in submit_cmd()
66 virgl_renderer_ctx_attach_resource(self.ctx_id as i32, resource.resource_id as i32); in attach()
74 virgl_renderer_ctx_detach_resource(self.ctx_id as i32, resource.resource_id as i32); in detach()
83 virgl_renderer_context_destroy(self.ctx_id); in drop()
311 unsafe { virgl_renderer_create_fence(fence_data.fence_id as i32, fence_data.ctx_id) }; in create_fence()
392 ctx_id: u32, in transfer_write()
413 ctx_id, in transfer_write()
428 ctx_id: u32, in transfer_read()
464 ctx_id, in transfer_read()
[all …]
/external/virglrenderer/tests/
Dtest_fuzzer_formats.c52 static const uint32_t ctx_id = 1; variable
99 virgl_renderer_context_create(ctx_id, (unsigned)strlen(name), name); in initialize_environment()
118 virgl_renderer_ctx_attach_resource(ctx_id, args.handle); in test_format_wrong_size()
146 virgl_renderer_submit_cmd((void *) cmd, ctx_id, VIRGL_CMD_BLIT_SIZE + 1); in test_format_wrong_size()
166 virgl_renderer_ctx_attach_resource(ctx_id, args.handle); in test_format_fail_and_double_free()
189 virgl_renderer_ctx_attach_resource(ctx_id, args.handle); in test_blit_info_format_check()
217 virgl_renderer_submit_cmd((void *) cmd, ctx_id, VIRGL_CMD_BLIT_SIZE + 1); in test_blit_info_format_check()
236 virgl_renderer_ctx_attach_resource(ctx_id, args.handle); in test_blit_info_format_check_null_format()
264 virgl_renderer_submit_cmd((void *) cmd, ctx_id, VIRGL_CMD_BLIT_SIZE + 1); in test_blit_info_format_check_null_format()
284 virgl_renderer_ctx_attach_resource(ctx_id, args.handle); in test_format_is_plain_nullptr_deref_trigger()
[all …]
Dtest_virgl_transfer.c705 virgl_renderer_ctx_attach_resource(ctx.ctx_id, res.handle); in virgl_test_transfer_inline()
707 ret = virgl_renderer_submit_cmd(ctx.cbuf->buf, ctx.ctx_id, ctx.cbuf->cdw); in virgl_test_transfer_inline()
709 virgl_renderer_ctx_detach_resource(ctx.ctx_id, res.handle); in virgl_test_transfer_inline()
747 virgl_renderer_ctx_attach_resource(ctx.ctx_id, res.handle); in START_TEST()
752 ret = virgl_renderer_submit_cmd(ctx.cbuf->buf, ctx.ctx_id, ctx.cbuf->cdw); in START_TEST()
755 virgl_renderer_ctx_detach_resource(ctx.ctx_id, res.handle); in START_TEST()
774 virgl_renderer_ctx_attach_resource(ctx.ctx_id, res.handle); in START_TEST()
779 ret = virgl_renderer_submit_cmd(ctx.cbuf->buf, ctx.ctx_id, ctx.cbuf->cdw); in START_TEST()
782 virgl_renderer_ctx_detach_resource(ctx.ctx_id, res.handle); in START_TEST()
803 virgl_renderer_ctx_attach_resource(ctx.ctx_id, src_res.handle); in START_TEST()
[all …]
Dtest_virgl_cmd.c96 virgl_renderer_ctx_attach_resource(ctx.ctx_id, res.handle); in START_TEST()
121 virgl_renderer_submit_cmd(ctx.cbuf->buf, ctx.ctx_id, ctx.cbuf->cdw); in START_TEST()
130 ret = virgl_renderer_transfer_read_iov(res.handle, ctx.ctx_id, 0, 50, 0, &box, 0, NULL, 0); in START_TEST()
140 virgl_renderer_ctx_detach_resource(ctx.ctx_id, res.handle); in START_TEST()
172 virgl_renderer_ctx_attach_resource(ctx.ctx_id, res.handle); in START_TEST()
173 virgl_renderer_ctx_attach_resource(ctx.ctx_id, res2.handle); in START_TEST()
210 virgl_renderer_submit_cmd(ctx.cbuf->buf, ctx.ctx_id, ctx.cbuf->cdw); in START_TEST()
219 ret = virgl_renderer_transfer_read_iov(res2.handle, ctx.ctx_id, 0, 50, 0, &box, 0, NULL, 0); in START_TEST()
229 virgl_renderer_ctx_detach_resource(ctx.ctx_id, res2.handle); in START_TEST()
230 virgl_renderer_ctx_detach_resource(ctx.ctx_id, res.handle); in START_TEST()
[all …]
/external/virglrenderer/src/
Dvirglrenderer.c173 ctx->ctx_id, in per_context_fence_retire()
178 int virgl_renderer_context_create_with_flags(uint32_t ctx_id, in virgl_renderer_context_create_with_flags() argument
191 if (ctx_id == 0) in virgl_renderer_context_create_with_flags()
198 ctx = virgl_context_lookup(ctx_id); in virgl_renderer_context_create_with_flags()
206 ctx = vrend_renderer_context_create(ctx_id, nlen, name); in virgl_renderer_context_create_with_flags()
215 ctx->ctx_id = ctx_id; in virgl_renderer_context_create_with_flags()
243 int ctx_id, in virgl_renderer_submit_cmd() argument
247 struct virgl_context *ctx = virgl_context_lookup(ctx_id); in virgl_renderer_submit_cmd()
254 uint32_t ctx_id, in virgl_renderer_transfer_write_iov() argument
280 if (ctx_id) { in virgl_renderer_transfer_write_iov()
[all …]
Dvirglrenderer.h66 … void (*write_context_fence)(void *cookie, uint32_t ctx_id, uint64_t queue_id, void *fence_cookie);
196 int ctx_id,
199 VIRGL_EXPORT int virgl_renderer_transfer_read_iov(uint32_t handle, uint32_t ctx_id,
207 uint32_t ctx_id,
226 VIRGL_EXPORT int virgl_renderer_create_fence(int client_fence_id, uint32_t ctx_id);
230 VIRGL_EXPORT void virgl_renderer_ctx_attach_resource(int ctx_id, int res_handle);
231 VIRGL_EXPORT void virgl_renderer_ctx_detach_resource(int ctx_id, int res_handle);
269 VIRGL_EXPORT int virgl_renderer_context_create_with_flags(uint32_t ctx_id,
285 uint32_t ctx_id; member
319 VIRGL_EXPORT int virgl_renderer_context_create_fence(uint32_t ctx_id,
[all …]
Dvirgl_context.c68 virgl_context_table, uintptr_to_pointer(ctx->ctx_id), ctx); in virgl_context_add()
73 virgl_context_remove(uint32_t ctx_id) in virgl_context_remove() argument
75 util_hash_table_remove(virgl_context_table, uintptr_to_pointer(ctx_id)); in virgl_context_remove()
79 virgl_context_lookup(uint32_t ctx_id) in virgl_context_lookup() argument
82 uintptr_to_pointer(ctx_id)); in virgl_context_lookup()
/external/crosvm/devices/src/virtio/gpu/
Dvirtio_gpu.rs570 ctx_id: u32, in transfer_write()
575 .transfer_write(ctx_id, resource_id, transfer)?; in transfer_write()
586 ctx_id: u32, in transfer_read()
592 .transfer_read(ctx_id, resource_id, transfer, buf)?; in transfer_read()
599 ctx_id: u32, in resource_create_blob()
619 ctx_id, in resource_create_blob()
717 pub fn create_context(&mut self, ctx_id: u32, context_init: u32) -> VirtioGpuResult { in create_context()
718 self.rutabaga.create_context(ctx_id, context_init)?; in create_context()
723 pub fn destroy_context(&mut self, ctx_id: u32) -> VirtioGpuResult { in destroy_context()
724 self.rutabaga.destroy_context(ctx_id)?; in destroy_context()
[all …]
Dmod.rs191 if desc_fence.ctx_id != completed.ctx_id { in fence_ctx_equal()
347 .create_context(info.hdr.ctx_id.to_native(), info.context_init.to_native()), in process_gpu_command()
349 self.virtio_gpu.destroy_context(info.hdr.ctx_id.to_native()) in process_gpu_command()
353 .context_attach_resource(info.hdr.ctx_id.to_native(), info.resource_id.to_native()), in process_gpu_command()
356 .context_detach_resource(info.hdr.ctx_id.to_native(), info.resource_id.to_native()), in process_gpu_command()
376 let ctx_id = info.hdr.ctx_id.to_native(); in process_gpu_command() localVariable
393 .transfer_write(ctx_id, resource_id, transfer) in process_gpu_command()
396 let ctx_id = info.hdr.ctx_id.to_native(); in process_gpu_command() localVariable
413 .transfer_read(ctx_id, resource_id, transfer, None) in process_gpu_command()
421 .submit_command(info.hdr.ctx_id.to_native(), &mut cmd_buf[..]) in process_gpu_command()
[all …]
/external/mesa3d/src/intel/tools/
Dintel_dump_gpu.c351 uint32_t ctx_id = execbuffer2->rsvd1; in dump_execbuffer2() local
353 aub_write_exec(&aub_file, ctx_id, in dump_execbuffer2()
616 uint32_t *ctx_id = NULL; in ioctl() local
621 ctx_id = &create->ctx_id; in ioctl()
625 create->ctx_id = aub_write_context_create(&aub_file, ctx_id); in ioctl()
631 uint32_t *ctx_id = NULL; in ioctl() local
636 ctx_id = &create->ctx_id; in ioctl()
640 create->ctx_id = aub_write_context_create(&aub_file, ctx_id); in ioctl()
/external/virglrenderer/tests/fuzzer/
Dvirgl_fuzzer.c168 uint32_t ctx_id = initialize_environment(); in LLVMFuzzerTestOneInput() local
179 assert(!virgl_renderer_context_create(ctx_id, strlen(name), name)); in LLVMFuzzerTestOneInput()
181 virgl_renderer_submit_cmd((void *) data, ctx_id, size / sizeof(uint32_t)); in LLVMFuzzerTestOneInput()
183 virgl_renderer_context_destroy(ctx_id); in LLVMFuzzerTestOneInput()

1234