drm/omap: remove align_pitch()
The previous commit removed aligning the pitch to SGX's pitch requirement from align_pitch(). What's left is effectively a function that returns width * bytespp. To clean up the driver, we can remove the function and have the calculation inline in the two places which call align_pitch(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -661,7 +661,8 @@ int omap_gem_dumb_create(struct drm_file *file, struct drm_device *dev,
|
||||
{
|
||||
union omap_gem_size gsize;
|
||||
|
||||
args->pitch = align_pitch(0, args->width, args->bpp);
|
||||
args->pitch = args->width * DIV_ROUND_UP(args->bpp, 8);
|
||||
|
||||
args->size = PAGE_ALIGN(args->pitch * args->height);
|
||||
|
||||
gsize = (union omap_gem_size){
|
||||
|
Reference in New Issue
Block a user