diff options
author | Rob Herring <robh@kernel.org> | 2015-06-17 16:40:00 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-06-23 14:46:39 -0500 |
commit | 4b4210e9944b75abbf02503c0fa387c3c559ad1b (patch) | |
tree | a9cb9b87d7cb30742f31721c7cdbde3031935ac5 | |
parent | 23b9edc205ceaad3f530adab55cbc0efd2cfb794 (diff) |
HACK: drm: force fb pitch alignment to 16 bytes
There doesn't appear to be a simple way to specify pitch alignment
requirements. This hack does it for us though.
Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r-- | drivers/gpu/drm/drm_fb_cma_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_fb_cma_helper.c b/drivers/gpu/drm/drm_fb_cma_helper.c index 5c1aca443e54..01ce3f4dc6b7 100644 --- a/drivers/gpu/drm/drm_fb_cma_helper.c +++ b/drivers/gpu/drm/drm_fb_cma_helper.c @@ -266,7 +266,7 @@ static int drm_fbdev_cma_create(struct drm_fb_helper *helper, mode_cmd.width = sizes->surface_width; mode_cmd.height = sizes->surface_height; - mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; + mode_cmd.pitches[0] = ALIGN(sizes->surface_width * bytes_per_pixel, 16); mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); |