Home
last modified time | relevance | path

Searched refs:use_flags (Results 1 – 25 of 30) sorted by relevance

12

/external/minigbm/
Dgbm_helpers.c15 uint64_t use_flags = BO_USE_NONE; in gbm_convert_usage() local
18 use_flags |= BO_USE_SCANOUT; in gbm_convert_usage()
20 use_flags |= BO_USE_CURSOR; in gbm_convert_usage()
22 use_flags |= BO_USE_CURSOR_64X64; in gbm_convert_usage()
24 use_flags |= BO_USE_RENDERING; in gbm_convert_usage()
26 use_flags |= BO_USE_TEXTURE; in gbm_convert_usage()
28 use_flags |= BO_USE_LINEAR; in gbm_convert_usage()
30 use_flags |= BO_USE_CAMERA_WRITE; in gbm_convert_usage()
32 use_flags |= BO_USE_CAMERA_READ; in gbm_convert_usage()
34 use_flags |= BO_USE_PROTECTED; in gbm_convert_usage()
[all …]
Dvirtgpu_virgl.c301 uint64_t use_flags) in virgl_supports_combination_natively() argument
308 if ((use_flags & BO_USE_RENDERING) && in virgl_supports_combination_natively()
312 if ((use_flags & BO_USE_TEXTURE) && in virgl_supports_combination_natively()
316 if ((use_flags & BO_USE_SCANOUT) && priv->caps_is_v2 && in virgl_supports_combination_natively()
327 uint64_t use_flags) in virgl_supports_combination_through_emulation() argument
335 if (use_flags & (BO_USE_RENDERING | BO_USE_SCANOUT)) in virgl_supports_combination_through_emulation()
338 if (!virgl_supports_combination_natively(drv, DRM_FORMAT_R8, use_flags)) in virgl_supports_combination_through_emulation()
348 struct format_metadata *metadata, uint64_t use_flags) in virgl_add_combination() argument
351 if ((use_flags & BO_USE_SCANOUT) && in virgl_add_combination()
354 use_flags &= ~BO_USE_SCANOUT; in virgl_add_combination()
[all …]
Dmediatek.c172 (bo->meta.use_flags & BO_USE_SCANOUT) && (bo->meta.use_flags & BO_USE_CAMERA_WRITE); in mediatek_bo_create_with_modifiers()
194 if ((bo->meta.use_flags & BO_USE_HW_VIDEO_ENCODER) || is_camera_preview) { in mediatek_bo_create_with_modifiers()
225 (bo->meta.use_flags & BO_USE_TEXTURE) && height_mod) { in mediatek_bo_create_with_modifiers()
262 uint64_t use_flags) in mediatek_bo_create() argument
301 if (bo->meta.use_flags & BO_USE_RENDERSCRIPT) { in mediatek_bo_map()
378 uint64_t use_flags, uint32_t *out_format, in mediatek_resolve_format_and_use_flags() argument
382 *out_use_flags = use_flags; in mediatek_resolve_format_and_use_flags()
389 if (use_flags & BO_USE_CAMERA_READ) { in mediatek_resolve_format_and_use_flags()
394 if (use_flags & BO_USE_CAMERA_WRITE) { in mediatek_resolve_format_and_use_flags()
406 if (use_flags & (BO_USE_HW_VIDEO_DECODER)) { in mediatek_resolve_format_and_use_flags()
[all …]
Damdgpu.c366 uint64_t use_flags = BO_USE_RENDER_MASK; in amdgpu_init() local
403 &metadata, use_flags); in amdgpu_init()
449 use_flags &= ~BO_USE_RENDERSCRIPT; in amdgpu_init()
450 use_flags &= ~BO_USE_SW_WRITE_OFTEN; in amdgpu_init()
451 use_flags &= ~BO_USE_SW_READ_OFTEN; in amdgpu_init()
453 use_flags &= ~BO_USE_SW_WRITE_RARELY; in amdgpu_init()
454 use_flags &= ~BO_USE_SW_READ_RARELY; in amdgpu_init()
456 use_flags &= ~BO_USE_LINEAR; in amdgpu_init()
482 use_flags | (scanout ? BO_USE_SCANOUT : 0)); in amdgpu_init()
503 use_flags | (scanout ? BO_USE_SCANOUT : 0)); in amdgpu_init()
[all …]
Ddrv_helpers.c329 uint64_t use_flags, uint64_t quirks) in drv_dumb_bo_create_ex() argument
398 uint64_t use_flags) in drv_dumb_bo_create() argument
400 return drv_dumb_bo_create_ex(bo, width, height, format, use_flags, BO_QUIRK_NONE); in drv_dumb_bo_create()
512 struct format_metadata *metadata, uint64_t use_flags) in drv_add_combination() argument
516 .use_flags = use_flags }; in drv_add_combination()
522 struct format_metadata *metadata, uint64_t use_flags) in drv_add_combinations() argument
529 .use_flags = use_flags }; in drv_add_combinations()
536 uint64_t use_flags) in drv_modify_combination() argument
545 combo->use_flags |= use_flags; in drv_modify_combination()
596 uint64_t use_flags, uint32_t *out_format, in drv_resolve_format_and_use_flags_helper() argument
[all …]
Ddrv.c193 struct combination *drv_get_combination(struct driver *drv, uint32_t format, uint64_t use_flags) in drv_get_combination() argument
197 if (format == DRM_FORMAT_NONE || use_flags == BO_USE_NONE) in drv_get_combination()
204 if ((format == curr->format) && use_flags == (curr->use_flags & use_flags)) in drv_get_combination()
213 uint64_t use_flags, bool is_test_buffer) in drv_bo_new() argument
226 bo->meta.use_flags = use_flags; in drv_bo_new()
334 uint64_t use_flags) in drv_bo_create() argument
340 is_test_alloc = use_flags & BO_USE_TEST_ALLOC; in drv_bo_create()
341 use_flags &= ~BO_USE_TEST_ALLOC; in drv_bo_create()
343 bo = drv_bo_new(drv, width, height, format, use_flags, is_test_alloc); in drv_bo_create()
350 ret = drv->backend->bo_compute_metadata(bo, width, height, format, use_flags, NULL, in drv_bo_create()
[all …]
Ddrv_priv.h28 uint64_t use_flags; member
60 uint64_t use_flags; member
81 uint64_t use_flags);
87 uint64_t use_flags, const uint64_t *modifiers, uint32_t count);
99 uint64_t use_flags, uint32_t *out_format,
Ddrv.h108 uint64_t use_flags; member
144 struct combination *drv_get_combination(struct driver *drv, uint32_t format, uint64_t use_flags);
147 uint64_t use_flags, bool is_test_buffer);
150 uint64_t use_flags);
202 void drv_resolve_format_and_use_flags(struct driver *drv, uint32_t format, uint64_t use_flags,
205 uint64_t drv_resolve_use_flags(struct driver *drv, uint32_t format, uint64_t use_flags);
Ddrv_helpers.h30 uint64_t use_flags);
32 uint64_t use_flags, uint64_t quirks);
50 uint64_t use_flags, uint32_t *out_format,
Dvirtgpu_cross_domain.c143 (current->format == cached->format) && (current->use_flags == cached->use_flags)) in metadata_equal()
175 cmd_get_reqs.flags = metadata->use_flags; in cross_domain_metadata_query()
362 uint64_t use_flags) in cross_domain_bo_create() argument
368 if (use_flags & (BO_USE_SW_MASK | BO_USE_GPU_DATA_BUFFER)) in cross_domain_bo_create()
371 if (!(use_flags & BO_USE_HW_MASK)) { in cross_domain_bo_create()
Dvc4.c84 uint64_t use_flags) in vc4_bo_create() argument
88 combo = drv_get_combination(bo->drv, format, use_flags); in vc4_bo_create()
Dgbm.c34 uint64_t use_flags; in gbm_device_is_format_supported() local
39 use_flags = gbm_convert_usage(usage); in gbm_device_is_format_supported()
41 return (drv_get_combination(gbm->drv, format, use_flags) != NULL); in gbm_device_is_format_supported()
203 drv_data.use_flags = gbm_convert_usage(usage); in gbm_bo_import()
Ddri.c292 uint64_t use_flags) in dri_bo_create() argument
302 if (use_flags & BO_USE_SCANOUT) in dri_bo_create()
304 if (use_flags & BO_USE_CURSOR) in dri_bo_create()
306 if (use_flags & BO_USE_LINEAR) in dri_bo_create()
Dmsm.c183 uint64_t use_flags) in msm_add_ubwc_combinations() argument
189 .use_flags = use_flags }; in msm_add_ubwc_combinations()
Ddri.h35 uint64_t use_flags);
Di915.c547 uint64_t use_flags, const uint64_t *modifiers, uint32_t count) in i915_bo_compute_metadata() argument
557 struct combination *combo = drv_get_combination(bo->drv, format, use_flags); in i915_bo_compute_metadata()
724 if (i915->has_hw_protection && (bo->meta.use_flags & BO_USE_PROTECTED)) { in i915_bo_create_from_metadata()
848 if ((bo->meta.use_flags & BO_USE_SCANOUT) && in i915_bo_map()
849 !(bo->meta.use_flags & in i915_bo_map()
Drockchip.c188 uint64_t use_flags) in rockchip_bo_create() argument
222 if (bo->meta.use_flags & BO_USE_RENDERSCRIPT) { in rockchip_bo_map()
/external/minigbm/cros_gralloc/
Dcros_gralloc_helpers.cc97 uint64_t use_flags = BO_USE_NONE; in cros_gralloc_convert_usage() local
103 handle_usage(&usage, GRALLOC_USAGE_SW_READ_OFTEN, &use_flags, BO_USE_SW_READ_OFTEN); in cros_gralloc_convert_usage()
104 handle_usage(&usage, GRALLOC_USAGE_SW_READ_RARELY, &use_flags, BO_USE_SW_READ_RARELY); in cros_gralloc_convert_usage()
105 handle_usage(&usage, GRALLOC_USAGE_SW_WRITE_OFTEN, &use_flags, BO_USE_SW_WRITE_OFTEN); in cros_gralloc_convert_usage()
106 handle_usage(&usage, GRALLOC_USAGE_SW_WRITE_RARELY, &use_flags, BO_USE_SW_WRITE_RARELY); in cros_gralloc_convert_usage()
107 handle_usage(&usage, GRALLOC_USAGE_HW_TEXTURE, &use_flags, BO_USE_TEXTURE); in cros_gralloc_convert_usage()
108 handle_usage(&usage, GRALLOC_USAGE_HW_RENDER, &use_flags, BO_USE_RENDERING); in cros_gralloc_convert_usage()
109 handle_usage(&usage, GRALLOC_USAGE_HW_2D, &use_flags, BO_USE_RENDERING); in cros_gralloc_convert_usage()
111 handle_usage(&usage, GRALLOC_USAGE_HW_COMPOSER, &use_flags, in cros_gralloc_convert_usage()
113 handle_usage(&usage, GRALLOC_USAGE_HW_FB, &use_flags, BO_USE_NONE); in cros_gralloc_convert_usage()
[all …]
Dcros_gralloc_driver.cc182 if (mt8183_camera_quirk_ && (descriptor->use_flags & BO_USE_CAMERA_READ) && in get_resolved_format_and_use_flags()
183 !(descriptor->use_flags & BO_USE_SCANOUT) && in get_resolved_format_and_use_flags()
185 *out_use_flags = descriptor->use_flags; in get_resolved_format_and_use_flags()
190 drv_resolve_format_and_use_flags(drv_.get(), descriptor->drm_format, descriptor->use_flags, in get_resolved_format_and_use_flags()
329 hnd->use_flags = drv_bo_get_use_flags(bo); in allocate()
412 .use_flags = hnd->use_flags, in retain()
616 uint32_t cros_gralloc_driver::get_resolved_drm_format(uint32_t drm_format, uint64_t use_flags) in get_resolved_drm_format() argument
621 drv_resolve_format_and_use_flags(drv_.get(), drm_format, use_flags, &resolved_format, in get_resolved_drm_format()
Dcros_gralloc_handle.h35 uint64_t use_flags; /* Buffer creation flags */ member
Dcros_gralloc_helpers.h33 uint64_t use_flags; member
Dcros_gralloc_driver.h48 uint32_t get_resolved_drm_format(uint32_t drm_format, uint64_t use_flags);
/external/toolchain-utils/cros_utils/
Dmisc_test.py29 use_flags = "hello 123"
31 env_string = "%s=%r" % (var, use_flags)
37 " ".join([added_use_flags, use_flags]),
51 use_flags = "hello 123"
53 env_string = "%s=%r" % (var, use_flags)
59 " ".join([use_flags, added_use_flags]),
/external/toolchain-utils/binary_search_tool/sysroot_wrapper/
DREADME.md11 ./sysroot_wrapper/setup.sh ${board} ${remote_ip} ${package} ${reboot_option} ${use_flags}
/external/minigbm/cros_gralloc/gralloc0/
Dgralloc0.cc83 descriptor.use_flags = cros_gralloc_convert_usage(usage); in gralloc0_alloc()
90 static_cast<unsigned long long>(descriptor.use_flags)); in gralloc0_alloc()

12