minigbm: fix subsampling issue
For YUV, we're not consistent. For the "y" component, we assume
the offset is just y * plane_stride, letting the API user take
care of the subsampling. For the "x" component, we subsample the
"x" the user passes in (see drv_stride_from_format(..)).
Let's be consistent and not subsample.
This likely makes neglible difference since the users of the API map
the entire plane.
BUG=b:132939420
TEST=none
Change-Id: I0fcfd8ba6a2ae59a419af963eb7b54245f697d77
Reviewed-on: https://chromium-review.googlesource.com/1681382
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Lepton Wu <lepton@chromium.org>
1 file changed