WebGPU Vulkan Support on i.MX8MP (QtWebEngine 6.7.0)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

WebGPU Vulkan Support on i.MX8MP (QtWebEngine 6.7.0)

3,359 Views
Aaronchou
Contributor I

Installing QtWebEngine 6.7.0 on imx8mp-lpddr4-evk
Chromium in QtWebEngine has started supporting WebGPU.
However, when I try the following flags:
--enable-unsafe-webgpu --enable-vulkan --use-angle=vulkan,
QtWebEngine crashes.

Is it because the BSP Vulkan support is not yet fully implemented?

Tags (1)
0 Kudos
Reply
4 Replies

2,797 Views
Aaronchou
Contributor I

 

Hi @Manuel_Salas 

I upgraded my system to BSP 6.12.3-lts and attempted to enable WebGPU and Vulkan.

The startup flags I used:

--enable-features=Vulkan,UseSkiaRenderer,WebGPUDeveloperFeatures --enable-unsafe-webgpu --ignore-gpu-blocklist --in-process-gpu --use-gl=egl

My Vulkan ICD config file (/etc/vulkan/icd.d/imx_icd.json):

{ "file_format_version": "1.0.0", "ICD": { "library_path": "/usr/lib/libvulkan_VSI.so.1", "api_version": "1.3.204" } }

Qt WebEngine does not crash, but the screen remains white with no rendering output.

When running vulkaninfo, I received the following warning:

WARNING: [Loader Message] Code 0 : loader_scanned_icd_add: Driver /usr/lib/libvulkan_VSI.so.1 supports Vulkan 1.3, but only supports loader interface version 2. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)

Please confirm whether the current Vulkan driver supports WebGPU functionality, or if an updated driver with loader interface version 5 or newer is required.

0 Kudos
Reply

3,334 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Aaronchou 

 

I hope you are doing very well.

As you can see on table 7 of RN00210 (Release Notes for LF6.6.52_2.2.0), Vulkan GPU is supported on the i.MX8MP:

Alejandro_Salas_0-1736875971039.png

 

I am not sure what BSP you are using, please check the respective release notes for your BSP.

Also, you can try:

--enable-unsafe-webgpu --enable-features=Vulkan

 

Best regards,

Salas.

 

0 Kudos
Reply

2,368 Views
Aaronchou
Contributor I

I have updated the BSP to BSP 6.12.3-lts.
WebGPU still doesn’t work.
I’ve posted my observations in the comments.
Is there any update?

0 Kudos
Reply

3,159 Views
vix
Contributor III

Hi @Manuel_Salas 

even with the flags you suggested, chromium is not able to see Vulkan and it reports

Vulkan: Disabled

 

