From: Chris Spencer Date: Tue, 29 Aug 2023 21:16:45 +0000 (+0100) Subject: android: Add explanatory comment to u_gralloc X-Git-Tag: upstream/23.3.3~2519 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=574bdee19dac1e1e908f6b43667d46de8c96450c;p=platform%2Fupstream%2Fmesa.git android: Add explanatory comment to u_gralloc Signed-off-by: Chris Spencer Reviewed-by: Roman Stratiienko Reviewed-by: Tapani Pälli Part-of: --- diff --git a/src/util/u_gralloc/u_gralloc.c b/src/util/u_gralloc/u_gralloc.c index 0d1e5f6..0adc58e 100644 --- a/src/util/u_gralloc/u_gralloc.c +++ b/src/util/u_gralloc/u_gralloc.c @@ -23,6 +23,7 @@ static const struct u_grallocs { enum u_gralloc_type type; struct u_gralloc *(*create)(); } u_grallocs[] = { + /* Prefer the CrOS API as it is significantly faster than IMapper4 */ {.type = U_GRALLOC_TYPE_CROS, .create = u_gralloc_cros_api_create}, #ifdef USE_IMAPPER4_METADATA_API {.type = U_GRALLOC_TYPE_GRALLOC4, .create = u_gralloc_imapper_api_create},