Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-minigbm: Commit

external/minigbm


Commit MetaInfo

Revisión8e6bf6a9cdce32421dfff3988c155d8b5ab530be (tree)
Tiempo2020-05-10 20:24:06
AutorMauro Rossi <issor.oruam@gmai...>
CommiterMauro Rossi

Log Message

gralloc0_register_buffer: initialize gralloc0 when needed

Based on Michael Goffioul "Always initialize gralloc0 module"
considerign that !mod->initialized defines the condition when it's needed.

Original commit message:
Both mapper and allocator HIDL adapter uses the same gralloc module, but
the mapper HILD does not fully initialize the module, leaving the
allocator HIDL in limbo if the mapper HIDL is called first.

Fixes SystemUI crash on startup.

Cambiar Resumen

Diferencia incremental

--- a/cros_gralloc/gralloc0/gralloc0.cc
+++ b/cros_gralloc/gralloc0/gralloc0.cc
@@ -202,7 +202,7 @@ static int gralloc0_register_buffer(struct gralloc_module_t const *module, buffe
202202 auto mod = (struct gralloc0_module *)module;
203203
204204 if (!mod->initialized)
205- if (gralloc0_init(mod, false))
205+ if (gralloc0_init(mod, true))
206206 return -ENODEV;
207207
208208 return mod->driver->retain(handle);
Show on old repository browser