Can you double check, please?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2027230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWebGPU%20Vulkan%20Support%20on%20i.MX8MP%20(QtWebEngine%206.7.0)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EInstalling%20QtWebEngine%206.7.0%20on%20imx8mp-lpddr4-evk%3CBR%20%2F%3EChromium%20in%20QtWebEngine%20has%20started%20supporting%20WebGPU.%3CBR%20%2F%3EHowever%2C%20when%20I%20try%20the%20following%20flags%3A%3CBR%20%2F%3E--enable-unsafe-webgpu%20--enable-vulkan%20--use-angle%3Dvulkan%2C%3CBR%20%2F%3EQtWebEngine%20crashes.%3C%2FP%3E%3CP%3EIs%20it%20because%20the%20BSP%20Vulkan%20support%20is%20not%20yet%20fully%20implemented%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149756%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20WebGPU%20Vulkan%20Support%20on%20i.MX8MP%20(QtWebEngine%206.7.0)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149756%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20updated%20the%20BSP%20to%20BSP%206.12.3-lts.%3CBR%20%2F%3EWebGPU%20still%20doesn%E2%80%99t%20work.%3CBR%20%2F%3EI%E2%80%99ve%20posted%20my%20observations%20in%20the%20comments.%3CBR%20%2F%3EIs%20there%20any%20update%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2102605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20WebGPU%20Vulkan%20Support%20on%20i.MX8MP%20(QtWebEngine%206.7.0)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2102605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203368%22%20target%3D%22_blank%22%3E%40Manuel_Salas%3C%2FA%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20upgraded%20my%20system%20to%20%3CSTRONG%3EBSP%206.12.3-lts%3C%2FSTRONG%3E%20and%20attempted%20to%20enable%20WebGPU%20and%20Vulkan.%3C%2FP%3E%3CP%3EThe%20startup%20flags%20I%20used%3A%3C%2FP%3E%3CPRE%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3E--enable-features%3DVulkan%2CUseSkiaRenderer%2CWebGPUDeveloperFeatures%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E--enable-unsafe-webgpu%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E--ignore-gpu-blocklist%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E--in-process-gpu%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E--use-gl%3Degl%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3EMy%20Vulkan%20ICD%20config%20file%20(%2Fetc%2Fvulkan%2Ficd.d%2Fimx_icd.json)%3A%3C%2FP%3E%3CPRE%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3E%7B%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%22file_format_version%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%221.0.0%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%22ICD%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%7B%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%22library_path%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%22%2Fusr%2Flib%2Flibvulkan_VSI.so.1%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%22api_version%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%221.3.204%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%7D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3EQt%20WebEngine%20does%20not%20crash%2C%20but%20the%20screen%20remains%20white%20with%20no%20rendering%20output.%3C%2FP%3E%3CP%3EWhen%20running%20vulkaninfo%2C%20I%20received%20the%20following%20warning%3A%3C%2FP%3E%3CPRE%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3EWARNING%3C%2FSPAN%3E%3A%20%5BLoader%20Message%5D%20Code%20%3CSPAN%20class%3D%22%22%3E0%3C%2FSPAN%3E%20%3A%20loader_scanned_icd_add%3A%20Driver%20%2Fusr%2Flib%2Flibvulkan_VSI.so%3CSPAN%20class%3D%22%22%3E.1%3C%2FSPAN%3E%20supports%20Vulkan%20%3CSPAN%20class%3D%22%22%3E1.3%3C%2FSPAN%3E%2C%20but%20%3CSPAN%20class%3D%22%22%3Eonly%3C%2FSPAN%3E%20supports%20loader%20interface%20%3CSPAN%20class%3D%22%22%3Eversion%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E2.%3C%2FSPAN%3E%20Interface%20%3CSPAN%20class%3D%22%22%3Eversion%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E5%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Eor%3C%2FSPAN%3E%20newer%20required%20%3CSPAN%20class%3D%22%22%3Eto%3C%2FSPAN%3E%20support%20this%20%3CSPAN%20class%3D%22%22%3Eversion%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Eof%3C%2FSPAN%3E%20Vulkan%20(%3CSPAN%20class%3D%22%22%3EPolicy%3C%2FSPAN%3E%20%23LDP_DRIVER_7)%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3EPlease%20confirm%20whether%20the%20current%20Vulkan%20driver%20supports%20WebGPU%20functionality%2C%20or%20if%20an%20updated%20driver%20with%20loader%20interface%20version%205%20or%20newer%20is%20required.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2051653%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20WebGPU%20Vulkan%20Support%20on%20i.MX8MP%20(QtWebEngine%206.7.0)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2051653%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203368%22%20target%3D%22_blank%22%3E%40Manuel_Salas%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eeven%20with%20the%20flags%20you%20suggested%2C%20chromium%20is%20not%20able%20to%20see%20Vulkan%20and%20it%20reports%3C%2FP%3E%3CP%3EVulkan%3A%20Disabled%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ECan%20you%20double%20check%2C%20please%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2027706%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20WebGPU%20Vulkan%20Support%20on%20i.MX8MP%20(QtWebEngine%206.7.0)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027706%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F221375%22%20target%3D%22_blank%22%3E%40Aaronchou%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20hope%20you%20are%20doing%20very%20well.%3C%2FP%3E%0A%3CP%3EAs%20you%20can%20see%20on%20table%207%20of%20RN00210%20(Release%20Notes%20for%20LF6.6.52_2.2.0)%2C%20Vulkan%20GPU%20is%20supported%20on%20the%20i.MX8MP%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alejandro_Salas_0-1736875971039.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alejandro_Salas_0-1736875971039.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319541i8B6D3952935E9B56%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alejandro_Salas_0-1736875971039.png%22%20alt%3D%22Alejandro_Salas_0-1736875971039.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20am%20not%20sure%20what%20BSP%20you%20are%20using%2C%20please%20check%20the%20respective%20release%20notes%20for%20your%20BSP.%3C%2FP%3E%0A%3CP%3EAlso%2C%20you%20can%20try%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-css%22%3E%3CCODE%3E--enable-unsafe-webgpu%20--enable-features%3DVulkan%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESalas.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E