/external/minigbm/ |
D | gbm_helpers.c | 15 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 …]
|
D | virtgpu_virgl.c | 284 uint64_t use_flags) in virgl_supports_combination_natively() argument 291 if ((use_flags & BO_USE_RENDERING) && in virgl_supports_combination_natively() 295 if ((use_flags & BO_USE_TEXTURE) && in virgl_supports_combination_natively() 299 if ((use_flags & BO_USE_SCANOUT) && priv->caps_is_v2 && in virgl_supports_combination_natively() 310 uint64_t use_flags) in virgl_supports_combination_through_emulation() argument 318 if (use_flags & (BO_USE_RENDERING | BO_USE_SCANOUT)) in virgl_supports_combination_through_emulation() 321 if (!virgl_supports_combination_natively(drv, DRM_FORMAT_R8, use_flags)) in virgl_supports_combination_through_emulation() 331 struct format_metadata *metadata, uint64_t use_flags) in virgl_add_combination() argument 336 if ((use_flags & BO_USE_SCANOUT) && priv->caps_is_v2 && in virgl_add_combination() 337 !virgl_supports_combination_natively(drv, drm_format, use_flags)) { in virgl_add_combination() [all …]
|
D | amdgpu.c | 313 uint64_t use_flags = BO_USE_RENDER_MASK; in amdgpu_init() local 350 &metadata, use_flags); in amdgpu_init() 394 use_flags &= ~BO_USE_RENDERSCRIPT; in amdgpu_init() 395 use_flags &= ~BO_USE_SW_WRITE_OFTEN; in amdgpu_init() 396 use_flags &= ~BO_USE_SW_READ_OFTEN; in amdgpu_init() 397 use_flags &= ~BO_USE_LINEAR; in amdgpu_init() 403 &metadata, use_flags); in amdgpu_init() 427 uint64_t use_flags) in amdgpu_create_bo_linear() argument 456 if (use_flags & (BO_USE_HW_VIDEO_DECODER | BO_USE_HW_VIDEO_ENCODER)) in amdgpu_create_bo_linear() 466 if (use_flags & (BO_USE_LINEAR | BO_USE_SW_MASK)) in amdgpu_create_bo_linear() [all …]
|
D | drv.c | 194 struct combination *drv_get_combination(struct driver *drv, uint32_t format, uint64_t use_flags) in drv_get_combination() argument 198 if (format == DRM_FORMAT_NONE || use_flags == BO_USE_NONE) in drv_get_combination() 205 if ((format == curr->format) && use_flags == (curr->use_flags & use_flags)) in drv_get_combination() 214 uint64_t use_flags, bool is_test_buffer) in drv_bo_new() argument 227 bo->meta.use_flags = use_flags; in drv_bo_new() 240 uint64_t use_flags) in drv_bo_create() argument 247 is_test_alloc = use_flags & BO_USE_TEST_ALLOC; in drv_bo_create() 248 use_flags &= ~BO_USE_TEST_ALLOC; in drv_bo_create() 250 bo = drv_bo_new(drv, width, height, format, use_flags, is_test_alloc); in drv_bo_create() 257 ret = drv->backend->bo_compute_metadata(bo, width, height, format, use_flags, NULL, in drv_bo_create() [all …]
|
D | helpers.c | 311 uint64_t use_flags, uint64_t quirks) in drv_dumb_bo_create_ex() argument 377 uint64_t use_flags) in drv_dumb_bo_create() argument 379 return drv_dumb_bo_create_ex(bo, width, height, format, use_flags, BO_QUIRK_NONE); in drv_dumb_bo_create() 561 struct format_metadata *metadata, uint64_t use_flags) in drv_add_combination() argument 565 .use_flags = use_flags }; in drv_add_combination() 571 struct format_metadata *metadata, uint64_t use_flags) in drv_add_combinations() argument 578 .use_flags = use_flags }; in drv_add_combinations() 585 uint64_t use_flags) in drv_modify_combination() argument 594 combo->use_flags |= use_flags; in drv_modify_combination() 652 uint32_t drv_resolve_format_helper(struct driver *drv, uint32_t format, uint64_t use_flags) in drv_resolve_format_helper() argument [all …]
|
D | mediatek.c | 124 if (bo->meta.use_flags & BO_USE_HW_VIDEO_ENCODER) { in mediatek_bo_create_with_modifiers() 163 uint64_t use_flags) in mediatek_bo_create() argument 199 if (bo->meta.use_flags & BO_USE_RENDERSCRIPT) { in mediatek_bo_map() 261 static uint32_t mediatek_resolve_format(struct driver *drv, uint32_t format, uint64_t use_flags) in mediatek_resolve_format() argument 269 if (use_flags & BO_USE_CAMERA_READ) in mediatek_resolve_format() 272 if (use_flags & BO_USE_CAMERA_WRITE) in mediatek_resolve_format() 280 if (use_flags & (BO_USE_HW_VIDEO_DECODER)) { in mediatek_resolve_format() 284 if (use_flags & in mediatek_resolve_format()
|
D | drv_priv.h | 28 uint64_t use_flags; member 60 uint64_t use_flags; member 79 uint64_t use_flags); 85 uint64_t use_flags, const uint64_t *modifiers, uint32_t count); 93 uint32_t (*resolve_format)(struct driver *drv, uint32_t format, uint64_t use_flags);
|
D | drv.h | 94 uint64_t use_flags; member 128 struct combination *drv_get_combination(struct driver *drv, uint32_t format, uint64_t use_flags); 131 uint64_t use_flags, bool is_test_buffer); 134 uint64_t use_flags); 178 uint32_t drv_resolve_format(struct driver *drv, uint32_t format, uint64_t use_flags);
|
D | helpers.h | 30 uint64_t use_flags); 32 uint64_t use_flags, uint64_t quirks); 54 uint32_t drv_resolve_format_helper(struct driver *drv, uint32_t format, uint64_t use_flags);
|
D | virtgpu_cross_domain.c | 138 (current->format == cached->format) && (current->use_flags == cached->use_flags)) in metadata_equal() 170 cmd_get_reqs.flags = metadata->use_flags; in cross_domain_metadata_query() 335 uint64_t use_flags) in cross_domain_bo_create() argument 347 if (use_flags & BO_USE_SW_MASK) in cross_domain_bo_create() 350 if (params[param_cross_device].value && (use_flags & BO_USE_NON_GPU_HW)) in cross_domain_bo_create()
|
D | vc4.c | 84 uint64_t use_flags) in vc4_bo_create() argument 88 combo = drv_get_combination(bo->drv, format, use_flags); in vc4_bo_create()
|
D | gbm.c | 34 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()
|
D | msm.c | 170 uint64_t use_flags) in msm_add_ubwc_combinations() argument 176 .use_flags = use_flags }; in msm_add_ubwc_combinations()
|
D | dri.c | 274 uint64_t use_flags) in dri_bo_create() argument 284 if (use_flags & BO_USE_SCANOUT) in dri_bo_create() 286 if (use_flags & BO_USE_CURSOR) in dri_bo_create() 288 if (use_flags & BO_USE_LINEAR) in dri_bo_create()
|
D | i915.c | 372 uint64_t use_flags, const uint64_t *modifiers, uint32_t count) in i915_bo_compute_metadata() argument 382 struct combination *combo = drv_get_combination(bo->drv, format, use_flags); in i915_bo_compute_metadata() 502 if (i915->has_hw_protection && (bo->meta.use_flags & BO_USE_PROTECTED)) { in i915_bo_create_from_metadata() 605 if ((bo->meta.use_flags & BO_USE_SCANOUT) && in i915_bo_map() 606 !(bo->meta.use_flags & in i915_bo_map()
|
D | dri.h | 32 uint64_t use_flags);
|
D | rockchip.c | 175 uint64_t use_flags) in rockchip_bo_create() argument 205 if (bo->meta.use_flags & BO_USE_RENDERSCRIPT) { in rockchip_bo_map()
|
D | exynos.c | 38 uint64_t use_flags) in exynos_bo_create() argument
|
/external/minigbm/cros_gralloc/gralloc0/ |
D | gralloc0.cc | 76 uint64_t use_flags = BO_USE_NONE; in gralloc0_convert_usage() local 79 use_flags |= BO_USE_NONE; in gralloc0_convert_usage() 81 use_flags |= BO_USE_SW_READ_RARELY; in gralloc0_convert_usage() 83 use_flags |= BO_USE_SW_READ_OFTEN; in gralloc0_convert_usage() 85 use_flags |= BO_USE_SW_WRITE_RARELY; in gralloc0_convert_usage() 87 use_flags |= BO_USE_SW_WRITE_OFTEN; in gralloc0_convert_usage() 89 use_flags |= BO_USE_TEXTURE; in gralloc0_convert_usage() 91 use_flags |= BO_USE_RENDERING; in gralloc0_convert_usage() 93 use_flags |= BO_USE_RENDERING; in gralloc0_convert_usage() 96 use_flags |= BO_USE_SCANOUT | BO_USE_TEXTURE; in gralloc0_convert_usage() [all …]
|
/external/toolchain-utils/cros_utils/ |
D | misc_test.py | 30 use_flags = 'hello 123' 32 env_string = '%s=%r' % (var, use_flags) 35 expected_new_env = '%s=%r' % (var, ' '.join([added_use_flags, use_flags])) 46 use_flags = 'hello 123' 48 env_string = '%s=%r' % (var, use_flags) 51 expected_new_env = '%s=%r' % (var, ' '.join([use_flags, added_use_flags]))
|
/external/minigbm/cros_gralloc/ |
D | cros_gralloc_driver.cc | 125 resolved_format = drv_resolve_format(drv_, descriptor->drm_format, descriptor->use_flags); in is_supported() 126 combo = drv_get_combination(drv_, resolved_format, descriptor->use_flags); in is_supported() 166 uint64_t use_flags; in allocate() local 171 resolved_format = drv_resolve_format(drv_, descriptor->drm_format, descriptor->use_flags); in allocate() 172 use_flags = descriptor->use_flags; in allocate() 180 use_flags &= ~BO_USE_HW_VIDEO_ENCODER; in allocate() 183 bo = drv_bo_create(drv_, descriptor->width, descriptor->height, resolved_format, use_flags); in allocate() 248 hnd->use_flags = descriptor->use_flags; in allocate() 305 data.use_flags = hnd->use_flags; in retain()
|
D | cros_gralloc_types.h | 18 uint64_t use_flags; member
|
D | cros_gralloc_handle.h | 35 uint64_t use_flags; /* Buffer creation flags */ member
|
/external/minigbm/cros_gralloc/gralloc3/ |
D | CrosGralloc3Allocator.cc | 52 crosDescriptor.use_flags &= ~BO_USE_SCANOUT; in allocate()
|
/external/minigbm/cros_gralloc/gralloc4/ |
D | CrosGralloc4Allocator.cc | 51 crosDescriptor.use_flags &= ~BO_USE_SCANOUT; in allocate()
|