gralloc: Update buffer size calc for NV12 color formats

Compute the actual buffer size (including aligned width
and height) based on pixel format that is set. In this
case, calculate NV12 color format buffer sizes as per
nv12_512 alignment even when the ubwc surface is set.

Change-Id: Ic3ea1f03e9bfe0b62b3917e43d95da1f7e28bde8
1 file changed