Home
last modified time | relevance | path

Searched refs:gem_handle (Results 1 – 20 of 20) sorted by relevance

/external/mesa3d/src/intel/vulkan/
Danv_gem_stubs.c54 anv_gem_close(struct anv_device *device, uint32_t gem_handle) in anv_gem_close() argument
56 close(gem_handle); in anv_gem_close()
60 anv_gem_mmap(struct anv_device *device, uint32_t gem_handle, in anv_gem_mmap() argument
67 gem_handle, offset); in anv_gem_mmap()
86 anv_gem_busy(struct anv_device *device, uint32_t gem_handle) in anv_gem_busy() argument
92 anv_gem_wait(struct anv_device *device, uint32_t gem_handle, int64_t *timeout_ns) in anv_gem_wait() argument
106 uint32_t gem_handle, uint32_t stride, uint32_t tiling) in anv_gem_set_tiling() argument
112 anv_gem_set_caching(struct anv_device *device, uint32_t gem_handle, in anv_gem_set_caching() argument
119 anv_gem_set_domain(struct anv_device *device, uint32_t gem_handle, in anv_gem_set_domain() argument
175 anv_gem_handle_to_fd(struct anv_device *device, uint32_t gem_handle) in anv_gem_handle_to_fd() argument
Danv_gem.c68 anv_gem_close(struct anv_device *device, uint32_t gem_handle) in anv_gem_close() argument
71 .handle = gem_handle, in anv_gem_close()
81 anv_gem_mmap(struct anv_device *device, uint32_t gem_handle, in anv_gem_mmap() argument
85 .handle = gem_handle, in anv_gem_mmap()
127 uint32_t gem_handle, uint32_t caching) in anv_gem_set_caching() argument
130 .handle = gem_handle, in anv_gem_set_caching()
138 anv_gem_set_domain(struct anv_device *device, uint32_t gem_handle, in anv_gem_set_domain() argument
142 .handle = gem_handle, in anv_gem_set_domain()
154 anv_gem_busy(struct anv_device *device, uint32_t gem_handle) in anv_gem_busy() argument
157 .handle = gem_handle, in anv_gem_busy()
[all …]
Danv_allocator.c107 uint32_t gem_handle; member
302 if (cleanup->gem_handle) in anv_block_pool_finish()
303 anv_gem_close(pool->device, cleanup->gem_handle); in anv_block_pool_finish()
318 uint32_t gem_handle; in anv_block_pool_expand_range() local
349 gem_handle = anv_gem_userptr(pool->device, map, size); in anv_block_pool_expand_range()
350 if (gem_handle == 0) { in anv_block_pool_expand_range()
358 cleanup->gem_handle = gem_handle; in anv_block_pool_expand_range()
368 anv_gem_set_caching(pool->device, gem_handle, I915_CACHING_NONE); in anv_block_pool_expand_range()
369 anv_gem_set_domain(pool->device, gem_handle, in anv_block_pool_expand_range()
404 anv_bo_init(&pool->bo, gem_handle, size); in anv_block_pool_expand_range()
[all …]
Danv_private.h485 uint32_t gem_handle; member
507 anv_bo_init(struct anv_bo *bo, uint32_t gem_handle, uint64_t size) in anv_bo_init() argument
509 bo->gem_handle = gem_handle; in anv_bo_init()
912 uint32_t gem_handle, uint64_t offset, uint64_t size, uint32_t flags);
915 void anv_gem_close(struct anv_device *device, uint32_t gem_handle);
917 int anv_gem_busy(struct anv_device *device, uint32_t gem_handle);
918 int anv_gem_wait(struct anv_device *device, uint32_t gem_handle, int64_t *timeout_ns);
921 int anv_gem_set_tiling(struct anv_device *device, uint32_t gem_handle,
928 int anv_gem_get_tiling(struct anv_device *device, uint32_t gem_handle);
934 int anv_gem_handle_to_fd(struct anv_device *device, uint32_t gem_handle);
[all …]
Danv_device.c1240 void *map = anv_gem_mmap(device, device->trivial_batch_bo.gem_handle, in anv_device_init_trivial_batch()
1505 anv_gem_close(device, device->workaround_bo.gem_handle); in anv_CreateDevice()
1552 anv_gem_close(device, device->workaround_bo.gem_handle); in anv_DestroyDevice()
1554 anv_gem_close(device, device->trivial_batch_bo.gem_handle); in anv_DestroyDevice()
1653 int ret = anv_gem_busy(device, bo->gem_handle); in anv_device_bo_busy()
1676 int ret = anv_gem_wait(device, bo->gem_handle, &timeout); in anv_device_wait()
1716 uint32_t gem_handle = anv_gem_create(device, size); in anv_bo_init_new() local
1717 if (!gem_handle) in anv_bo_init_new()
1720 anv_bo_init(bo, gem_handle, size); in anv_bo_init_new()
1852 int ret = anv_gem_set_tiling(device, mem->bo->gem_handle, in anv_AllocateMemory()
[all …]
DgenX_query.c106 anv_gem_set_caching(device, pool->bo.gem_handle, I915_CACHING_CACHED); in genX()
108 pool->bo.map = anv_gem_mmap(device, pool->bo.gem_handle, 0, size, 0); in genX()
132 anv_gem_close(device, pool->bo.gem_handle); in genX()
163 int ret = anv_gem_busy(device, pool->bo.gem_handle); in wait_for_available()
Danv_android.c137 int i915_tiling = anv_gem_get_tiling(device, bo->gem_handle); in anv_image_from_gralloc()
Danv_batch_chain.c159 entry->target_handle = target_bo->gem_handle; in anv_reloc_list_add()
1037 obj->handle = bo->gem_handle; in anv_execbuf_add_bo()
Danv_queue.c79 exec2_objects[0].handle = bo.gem_handle; in anv_device_submit_simple_batch()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_bufmgr.c227 struct drm_i915_gem_busy busy = { .handle = bo->gem_handle }; in brw_bo_busy()
241 .handle = bo->gem_handle, in brw_bo_madvise()
381 bo->gem_handle = create.handle; in bo_alloc_internal()
398 .handle = bo->gem_handle, in bo_alloc_internal()
415 DBG("bo_create: buf %d (%s) %llub\n", bo->gem_handle, bo->name, in bo_alloc_internal()
535 bo->gem_handle = open_arg.handle; in brw_bo_gem_create_from_name()
541 _mesa_hash_table_insert(bufmgr->handle_table, &bo->gem_handle, bo); in brw_bo_gem_create_from_name()
544 struct drm_i915_gem_get_tiling get_tiling = { .handle = bo->gem_handle }; in brw_bo_gem_create_from_name()
590 entry = _mesa_hash_table_search(bufmgr->handle_table, &bo->gem_handle); in bo_free()
595 struct drm_gem_close close = { .handle = bo->gem_handle }; in bo_free()
[all …]
Dintel_batchbuffer.c150 .handle = bo->gem_handle, in add_exec_bo()
371 batch->validation_list[bo->index].handle = new_bo->gem_handle; in grow_buffer()
380 bo->gem_handle, new_bo->gem_handle); in grow_buffer()
382 bo->gem_handle, new_bo->gem_handle); in grow_buffer()
875 bo->gem_handle, bo->gtt_offset, in execbuffer()
937 assert(entry->handle == batch->state.bo->gem_handle); in submit_batch()
944 assert(entry->handle == batch->batch.bo->gem_handle); in submit_batch()
1088 .target_handle = batch->use_batch_first ? index : target->gem_handle, in emit_reloc()
Dbrw_bufmgr.h70 uint32_t gem_handle; member
Dintel_screen.c1915 .target_handle = results->gem_handle, in intel_detect_pipelined_register()
1932 .handle = results->gem_handle, in intel_detect_pipelined_register()
1935 .handle = bo->gem_handle, in intel_detect_pipelined_register()
/external/libdrm/intel/
Dintel_bufmgr_gem.c169 uint32_t gem_handle; member
422 DBG("%2d: %d %s(%s)\n", i, bo_gem->gem_handle, in drm_intel_gem_dump_validation_list()
436 bo_gem->gem_handle, in drm_intel_gem_dump_validation_list()
441 target_gem->gem_handle, in drm_intel_gem_dump_validation_list()
455 bo_gem->gem_handle, in drm_intel_gem_dump_validation_list()
458 target_gem->gem_handle, in drm_intel_gem_dump_validation_list()
511 bufmgr_gem->exec_objects[index].handle = bo_gem->gem_handle; in drm_intel_add_validate_buffer()
556 bufmgr_gem->exec2_objects[index].handle = bo_gem->gem_handle; in drm_intel_add_validate_buffer2()
649 busy.handle = bo_gem->gem_handle; in drm_intel_gem_bo_busy()
667 madv.handle = bo_gem->gem_handle; in drm_intel_gem_bo_madvise_internal()
[all …]
/external/drm_hwcomposer/
Dplatformhisi.cpp138 uint32_t gem_handle; in ImportBuffer() local
139 int ret = drmPrimeFDToHandle(drm_->fd(), hnd->share_fd, &gem_handle); in ImportBuffer()
160 bo->gem_handles[0] = gem_handle; in ImportBuffer()
175 bo->gem_handles[1] = gem_handle; in ImportBuffer()
179 bo->gem_handles[2] = gem_handle; in ImportBuffer()
Dplatformminigbm.cpp75 uint32_t gem_handle; in ImportBuffer() local
76 int ret = drmPrimeFDToHandle(drm_->fd(), gr_handle->fds[0], &gem_handle); in ImportBuffer()
91 bo->gem_handles[0] = gem_handle; in ImportBuffer()
Dplatformdrmgeneric.cpp109 uint32_t gem_handle; in ImportBuffer() local
110 int ret = drmPrimeFDToHandle(drm_->fd(), gr_handle->prime_fd, &gem_handle); in ImportBuffer()
125 bo->gem_handles[0] = gem_handle; in ImportBuffer()
/external/libxcam/xcore/
Ddrm_v4l2_buffer.h38 uint32_t gem_handle, in DrmV4l2Buffer() argument
44 , _gem_handle (gem_handle) in DrmV4l2Buffer()
/external/mesa3d/src/gallium/drivers/vc5/
Dvc5_simulator.c221 vc5_get_simulator_bo(struct vc5_simulator_file *file, int gem_handle) in vc5_get_simulator_bo() argument
225 _mesa_hash_table_search(file->bo_map, int_to_key(gem_handle)); in vc5_get_simulator_bo()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_simulator.c193 vc4_get_simulator_bo(struct vc4_simulator_file *file, int gem_handle) in vc4_get_simulator_bo() argument
197 _mesa_hash_table_search(file->bo_map, int_to_key(gem_handle)); in vc4_get_simulator_bo()