Home
last modified time | relevance | path

Searched refs:bufmgr (Results 1 – 25 of 32) sorted by relevance

12

/external/libdrm/intel/
Dintel_bufmgr.c49 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 …]
Dintel_bufmgr.h84 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 …]
Dintel_bufmgr_fake.c53 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 …]
Dintel_bufmgr_gem.c76 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 …]
Dintel_bufmgr_priv.h50 drm_intel_bo *(*bo_alloc) (drm_intel_bufmgr *bufmgr, const char *name,
59 drm_intel_bo *(*bo_alloc_for_render) (drm_intel_bufmgr *bufmgr,
70 drm_intel_bo *(*bo_alloc_userptr)(drm_intel_bufmgr *bufmgr,
91 drm_intel_bo *(*bo_alloc_tiled) (drm_intel_bufmgr *bufmgr,
152 void (*destroy) (drm_intel_bufmgr *bufmgr);
307 int (*get_pipe_from_crtc_id) (drm_intel_bufmgr *bufmgr, int crtc_id);
318 struct _drm_intel_bufmgr *bufmgr; member
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_bufmgr.c149 bo_tile_size(struct brw_bufmgr *bufmgr, uint64_t size, uint32_t tiling) in bo_tile_size() argument
164 bo_tile_pitch(struct brw_bufmgr *bufmgr, uint32_t pitch, uint32_t tiling) in bo_tile_pitch() argument
189 bucket_for_size(struct brw_bufmgr *bufmgr, uint64_t size) in bucket_for_size() argument
219 return (index < bufmgr->num_buckets) ? in bucket_for_size()
220 &bufmgr->cache_bucket[index] : NULL; in bucket_for_size()
226 struct brw_bufmgr *bufmgr = bo->bufmgr; in brw_bo_busy() local
229 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_BUSY, &busy); in brw_bo_busy()
246 drmIoctl(bo->bufmgr->fd, DRM_IOCTL_I915_GEM_MADVISE, &madv); in brw_bo_madvise()
253 brw_bo_cache_purge_bucket(struct brw_bufmgr *bufmgr, in brw_bo_cache_purge_bucket() argument
266 bo_alloc_internal(struct brw_bufmgr *bufmgr, in bo_alloc_internal() argument
[all …]
Dbrw_bufmgr.h67 struct brw_bufmgr *bufmgr; member
180 struct brw_bo *brw_bo_alloc(struct brw_bufmgr *bufmgr, const char *name,
194 struct brw_bo *brw_bo_alloc_tiled(struct brw_bufmgr *bufmgr,
216 struct brw_bo *brw_bo_alloc_tiled_2d(struct brw_bufmgr *bufmgr,
275 void brw_bufmgr_destroy(struct brw_bufmgr *bufmgr);
317 struct brw_bo *brw_bo_gem_create_from_name(struct brw_bufmgr *bufmgr,
320 void brw_bufmgr_enable_reuse(struct brw_bufmgr *bufmgr);
324 uint32_t brw_create_hw_context(struct brw_bufmgr *bufmgr);
330 int brw_hw_context_set_priority(struct brw_bufmgr *bufmgr,
334 void brw_destroy_hw_context(struct brw_bufmgr *bufmgr, uint32_t ctx_id);
[all …]
Dbrw_queryobj.c290 query->bo = brw_bo_alloc(brw->bufmgr, "timer query", 4096, 4096); in brw_begin_query()
452 query->bo = brw_bo_alloc(brw->bufmgr, "query", 4096, 1); in ensure_bo_has_space()
532 query->bo = brw_bo_alloc(brw->bufmgr, "timestamp query", 4096, 4096); in brw_query_counter()
551 brw_reg_read(brw->bufmgr, TIMESTAMP | 1, &result); in brw_get_timestamp()
554 brw_reg_read(brw->bufmgr, TIMESTAMP, &result); in brw_get_timestamp()
558 brw_reg_read(brw->bufmgr, TIMESTAMP, &result); in brw_get_timestamp()
Dintel_screen.c479 image->bo = brw_bo_gem_create_from_name(screen->bufmgr, "image", in intel_create_image_from_name()
742 image->bo = brw_bo_alloc_tiled(screen->bufmgr, "image", in intel_create_image_common()
1047 image->bo = brw_bo_gem_create_from_prime_tiled(screen->bufmgr, fds[0], in intel_create_image_from_fds_common()
1050 image->bo = brw_bo_gem_create_from_prime(screen->bufmgr, fds[0]); in intel_create_image_from_fds_common()
1062 struct brw_bo *aux = brw_bo_gem_create_from_prime(screen->bufmgr, fds[i]); in intel_create_image_from_fds_common()
1469 if (brw_hw_context_set_priority(screen->bufmgr, in brw_query_renderer_integer()
1472 if (brw_hw_context_set_priority(screen->bufmgr, in brw_query_renderer_integer()
1476 if (brw_hw_context_set_priority(screen->bufmgr, in brw_query_renderer_integer()
1587 brw_bufmgr_destroy(screen->bufmgr); in intelDestroyScreen()
1787 screen->bufmgr = brw_bufmgr_init(&screen->devinfo, dri_screen->fd); in intel_init_bufmgr()
[all …]
Dintel_buffer_objects.c99 intel_obj->buffer = brw_bo_alloc(brw->bufmgr, "bufferobj", size, 64); in alloc_buffer_object()
293 brw_bo_alloc(brw->bufmgr, "subdata temp", size, 64); in brw_buffer_subdata()
464 brw_bo_alloc(brw->bufmgr, "BO blit temp", in brw_map_buffer_range()
Dintel_screen.h85 struct brw_bufmgr *bufmgr; member
Dbrw_context.c775 brw_bufmgr_enable_reuse(brw->bufmgr); in brw_process_driconf_options()
892 brw->bufmgr = screen->bufmgr; in brwCreateContext()
982 brw->hw_ctx = brw_create_hw_context(brw->bufmgr); in brwCreateContext()
1002 brw_hw_context_set_priority(brw->bufmgr, brw->hw_ctx, hw_priority)) { in brwCreateContext()
1112 brw_destroy_hw_context(brw->bufmgr, brw->hw_ctx); in intelDestroyContext()
1575 bo = brw_bo_gem_create_from_name(brw->bufmgr, buffer_name, in intel_process_dri2_buffer()
Dintel_upload.c101 brw->upload.bo = brw_bo_alloc(brw->bufmgr, "streamed data", in intel_upload_space()
Dintel_batchbuffer.c170 struct brw_bufmgr *bufmgr = screen->bufmgr; in recreate_growing_buffer() local
172 grow->bo = brw_bo_alloc(bufmgr, name, size, 4096); in recreate_growing_buffer()
319 struct brw_bufmgr *bufmgr = brw->bufmgr; in grow_buffer() local
333 struct brw_bo *new_bo = brw_bo_alloc(bufmgr, bo->name, new_size, bo->align); in grow_buffer()
Dgen6_sol.c198 brw_bo_alloc(brw->bufmgr, "transform feedback offsets", 16, 64); in brw_new_transform_feedback()
200 brw_bo_alloc(brw->bufmgr, "xfb primitive counts", 16384, 64); in brw_new_transform_feedback()
Dbrw_program.c347 *scratch_bo = brw_bo_alloc(brw->bufmgr, "scratch bo", size, 4096); in brw_get_scratch_bo()
441 brw_bo_alloc(brw->bufmgr, "shader scratch space", in brw_alloc_stage_scratch()
470 brw_bo_alloc(brw->bufmgr, "shader time", in brw_init_shader_time()
Dbrw_program_cache.c224 new_bo = brw_bo_alloc(brw->bufmgr, "program cache", new_size, 64); in brw_cache_new_bo()
391 cache->bo = brw_bo_alloc(brw->bufmgr, "program cache", 16384, 64); in brw_init_caches()
Dbrw_pipe_control.c575 brw->workaround_bo = brw_bo_alloc(brw->bufmgr, in brw_init_pipe_control()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_regions.c145 buffer = drm_intel_bo_alloc_tiled(screen->bufmgr, "region", in intel_region_alloc()
185 buffer = drm_intel_bo_gem_create_from_name(screen->bufmgr, name, handle); in intel_region_alloc_for_handle()
220 buffer = drm_intel_bo_gem_create_from_prime(screen->bufmgr, fd, size); in intel_region_alloc_for_fd()
Dintel_context.c470 intel->bufmgr = intelScreen->bufmgr; in intelInitContext()
477 intel_bufmgr_gem_enable_reuse(intel->bufmgr); in intelInitContext()
523 dri_bufmgr_set_debug(intel->bufmgr, true); in intelInitContext()
528 drm_intel_bufmgr_gem_set_aub_dump(intel->bufmgr, true); in intelInitContext()
Dintel_buffer_objects.c51 intel_obj->buffer = drm_intel_bo_alloc(intel->bufmgr, "bufferobj", in intel_bufferobj_alloc_buffer()
216 drm_intel_bo_alloc(intel->bufmgr, "subdata temp", size, 64); in intel_bufferobj_subdata()
357 intel_obj->range_map_bo[index] = drm_intel_bo_alloc(intel->bufmgr, in intel_bufferobj_map_range()
409 temp_bo = drm_intel_bo_alloc(intel->bufmgr, "range map flush", length, 64); in intel_bufferobj_flush_mapped_range()
528 intel->upload.bo = drm_intel_bo_alloc(intel->bufmgr, "upload", size, 0); in wrap_buffers()
Dintel_screen.c839 dri_bufmgr_destroy(intelScreen->bufmgr); in intelDestroyScreen()
1011 intelScreen->bufmgr = intel_bufmgr_gem_init(spriv->fd, BATCH_SZ); in intel_init_bufmgr()
1012 if (intelScreen->bufmgr == NULL) { in intel_init_bufmgr()
1018 drm_intel_bufmgr_gem_enable_fenced_relocs(intelScreen->bufmgr); in intel_init_bufmgr()
1037 buffer = drm_intel_bo_alloc_tiled(screen->bufmgr, "swizzle test", in intel_detect_swizzling()
1200 intelScreen->deviceID = drm_intel_bufmgr_gem_get_devid(intelScreen->bufmgr); in intelInitScreen2()
Dintel_screen.h50 dri_bufmgr *bufmgr; member
Dintel_batchbuffer.c56 intel->batch.bo = drm_intel_bo_alloc(intel->bufmgr, "batchbuffer", in intel_batchbuffer_reset()
/external/autotest/client/site_tests/graphics_GpuReset/src/
Dgpureset.c288 drm_intel_bufmgr* bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); in main() local
291 bo = drm_intel_bo_alloc(bufmgr, "bogus cmdbuffer", 4096, 4096); in main()

12