Lines Matching refs:use_flags
47 uint64_t use_flags = BO_USE_RENDER_MASK; in amdgpu_init() local
75 &metadata, use_flags); in amdgpu_init()
115 use_flags &= ~BO_USE_RENDERSCRIPT; in amdgpu_init()
116 use_flags &= ~BO_USE_SW_WRITE_OFTEN; in amdgpu_init()
117 use_flags &= ~BO_USE_SW_READ_OFTEN; in amdgpu_init()
118 use_flags &= ~BO_USE_LINEAR; in amdgpu_init()
124 &metadata, use_flags); in amdgpu_init()
142 uint64_t use_flags) in amdgpu_create_bo_linear() argument
158 if (use_flags & (BO_USE_LINEAR | BO_USE_SW_MASK)) in amdgpu_create_bo_linear()
162 if (!(use_flags & (BO_USE_SW_READ_OFTEN | BO_USE_SCANOUT))) in amdgpu_create_bo_linear()
180 uint64_t use_flags) in amdgpu_create_bo() argument
184 combo = drv_get_combination(bo->drv, format, use_flags); in amdgpu_create_bo()
198 if (use_flags & (BO_USE_SW_MASK)) in amdgpu_create_bo()
202 if (use_flags & (BO_USE_SCANOUT)) in amdgpu_create_bo()
210 return dri_bo_create(bo, width, height, format, use_flags); in amdgpu_create_bo()
213 return amdgpu_create_bo_linear(bo, width, height, format, use_flags); in amdgpu_create_bo()
237 combo = drv_get_combination(bo->drv, data->format, data->use_flags); in amdgpu_import_bo()
315 static uint32_t amdgpu_resolve_format(struct driver *drv, uint32_t format, uint64_t use_flags) in amdgpu_resolve_format() argument
320 if (use_flags & (BO_USE_CAMERA_READ | BO_USE_CAMERA_WRITE)) in amdgpu_resolve_format()