Init the DMA buffer in gralloc_lock

gralloc_unlock copies pixels into the DMA buffer
if it is enabled, but it was allocated without
a prior call to gralloc_register_buffer.

Bug: 128324105
Test: emugl_combined_unittests
Change-Id: I6105529b4938c8ab8c9bd9a66a1f837aabd3ac96
Signed-off-by: Roman Kiryanov <rkir@google.com>
1 file changed