Home | History | Annotate | Download | only in drm_gralloc

Lines Matching full:handle

210 	pitches[0] = ib->base.handle->stride;
213 switch(ib->base.handle->format) {
222 pitches[0] * ib->base.handle->height;
224 pitches[2] * ib->base.handle->height/2;
234 pitches[0] * ib->base.handle->height;
242 const struct gralloc_drm_handle_t *handle,
251 bpp = gralloc_drm_get_bpp(handle->format);
253 ALOGE("unrecognized format 0x%x", handle->format);
257 aligned_width = handle->width;
258 aligned_height = handle->height;
259 gralloc_drm_align_geometry(handle->format,
262 if (handle->usage & GRALLOC_USAGE_HW_FB) {
307 if (handle->usage & (GRALLOC_USAGE_SW_READ_OFTEN |
310 else if ((handle->usage & GRALLOC_USAGE_HW_RENDER) ||
311 ((handle->usage & GRALLOC_USAGE_HW_TEXTURE) &&
312 handle->width >= 64))
317 if (handle->usage & GRALLOC_USAGE_HW_TEXTURE) {
327 if (handle->usage & GRALLOC_USAGE_HW_RENDER)
339 struct gralloc_drm_handle_t *handle)
348 if (handle->name) {
352 "gralloc-r", handle->name);
355 handle->name);
370 ib->ibo = alloc_ibo(info, handle, &ib->tiling, &stride);
373 handle->width,
374 handle->height,
375 handle->format);
380 handle->stride = stride;
382 if (drm_intel_bo_flink(ib->ibo, (uint32_t *) &handle->name)) {
390 ib->base.fb_handle = ib->ibo->handle;
392 ib->base.handle = handle;
415 (ib->base.handle->usage & GRALLOC_USAGE_HW_FB))
431 (ib->base.handle->usage & GRALLOC_USAGE_HW_FB))