[PATCHv5 19/34] drm/komeda: Make the size checks independent from framebuffer structure