93 for (i = 0; i <
ARRAY_SIZE(shmob_drm_format_infos); ++
i) {
94 if (shmob_drm_format_infos[i].fourcc == fourcc)
95 return &shmob_drm_format_infos[
i];
106 shmob_drm_fb_create(
struct drm_device *
dev,
struct drm_file *file_priv,
112 if (format ==
NULL) {
113 dev_dbg(dev->dev,
"unsupported pixel format %08x\n",
119 dev_dbg(dev->dev,
"valid pitch value %u\n",
125 unsigned int chroma_cpp = format->
bpp == 24 ? 2 : 1;
129 "luma and chroma pitches do not match\n");
138 .fb_create = shmob_drm_fb_create,
151 sdev->
ddev->mode_config.min_width = 0;
152 sdev->
ddev->mode_config.min_height = 0;
153 sdev->
ddev->mode_config.max_width = 4095;
154 sdev->
ddev->mode_config.max_height = 4095;
155 sdev->
ddev->mode_config.funcs = &shmob_drm_mode_config_funcs;