OSDN Git Service

minigbm: fix stride logic
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 29 Mar 2017 19:37:01 +0000 (12:37 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 30 Mar 2017 03:48:33 +0000 (20:48 -0700)
commit102dcb88f9493817f7fd5b74551d53a1b664090a
treec2a1828cf5017190ac451a130541e606eb7c8356
parent75372ca5bcb0860f5022b5edcd1b60140b6d4896
minigbm: fix stride logic

We shouldn't round up to the nearest byte. This way we can represent
formats like Y41P.  Makes no difference currently since
drv_bpp_from_format only returns numbers divisible by eight.

Change-Id: I57bcab383f1661ea11e9aa1d30e18750574143e2
Reviewed-on: https://chromium-review.googlesource.com/462478
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
drv.c