/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_bufmgr.c | 224 bucket_for_size(struct iris_bufmgr *bufmgr, uint64_t size) in bucket_for_size() argument 254 return (index < bufmgr->num_buckets) ? in bucket_for_size() 255 &bufmgr->cache_bucket[index] : NULL; in bucket_for_size() 292 vma_alloc(struct iris_bufmgr *bufmgr, in vma_alloc() argument 308 util_vma_heap_alloc(&bufmgr->vma_allocator[memzone], size, alignment); in vma_alloc() 317 vma_free(struct iris_bufmgr *bufmgr, in vma_free() argument 336 assert(memzone < ARRAY_SIZE(bufmgr->vma_allocator)); in vma_free() 338 util_vma_heap_free(&bufmgr->vma_allocator[memzone], address, size); in vma_free() 344 struct iris_bufmgr *bufmgr = bo->bufmgr; in iris_bo_busy() local 347 int ret = gen_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_BUSY, &busy); in iris_bo_busy() [all …]
|
D | iris_bufmgr.h | 131 struct iris_bufmgr *bufmgr; member 252 struct iris_bo *iris_bo_alloc(struct iris_bufmgr *bufmgr, 268 struct iris_bo *iris_bo_alloc_tiled(struct iris_bufmgr *bufmgr, 278 iris_bo_create_userptr(struct iris_bufmgr *bufmgr, const char *name, 335 void iris_bufmgr_unref(struct iris_bufmgr *bufmgr); 375 int iris_bufmgr_get_fd(struct iris_bufmgr *bufmgr); 377 struct iris_bo *iris_bo_gem_create_from_name(struct iris_bufmgr *bufmgr, 381 void* iris_bufmgr_get_aux_map_context(struct iris_bufmgr *bufmgr); 385 uint32_t iris_create_hw_context(struct iris_bufmgr *bufmgr); 386 uint32_t iris_clone_hw_context(struct iris_bufmgr *bufmgr, uint32_t ctx_id); [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_bufmgr.c | 197 static uint64_t vma_alloc(struct brw_bufmgr *bufmgr, 209 bo_tile_size(struct brw_bufmgr *bufmgr, uint64_t size, uint32_t tiling) in bo_tile_size() argument 224 bo_tile_pitch(struct brw_bufmgr *bufmgr, uint32_t pitch, uint32_t tiling) in bo_tile_pitch() argument 249 bucket_for_size(struct brw_bufmgr *bufmgr, uint64_t size) in bucket_for_size() argument 279 return (index < bufmgr->num_buckets) ? in bucket_for_size() 280 &bufmgr->cache_bucket[index] : NULL; in bucket_for_size() 295 bucket_vma_alloc(struct brw_bufmgr *bufmgr, in bucket_vma_alloc() argument 319 uint64_t addr = vma_alloc(bufmgr, memzone, node_size, node_size); in bucket_vma_alloc() 391 get_bucket_allocator(struct brw_bufmgr *bufmgr, uint64_t size) in get_bucket_allocator() argument 399 struct bo_cache_bucket *bucket = bucket_for_size(bufmgr, size); in get_bucket_allocator() [all …]
|
D | brw_bufmgr.h | 99 struct brw_bufmgr *bufmgr; member 216 struct brw_bo *brw_bo_alloc(struct brw_bufmgr *bufmgr, const char *name, 230 struct brw_bo *brw_bo_alloc_tiled(struct brw_bufmgr *bufmgr, 253 struct brw_bo *brw_bo_alloc_tiled_2d(struct brw_bufmgr *bufmgr, 313 void brw_bufmgr_unref(struct brw_bufmgr *bufmgr); 357 struct brw_bo *brw_bo_gem_create_from_name(struct brw_bufmgr *bufmgr, 363 uint32_t brw_create_hw_context(struct brw_bufmgr *bufmgr); 365 int brw_hw_context_set_priority(struct brw_bufmgr *bufmgr, 369 void brw_destroy_hw_context(struct brw_bufmgr *bufmgr, uint32_t ctx_id); 371 int brw_bufmgr_get_fd(struct brw_bufmgr *bufmgr); [all …]
|
/external/libdrm/intel/ |
D | intel_bufmgr.c | 49 drm_intel_bo_alloc(drm_intel_bufmgr *bufmgr, const char *name, in drm_intel_bo_alloc() argument 52 return bufmgr->bo_alloc(bufmgr, name, size, alignment); in drm_intel_bo_alloc() 56 drm_intel_bo_alloc_for_render(drm_intel_bufmgr *bufmgr, const char *name, in drm_intel_bo_alloc_for_render() argument 59 return bufmgr->bo_alloc_for_render(bufmgr, name, size, alignment); in drm_intel_bo_alloc_for_render() 63 drm_intel_bo_alloc_userptr(drm_intel_bufmgr *bufmgr, in drm_intel_bo_alloc_userptr() argument 70 if (bufmgr->bo_alloc_userptr) in drm_intel_bo_alloc_userptr() 71 return bufmgr->bo_alloc_userptr(bufmgr, name, addr, tiling_mode, in drm_intel_bo_alloc_userptr() 77 drm_intel_bo_alloc_tiled(drm_intel_bufmgr *bufmgr, const char *name, in drm_intel_bo_alloc_tiled() argument 81 return bufmgr->bo_alloc_tiled(bufmgr, name, x, y, cpp, in drm_intel_bo_alloc_tiled() 88 bo->bufmgr->bo_reference(bo); in drm_intel_bo_reference() [all …]
|
D | intel_bufmgr.h | 84 drm_intel_bufmgr *bufmgr; member 114 drm_intel_bo *drm_intel_bo_alloc(drm_intel_bufmgr *bufmgr, const char *name, 116 drm_intel_bo *drm_intel_bo_alloc_for_render(drm_intel_bufmgr *bufmgr, 120 drm_intel_bo *drm_intel_bo_alloc_userptr(drm_intel_bufmgr *bufmgr, 125 drm_intel_bo *drm_intel_bo_alloc_tiled(drm_intel_bufmgr *bufmgr, 142 void drm_intel_bufmgr_set_debug(drm_intel_bufmgr *bufmgr, int enable_debug); 143 void drm_intel_bufmgr_destroy(drm_intel_bufmgr *bufmgr); 176 drm_intel_bo *drm_intel_bo_gem_create_from_name(drm_intel_bufmgr *bufmgr, 179 void drm_intel_bufmgr_gem_enable_reuse(drm_intel_bufmgr *bufmgr); 180 void drm_intel_bufmgr_gem_enable_fenced_relocs(drm_intel_bufmgr *bufmgr); [all …]
|
D | intel_bufmgr_fake.c | 53 if (bufmgr_fake->bufmgr.debug) \ 111 drm_intel_bufmgr bufmgr; member 245 drm_intel_bufmgr_fake_set_fence_callback(drm_intel_bufmgr *bufmgr, in drm_intel_bufmgr_fake_set_fence_callback() argument 251 drm_intel_bufmgr_fake *bufmgr_fake = (drm_intel_bufmgr_fake *) bufmgr; in drm_intel_bufmgr_fake_set_fence_callback() 423 (drm_intel_bufmgr_fake *) bo->bufmgr; in alloc_block() 494 (drm_intel_bufmgr_fake *) bo->bufmgr; in alloc_backing_store() 522 (drm_intel_bufmgr_fake *) bo->bufmgr; in set_dirty() 657 (drm_intel_bufmgr_fake *) bo->bufmgr; in evict_and_alloc_block() 743 (drm_intel_bufmgr_fake *) bo->bufmgr; in drm_intel_fake_bo_wait_rendering_locked() 756 (drm_intel_bufmgr_fake *) bo->bufmgr; in drm_intel_fake_bo_wait_rendering() [all …]
|
D | intel_bufmgr_gem.c | 76 if (bufmgr_gem->bufmgr.debug) \ 107 drm_intel_bufmgr bufmgr; member 485 drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *) bo->bufmgr; in drm_intel_add_validate_buffer() 523 drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *)bo->bufmgr; in drm_intel_add_validate_buffer2() 612 drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *) bo->bufmgr; in drm_intel_setup_reloc_list() 640 drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *) bo->bufmgr; in drm_intel_gem_bo_busy() 679 ((drm_intel_bufmgr_gem *) bo->bufmgr, in drm_intel_gem_bo_madvise() 704 drm_intel_gem_bo_alloc_internal(drm_intel_bufmgr *bufmgr, in drm_intel_gem_bo_alloc_internal() argument 712 drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *) bufmgr; in drm_intel_gem_bo_alloc_internal() 818 bo_gem->bo.bufmgr = bufmgr; in drm_intel_gem_bo_alloc_internal() [all …]
|
/external/igt-gpu-tools/lib/stubs/drm/ |
D | intel_bufmgr.h | 84 drm_intel_bufmgr *bufmgr; member 114 drm_intel_bo *drm_intel_bo_alloc(drm_intel_bufmgr *bufmgr, const char *name, 116 drm_intel_bo *drm_intel_bo_alloc_for_render(drm_intel_bufmgr *bufmgr, 120 drm_intel_bo *drm_intel_bo_alloc_userptr(drm_intel_bufmgr *bufmgr, 125 drm_intel_bo *drm_intel_bo_alloc_tiled(drm_intel_bufmgr *bufmgr, 142 void drm_intel_bufmgr_set_debug(drm_intel_bufmgr *bufmgr, int enable_debug); 143 void drm_intel_bufmgr_destroy(drm_intel_bufmgr *bufmgr); 176 drm_intel_bo *drm_intel_bo_gem_create_from_name(drm_intel_bufmgr *bufmgr, 179 void drm_intel_bufmgr_gem_enable_reuse(drm_intel_bufmgr *bufmgr); 180 void drm_intel_bufmgr_gem_enable_fenced_relocs(drm_intel_bufmgr *bufmgr); [all …]
|
D | intel_bufmgr.c | 25 drm_intel_bo *drm_intel_bo_alloc(drm_intel_bufmgr *bufmgr, const char *name, in drm_intel_bo_alloc() argument 85 void drm_intel_bufmgr_gem_enable_reuse(drm_intel_bufmgr *bufmgr) in drm_intel_bufmgr_gem_enable_reuse() argument 97 void drm_intel_bufmgr_destroy(drm_intel_bufmgr *bufmgr) in drm_intel_bufmgr_destroy() argument 126 void drm_intel_bufmgr_gem_enable_fenced_relocs(drm_intel_bufmgr *bufmgr) in drm_intel_bufmgr_gem_enable_fenced_relocs() argument 143 drm_intel_bo *drm_intel_bo_gem_create_from_name(drm_intel_bufmgr *bufmgr, in drm_intel_bo_gem_create_from_name() argument 157 drm_intel_bo *drm_intel_bo_gem_create_from_prime(drm_intel_bufmgr *bufmgr, in drm_intel_bo_gem_create_from_prime() argument 164 void drm_intel_bufmgr_gem_set_vma_cache_size(drm_intel_bufmgr *bufmgr, in drm_intel_bufmgr_gem_set_vma_cache_size() argument 176 drm_intel_context *drm_intel_gem_context_create(drm_intel_bufmgr *bufmgr) in drm_intel_gem_context_create() argument 194 drm_intel_bo *drm_intel_bo_alloc_tiled(drm_intel_bufmgr *bufmgr, in drm_intel_bo_alloc_tiled() argument 205 void drm_intel_bufmgr_gem_set_aub_filename(drm_intel_bufmgr *bufmgr, in drm_intel_bufmgr_gem_set_aub_filename() argument [all …]
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_media_vme.c | 48 scratch_buf_init(drm_intel_bufmgr *bufmgr, in scratch_buf_init() argument 54 bo = drm_intel_bo_alloc(bufmgr, "", size, 4096); in scratch_buf_init() 64 static void scratch_buf_init_src(drm_intel_bufmgr *bufmgr, struct igt_buf *buf) in scratch_buf_init_src() argument 66 scratch_buf_init(bufmgr, buf, INPUT_SIZE); in scratch_buf_init_src() 77 static void scratch_buf_init_dst(drm_intel_bufmgr *bufmgr, struct igt_buf *buf) in scratch_buf_init_dst() argument 79 scratch_buf_init(bufmgr, buf, OUTPUT_SIZE); in scratch_buf_init_dst() 134 drm_intel_bufmgr *bufmgr; variable 147 bufmgr = drm_intel_bufmgr_gem_init(drm_fd, 4096); 148 igt_assert(bufmgr); 150 batch = intel_batchbuffer_alloc(bufmgr, devid); [all …]
|
D | gem_ppgtt.c | 47 static drm_intel_bo *create_bo(drm_intel_bufmgr *bufmgr, in create_bo() argument 53 bo = drm_intel_bo_alloc(bufmgr, "surface", SIZE, 4096); in create_bo() 70 drm_intel_bufmgr *bufmgr, in scratch_buf_init() argument 75 buf->bo = create_bo(bufmgr, pixel); in scratch_buf_init() 104 drm_intel_bufmgr *bufmgr; in fork_rcs_copy() local 108 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); in fork_rcs_copy() 109 igt_assert(bufmgr); in fork_rcs_copy() 111 dst[child] = create_bo(bufmgr, ~0); in fork_rcs_copy() 116 ctx = drm_intel_gem_context_create(dst[child]->bufmgr); in fork_rcs_copy() 131 batch = intel_batchbuffer_alloc(dst[child]->bufmgr, in fork_rcs_copy() [all …]
|
D | gem_read_read_speed.c | 115 static drm_intel_bo *create_bo(drm_intel_bufmgr *bufmgr, in create_bo() argument 120 return drm_intel_bo_alloc_tiled(bufmgr, name, in create_bo() 125 static void run(drm_intel_bufmgr *bufmgr, int _width, int _height, in run() argument 136 src = create_bo(bufmgr, "src"); in run() 137 bcs = create_bo(bufmgr, "bcs"); in run() 138 rcs = create_bo(bufmgr, "rcs"); in run() 180 drm_intel_bufmgr *bufmgr = NULL; variable 197 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); 198 igt_assert(bufmgr); 200 batch = intel_batchbuffer_alloc(bufmgr, devid); [all …]
|
D | gem_double_irq_loop.c | 41 static drm_intel_bufmgr *bufmgr; variable 104 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); 105 igt_assert(bufmgr); 106 drm_intel_bufmgr_gem_enable_reuse(bufmgr); 108 batch = intel_batchbuffer_alloc(bufmgr, devid); 111 target_buffer = drm_intel_bo_alloc(bufmgr, "target bo", 4096, 4096); 114 blt_bo = drm_intel_bo_alloc(bufmgr, "target bo", 4*4096*4096, 4096); 121 drm_intel_bufmgr_destroy(bufmgr);
|
D | gem_unref_active_buffers.c | 49 static drm_intel_bufmgr *bufmgr; variable 62 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); 63 igt_assert(bufmgr); 67 batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd)); 73 load_bo = drm_intel_bo_alloc(bufmgr, "target bo", 1024*4096, 4096); 94 drm_intel_bufmgr_destroy(bufmgr);
|
D | gem_non_secure_batch.c | 43 static drm_intel_bufmgr *bufmgr; variable 93 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); 94 igt_assert(bufmgr); 95 drm_intel_bufmgr_gem_enable_reuse(bufmgr); 97 batch = intel_batchbuffer_alloc(bufmgr, devid); 104 drm_intel_bufmgr_destroy(bufmgr);
|
D | gem_bad_blit.c | 56 static drm_intel_bufmgr *bufmgr; variable 102 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); 103 drm_intel_bufmgr_gem_enable_reuse(bufmgr); 104 batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd)); 106 src = drm_intel_bo_alloc(bufmgr, "src", 128 * 128, 4096); 111 drm_intel_bufmgr_destroy(bufmgr);
|
D | gem_write_read_ring_switch.c | 46 static drm_intel_bufmgr *bufmgr; variable 69 target_bo = drm_intel_bo_alloc(bufmgr, "target bo", 4096, 4096); in run_test() 161 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); 162 igt_assert(bufmgr); 166 batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd)); 169 dummy_bo = drm_intel_bo_alloc(bufmgr, "dummy bo", 4096, 4096); 172 load_bo = drm_intel_bo_alloc(bufmgr, "load bo", 1024*4096, 4096); 189 drm_intel_bufmgr_destroy(bufmgr);
|
D | gem_bad_batch.c | 41 static drm_intel_bufmgr *bufmgr; variable 61 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); 62 drm_intel_bufmgr_gem_enable_reuse(bufmgr); 63 batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd)); 68 drm_intel_bufmgr_destroy(bufmgr);
|
D | gem_bad_address.c | 41 static drm_intel_bufmgr *bufmgr; variable 65 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); 66 drm_intel_bufmgr_gem_enable_reuse(bufmgr); 67 batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd)); 72 drm_intel_bufmgr_destroy(bufmgr);
|
/external/igt-gpu-tools/benchmarks/ |
D | intel_upload_blit_large.c | 75 do_render(drm_intel_bufmgr *bufmgr, struct intel_batchbuffer *batch, in do_render() argument 91 src_bo = drm_intel_bo_alloc(bufmgr, "src", sizeof(data), 4096); in do_render() 118 drm_intel_bufmgr *bufmgr; in main() local 124 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); in main() 125 drm_intel_bufmgr_gem_enable_reuse(bufmgr); in main() 127 batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd)); in main() 129 dst_bo = drm_intel_bo_alloc(bufmgr, "dst", object_size, 4096); in main() 133 do_render(bufmgr, batch, dst_bo, OBJECT_WIDTH, OBJECT_HEIGHT); in main() 140 do_render(bufmgr, batch, dst_bo, OBJECT_WIDTH, OBJECT_HEIGHT); in main() 151 drm_intel_bufmgr_destroy(bufmgr); in main()
|
D | intel_upload_blit_large_gtt.c | 72 do_render(drm_intel_bufmgr *bufmgr, struct intel_batchbuffer *batch, in do_render() argument 80 src_bo = drm_intel_bo_alloc(bufmgr, "src", width * height * 4, 4096); in do_render() 115 drm_intel_bufmgr *bufmgr; in main() local 121 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); in main() 122 drm_intel_bufmgr_gem_enable_reuse(bufmgr); in main() 124 batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd)); in main() 126 dst_bo = drm_intel_bo_alloc(bufmgr, "dst", object_size, 4096); in main() 130 do_render(bufmgr, batch, dst_bo, OBJECT_WIDTH, OBJECT_HEIGHT); in main() 137 do_render(bufmgr, batch, dst_bo, OBJECT_WIDTH, OBJECT_HEIGHT); in main() 148 drm_intel_bufmgr_destroy(bufmgr); in main()
|
D | intel_upload_blit_large_map.c | 75 do_render(drm_intel_bufmgr *bufmgr, struct intel_batchbuffer *batch, in do_render() argument 83 src_bo = drm_intel_bo_alloc(bufmgr, "src", width * height * 4, 4096); in do_render() 118 drm_intel_bufmgr *bufmgr; in main() local 124 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); in main() 125 drm_intel_bufmgr_gem_enable_reuse(bufmgr); in main() 127 batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd)); in main() 129 dst_bo = drm_intel_bo_alloc(bufmgr, "dst", object_size, 4096); in main() 133 do_render(bufmgr, batch, dst_bo, OBJECT_WIDTH, OBJECT_HEIGHT); in main() 140 do_render(bufmgr, batch, dst_bo, OBJECT_WIDTH, OBJECT_HEIGHT); in main() 151 drm_intel_bufmgr_destroy(bufmgr); in main()
|
D | intel_upload_blit_small.c | 69 do_render(drm_intel_bufmgr *bufmgr, struct intel_batchbuffer *batch, in do_render() argument 77 src_bo = drm_intel_bo_alloc(bufmgr, "src", width * height * 4, 4096); in do_render() 128 drm_intel_bufmgr *bufmgr; in main() local 134 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); in main() 135 drm_intel_bufmgr_gem_enable_reuse(bufmgr); in main() 137 batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd)); in main() 139 dst_bo = drm_intel_bo_alloc(bufmgr, "dst", object_size, 4096); in main() 143 do_render(bufmgr, batch, dst_bo, OBJECT_WIDTH, OBJECT_HEIGHT); in main() 150 do_render(bufmgr, batch, dst_bo, OBJECT_WIDTH, OBJECT_HEIGHT); in main() 161 drm_intel_bufmgr_destroy(bufmgr); in main()
|
/external/igt-gpu-tools/tests/ |
D | drm_import_export.c | 45 drm_intel_bufmgr *bufmgr; variable 57 bo1 = drm_intel_bo_alloc(bufmgr, "buf1",16384, 4096); in new_buffers() 60 bo2 = drm_intel_bo_alloc(bufmgr, "buf2", 16384, 4096); in new_buffers() 88 bo = drm_intel_bo_gem_create_from_name(bufmgr, in test_surfaces() 95 bo = drm_intel_bo_gem_create_from_prime(bufmgr, in test_surfaces() 153 bo = drm_intel_bo_gem_create_from_name(bufmgr, "buf-shared", t->flink_name); in import_close_thread() 157 bo = drm_intel_bo_gem_create_from_prime(bufmgr, t->prime_fd, 4096); in import_close_thread() 200 bo = drm_intel_bo_alloc(bufmgr, "buf-shared", 4096, 4096); in test_import_close_race() 247 bufmgr = drm_intel_bufmgr_gem_init(fd, 8 *1024); 248 igt_assert(bufmgr); [all …]
|