Use correct format when reading color buffers
When reading back data from color buffers on the host make sure gralloc
uses the correct format and type parameters. Previously it was hardcoded
based on RGBA at 8 bits per component which would cause incorrect reads
for other pixel formats. This could cause QEMU pipe reads to call abort
because the reads went past a page boundary if the calculated size
exceeded the actual buffer size.
Change-Id: Ifa61f0a97d79577744b899b1bbb4120a0b9170eb
1 file changed