amdgpu: Only align video BOs to 512 for Android

crrev/c/3633249 compares libva and minigbm allocated Surfaces/BOs
for accelerated video decoding. Currently it fails on e.g. zork
because libva (mesa-amd backend) aligns those buffers to 256,
whereas minigbm aligns them to 512. This CL reduces the 512-align
provision in amdgpu to Android-originated buffers, where IIUC
from the bug there is such restriction.

TEST=vaapi_unittest on zork w/ crrev/c/3633249

Change-Id: I703037c70dded8596408c475518a29de3b59f039
Tested-by: Miguel Casas-Sanchez <>
Reviewed-by: Drew Davenport <>
Commit-Queue: Miguel Casas-Sanchez <>
1 file changed