gralloc4: limit 64-byte alignment to GPU+camera

Currently, only Camera has been verified to handle 64-byte strides
properly when writing buffers for the GPU.  Narrow this down and emit an
error in the case of problematic usage combinations.

Bug: 188226310
Test: play a 480p h.264 video, camera viewfinder, record/play video
Change-Id: I7e82394ea40a49018705009da8b7d8aafa4aea26
(cherry picked from commit e3a678186d514650cca2e0464c26cb10912e4e72)
1 file changed