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.

TEST= CtsNativeHardwareTestCases GpuColorOutputCpuRead* tests

Change-Id: I0e1ccfba4ec981702498a76fa5a0b2c662b6e728
Signed-off-by: Satyajit Sahu <>
Commit-Ready: ChromeOS CL Exonerator Bot <>
Tested-by: Deepak Sharma <>
Reviewed-by: Gurchetan Singh <>
1 file changed