gralloc: fix internal_format in YUV alloc cases
authorSimon Shields <simon@lineageos.org>
Tue, 13 Feb 2018 09:38:27 +0000 (20:38 +1100)
committerJan Altensen <info@stricted.net>
Sun, 5 Apr 2020 10:22:41 +0000 (12:22 +0200)
commitcbe3a2c75dfea17c39704491a091a9b953804e17
treed8b04271d9d50891d3a503f7b133fefbe7e90787
parent1a0fa7710541923f011b6087c9e55ca5dafbecff
gralloc: fix internal_format in YUV alloc cases

if internal_format is left unset, the EGL blobs will be very unhappy
because they can't figure out how many planes are needed. We call
gralloc_select_format and check_for_compression to pick internal_format,
as is done in gralloc_alloc_rgb.

Change-Id: I3f9e5d1dca5fc07753e6837d1e9e405b7cd83fb7
gralloc/gralloc.cpp