Freescale / meta-freescale

Layer containing NXP hardware support metadata
Other
168 stars 254 forks source link

Status of support for GPU hardware acceleration on i.MX8 #1006

Closed escherstair closed 2 years ago

escherstair commented 2 years ago

I've just started the evaluation of i.MX8 family (i.MX8M-Mini in particular) for a new project. My need is to create a nodejs-based web app running over Linux, and Chromium would seem the most common and used client.

But based on what I found searching around and taliking to some SoMs vendors, it seems that Chromium doesn't have support for i.MX8 GPU. And it's not clear i any other client has this kind of support.

So i have some questions:

Thanks in advance

otavio commented 2 years ago
  • is this the official Yocto layer for i.MX8 family (i.MX8M-Mini)?

Yes. You can use this or NXP official release.

  • is this the layer that adds Chromium?

This is enabled when meta-browser/meta-chromium is added.

  • is it GPU supported by Chromium (or by another client)?

Yes. We (at O.S. Systems) have customers using i.MX8M family with it as well as other embedded browsers.

  • how can I help adding this support (if not available yet)?

Sending PRs here.

escherstair commented 2 years ago

I reopen this issue because I tried to enable GPU usage for Chromium on iMX8M adding --enable-features=UseOzonePlatform --ozone-platform=wayland startup parameters. It seems working (because this CodeSandbox example runs) but the performance are poor. Profiling the execution I see that CPU usage is near to 100% and so it seems that (for some reasons) the processor falls back on CPU rendering. Can someone confirm that GPU hardware acceleration is fully supported on Chromium on iMX8M family?