gralloc: set supported planes for buffers on allocation

This is done so that we should not have to do it dynamically during
composition. This information will be used later with hwcomposer module
when using planes for composition.

Change-Id: I2b6716fe9a8da81050645900c6c0955385946991
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
diff --git a/gralloc_drm.h b/gralloc_drm.h
index b06e438..8059907 100644
--- a/gralloc_drm.h
+++ b/gralloc_drm.h
@@ -122,6 +122,7 @@
 buffer_handle_t gralloc_drm_bo_get_handle(struct gralloc_drm_bo_t *bo, int *stride);
 int gralloc_drm_get_gem_handle(buffer_handle_t handle);
 void gralloc_drm_resolve_format(buffer_handle_t _handle, uint32_t *pitches, uint32_t *offsets, uint32_t *handles);
+unsigned int planes_for_format(struct gralloc_drm_t *drm, int hal_format);
 
 int gralloc_drm_bo_lock(struct gralloc_drm_bo_t *bo, int x, int y, int w, int h, int enable_write, void **addr);
 void gralloc_drm_bo_unlock(struct gralloc_drm_bo_t *bo);