OSDN Git Service

minigbm: align width so that stride aligns to 256
authorSatyajit Sahu <satyajit.sahu@amd.com>
Thu, 4 Oct 2018 04:49:50 +0000 (10:19 +0530)
committerMauro Rossi <issor.oruam@gmail.com>
Sun, 26 Jan 2020 21:39:42 +0000 (22:39 +0100)
commit2093a42adbb4c7430e5c095fb6c0bd37d2c9dfc0
tree444adc45f2284a3cfa4208d1aa294afe37447c41
parentb2053058dd0901d56071de93981972780efcc982
minigbm: align width so that stride aligns to 256

map stride is bigger than the allocation stride. Currently
gralloc_lock does not consider map_stride. Align the width so
that stride get alinged to 256.

BUG=b:115946221
TEST= CtsNativeHardwareTestCases GpuColorOutputCpuRead* tests

Change-Id: I0e1ccfba4ec981702498a76fa5a0b2c662b6e728
Signed-off-by: Satyajit Sahu <satyajit.sahu@amd.com>
Reviewed-on: https://chromium-review.googlesource.com/1242767
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Deepak Sharma <deepak.sharma@amd.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
amdgpu.c