Home
last modified time | relevance | path

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

/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 …]
Damdgpu.c49 uint64_t use_flags = BO_USE_RENDER_MASK; in amdgpu_init() local
77 &metadata, use_flags); in amdgpu_init()
105 use_flags &= ~BO_USE_RENDERSCRIPT; in amdgpu_init()
106 use_flags &= ~BO_USE_SW_WRITE_OFTEN; in amdgpu_init()
107 use_flags &= ~BO_USE_SW_READ_OFTEN; in amdgpu_init()
108 use_flags &= ~BO_USE_LINEAR; in amdgpu_init()
114 &metadata, use_flags); in amdgpu_init()
131 uint64_t use_flags) in amdgpu_create_bo() argument
139 combo = drv_get_combination(bo->drv, format, use_flags); in amdgpu_create_bo()
144 return dri_bo_create(bo, width, height, format, use_flags); in amdgpu_create_bo()
[all …]
Drockchip.c80 uint64_t use_flags; in rockchip_add_kms_item() local
88 use_flags = BO_USE_RENDERING | BO_USE_SCANOUT | BO_USE_TEXTURE; in rockchip_add_kms_item()
95 use_flags &= ~BO_USE_RENDERING; in rockchip_add_kms_item()
98 drv_add_combinations(drv, &item->format, 1, &metadata, use_flags); in rockchip_add_kms_item()
100 combo->use_flags |= item->use_flags; in rockchip_add_kms_item()
227 uint64_t use_flags) in rockchip_bo_create() argument
259 if (bo->use_flags & BO_USE_RENDERSCRIPT) { in rockchip_bo_map()
302 static uint32_t rockchip_resolve_format(uint32_t format, uint64_t use_flags) in rockchip_resolve_format() argument
307 if (use_flags & (BO_USE_CAMERA_READ | BO_USE_CAMERA_WRITE)) in rockchip_resolve_format()
Ddrv.c206 struct combination *drv_get_combination(struct driver *drv, uint32_t format, uint64_t use_flags) in drv_get_combination() argument
210 if (format == DRM_FORMAT_NONE || use_flags == BO_USE_NONE) in drv_get_combination()
217 if ((format == curr->format) && use_flags == (curr->use_flags & use_flags)) in drv_get_combination()
226 uint64_t use_flags) in drv_bo_new() argument
239 bo->use_flags = use_flags; in drv_bo_new()
251 uint64_t use_flags) in drv_bo_create() argument
257 bo = drv_bo_new(drv, width, height, format, use_flags); in drv_bo_create()
262 ret = drv->backend->bo_create(bo, width, height, format, use_flags); in drv_bo_create()
352 bo = drv_bo_new(drv, data->width, data->height, data->format, data->use_flags); in drv_bo_import()
408 assert(!(bo->use_flags & BO_USE_PROTECTED)); in drv_bo_map()
[all …]
Ddrv_priv.h29 uint64_t use_flags; member
37 uint64_t use_flags; member
49 uint64_t use_flags; member
67 uint64_t use_flags);
76 uint32_t (*resolve_format)(uint32_t format, uint64_t use_flags);
Di915.c101 combo->use_flags |= item->use_flags & ~BO_USE_CURSOR; in i915_add_kms_item()
106 combo->use_flags |= item->use_flags; in i915_add_kms_item()
109 combo->use_flags |= item->use_flags; in i915_add_kms_item()
407 uint64_t use_flags) in i915_bo_create() argument
411 combo = drv_get_combination(bo->drv, format, use_flags); in i915_bo_create()
472 if ((bo->use_flags & BO_USE_SCANOUT) && !(bo->use_flags & BO_USE_RENDERSCRIPT)) in i915_bo_map()
546 static uint32_t i915_resolve_format(uint32_t format, uint64_t use_flags) in i915_resolve_format() argument
551 if (use_flags & (BO_USE_CAMERA_READ | BO_USE_CAMERA_WRITE)) in i915_resolve_format()
Dtegra.c183 uint64_t use_flags = BO_USE_RENDER_MASK; in tegra_init() local
190 &metadata, use_flags); in tegra_init()
195 use_flags &= ~BO_USE_SW_WRITE_OFTEN; in tegra_init()
196 use_flags &= ~BO_USE_SW_READ_OFTEN; in tegra_init()
197 use_flags &= ~BO_USE_LINEAR; in tegra_init()
203 &metadata, use_flags); in tegra_init()
211 uint64_t use_flags) in tegra_bo_create() argument
218 if (use_flags & in tegra_bo_create()
Ddrv.h80 uint64_t use_flags; member
114 struct combination *drv_get_combination(struct driver *drv, uint32_t format, uint64_t use_flags);
117 uint64_t use_flags);
120 uint64_t use_flags);
164 uint32_t drv_resolve_format(struct driver *drv, uint32_t format, uint64_t use_flags);
Dvirtio_gpu.c64 uint64_t use_flags) in virtio_dumb_bo_create() argument
73 return drv_dumb_bo_create(bo, width, height, format, use_flags); in virtio_dumb_bo_create()
77 uint64_t use_flags) in virtio_virgl_bo_create() argument
200 uint64_t use_flags) in virtio_gpu_bo_create() argument
204 return virtio_virgl_bo_create(bo, width, height, format, use_flags); in virtio_gpu_bo_create()
206 return virtio_dumb_bo_create(bo, width, height, format, use_flags); in virtio_gpu_bo_create()
282 static uint32_t virtio_gpu_resolve_format(uint32_t format, uint64_t use_flags) in virtio_gpu_resolve_format() argument
Dhelpers.c255 uint64_t use_flags) in drv_dumb_bo_create() argument
493 struct format_metadata *metadata, uint64_t use_flags) in drv_add_combinations() argument
500 .use_flags = use_flags }; in drv_add_combinations()
507 uint64_t use_flags) in drv_modify_combination() argument
516 combo->use_flags |= use_flags; in drv_modify_combination()
587 item->use_flags |= use_flag; in drv_query_kms()
596 .use_flags = use_flag }; in drv_query_kms()
644 combo->use_flags |= BO_USE_SCANOUT; in drv_modify_linear_combinations()
Dmediatek.c45 uint64_t use_flags) in mediatek_bo_create() argument
95 if (bo->use_flags & BO_USE_RENDERSCRIPT) { in mediatek_bo_map()
138 static uint32_t mediatek_resolve_format(uint32_t format, uint64_t use_flags) in mediatek_resolve_format() argument
Ddri.c166 uint64_t use_flags) in dri_bo_create() argument
177 if (use_flags & BO_USE_SCANOUT) in dri_bo_create()
179 if (use_flags & BO_USE_CURSOR) in dri_bo_create()
181 if (use_flags & BO_USE_LINEAR) in dri_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()
174 drv_data.use_flags = gbm_convert_usage(usage); in gbm_bo_import()
Ddri.h31 uint64_t use_flags);
Dvc4.c31 uint64_t use_flags) in vc4_bo_create() argument
Dhelpers.h17 uint64_t use_flags);
Dexynos.c38 uint64_t use_flags) in exynos_bo_create() argument
/external/minigbm/cros_gralloc/gralloc0/
Dgralloc0.cc38 uint64_t use_flags = BO_USE_NONE; in gralloc0_convert_usage() local
41 use_flags |= BO_USE_NONE; in gralloc0_convert_usage()
43 use_flags |= BO_USE_SW_READ_RARELY; in gralloc0_convert_usage()
45 use_flags |= BO_USE_SW_READ_OFTEN; in gralloc0_convert_usage()
47 use_flags |= BO_USE_SW_WRITE_RARELY; in gralloc0_convert_usage()
49 use_flags |= BO_USE_SW_WRITE_OFTEN; in gralloc0_convert_usage()
51 use_flags |= BO_USE_TEXTURE; in gralloc0_convert_usage()
53 use_flags |= BO_USE_RENDERING; in gralloc0_convert_usage()
55 use_flags |= BO_USE_RENDERING; in gralloc0_convert_usage()
58 use_flags |= BO_USE_SCANOUT | BO_USE_TEXTURE; in gralloc0_convert_usage()
[all …]
/external/minigbm/cros_gralloc/
Dcros_gralloc_driver.cc81 resolved_format = drv_resolve_format(drv_, descriptor->drm_format, descriptor->use_flags); in is_supported()
82 combo = drv_get_combination(drv_, resolved_format, descriptor->use_flags); in is_supported()
94 uint64_t use_flags; in allocate() local
99 resolved_format = drv_resolve_format(drv_, descriptor->drm_format, descriptor->use_flags); in allocate()
100 use_flags = descriptor->use_flags; in allocate()
108 use_flags |= BO_USE_LINEAR; in allocate()
110 bo = drv_bo_create(drv_, descriptor->width, descriptor->height, resolved_format, use_flags); in allocate()
147 hnd->use_flags[0] = static_cast<uint32_t>(descriptor->use_flags >> 32); in allocate()
148 hnd->use_flags[1] = static_cast<uint32_t>(descriptor->use_flags); in allocate()
197 data.use_flags = static_cast<uint64_t>(hnd->use_flags[0]) << 32; in retain()
[all …]
Dcros_gralloc_types.h17 uint64_t use_flags; member
Dcros_gralloc_handle.h29 uint32_t use_flags[2]; /* Buffer creation flags */ member
/external/toolchain-utils/cros_utils/
Dmisc_test.py25 use_flags = 'hello 123'
27 env_string = '%s=%r' % (var, use_flags)
30 expected_new_env = '%s=%r' % (var, ' '.join([added_use_flags, use_flags]))
41 use_flags = 'hello 123'
43 env_string = '%s=%r' % (var, use_flags)
46 expected_new_env = '%s=%r' % (var, ' '.join([use_flags, added_use_flags]))
/external/mesa3d/src/egl/drivers/dri2/
Dplatform_wayland.c348 int use_flags; in get_back_bo() local
421 use_flags = __DRI_IMAGE_USE_SHARE | __DRI_IMAGE_USE_BACKBUFFER; in get_back_bo()
445 use_flags | in get_back_bo()
475 0 : use_flags, in get_back_bo()
/external/autotest/client/bin/
Dutils.py2401 use_flags = get_ui_use_flags()
2402 if 'opengles' in use_flags: