libgralloc: Invoke adreno for ASTC format padding.
Invoke adreno util API to calculate padding bytes for ASTC
formats.
Change-Id: I96af0199a0029786fd2975a7c002d5414c797521
diff --git a/libgralloc/gr.h b/libgralloc/gr.h
index 8c68e16..20b2994 100644
--- a/libgralloc/gr.h
+++ b/libgralloc/gr.h
@@ -120,12 +120,12 @@
// Pointer to the padding library.
void *libadreno_utils;
- // link to the surface padding library.
+ // link(s)to adreno surface padding library.
int (*LINK_adreno_compute_padding) (int width, int bpp,
int surface_tile_height,
int screen_tile_height,
int padding_threshold);
- // link to the surface padding library.
+
void (*LINK_adreno_compute_aligned_width_and_height) (int width,
int height,
int bpp,
@@ -134,8 +134,18 @@
int padding_threshold,
int *aligned_w,
int *aligned_h);
- // link to the surface padding library.
+
int (*LINK_adreno_isMacroTilingSupportedByGpu) (void);
+ void(*LINK_adreno_compute_compressedfmt_aligned_width_and_height)(
+ int width,
+ int height,
+ int format,
+ int tile_mode,
+ int raster_mode,
+ int padding_threshold,
+ int *aligned_w,
+ int *aligned_h,
+ int *bpp);
};
#endif /* GR_H_ */