drm/omap: remove omap_framebuffer_get_formats()
We now get a fourcc array from dispc when asking for a plane's supported pixel formats, so we can drop omap_framebuffer_get_formats() which was used to convert between DSS and DRM pixel formats. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -55,28 +55,6 @@ static const struct {
|
||||
{ DRM_FORMAT_UYVY, DRM_FORMAT_UYVY },
|
||||
};
|
||||
|
||||
/* convert from overlay's pixel formats bitmask to an array of fourcc's */
|
||||
uint32_t omap_framebuffer_get_formats(uint32_t *pixel_formats,
|
||||
uint32_t max_formats, const u32 *supported_modes)
|
||||
{
|
||||
uint32_t nformats = 0;
|
||||
int i = 0;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(formats) && nformats < max_formats; i++) {
|
||||
unsigned int t;
|
||||
|
||||
for (t = 0; supported_modes[t]; ++t) {
|
||||
if (supported_modes[t] != formats[i].dss_format)
|
||||
continue;
|
||||
|
||||
pixel_formats[nformats++] = formats[i].pixel_format;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return nformats;
|
||||
}
|
||||
|
||||
/* per-plane info for the fb: */
|
||||
struct plane {
|
||||
struct drm_gem_object *bo;
|
||||
|
Reference in New Issue
Block a user