Lines Matching refs:dumb
90 void InitGbmBo(struct gbm_bo *bo, const struct drm_mode_create_dumb *dumb)
92 DISPLAY_CHK_RETURN_NOT_VALUE((dumb == nullptr), DISPLAY_LOGE("dumb is null"));
94 bo->stride = dumb->pitch;
95 bo->size = dumb->size;
96 bo->handle = dumb->handle;
122 struct drm_mode_create_dumb dumb = { 0 };
134 dumb.height = ALIGN_UP(AdjustStrideFromFormat(format, height), HEIGHT_ALIGN);
135 dumb.width = ALIGN_UP(width, WIDTH_ALIGN);
136 dumb.flags = 0;
137 dumb.bpp = fmtInfo->bitsPerPixel;
138 ret = drmIoctl(gbm->fd, DRM_IOCTL_MODE_CREATE_DUMB, &dumb);
139 DISPLAY_LOGD("fmt 0x%{public}x create dumb width: %{public}d height: %{public}d bpp: %{public}u pitch"
141 format, dumb.width, dumb.height, dumb.bpp, dumb.pitch, dumb.size);
143 InitGbmBo(bo, &dumb);
145 "fmt 0x%{public}x create dumb width: %{public}d height: %{public}d stride %{public}d size %{public}u", format,
191 struct drm_mode_destroy_dumb dumb = { 0 };
192 dumb.handle = bo->handle;
193 ret = drmIoctl(bo->gbm->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dumb);
194 DISPLAY_CHK_RETURN_NOT_VALUE((ret), DISPLAY_LOGE("dumb buffer destroy failed errno %{public}d", errno));