WebGPU Vulkan Support on i.MX8MP (QtWebEngine 6.7.0)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

WebGPU Vulkan Support on i.MX8MP (QtWebEngine 6.7.0)

1,595 次查看
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?

标记 (1)
0 项奖励
回复
4 回复数

1,033 次查看
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 项奖励
回复

1,570 次查看
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 项奖励
回复

604 次查看
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 项奖励
回复

1,395 次查看
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 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2027230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX8MP%20%E4%B8%8A%E7%9A%84%20WebGPU%20Vulkan%20%E6%94%AF%E6%8C%81%EF%BC%88QtWebEngine%206.7.0%EF%BC%89%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%9C%A8%20imx8mp-lpddr4-evk%20%E4%B8%8A%E5%AE%89%E8%A3%85%20QtWebEngine%206.7.0%3CBR%20%2F%3EQtWebEngine%20%E4%B8%AD%E7%9A%84%20Chromium%20%E5%B7%B2%E5%BC%80%E5%A7%8B%E6%94%AF%E6%8C%81%20WebGPU%E3%80%82%3CBR%20%2F%3E%E4%BD%86%E6%98%AF%EF%BC%8C%E5%BD%93%E6%88%91%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%E4%BB%A5%E4%B8%8B%E6%A0%87%E5%BF%97%EF%BC%9A%3CBR%20%2F%3E--enable-unsafe-webgpu%20--enable-vulkan%20--use-angle%3Dvulkan%20%E6%97%B6%EF%BC%8C%3CBR%20%2F%3EQtWebEngine%20%E4%BC%9A%E5%B4%A9%E6%BA%83%E3%80%82%3C%2FP%3E%3CP%3E%E6%98%AF%E5%9B%A0%E4%B8%BA%E7%94%B5%E8%B7%AF%E6%9D%BF%E6%94%AF%E6%8C%81%E5%8C%85%20Vulkan%20%E6%94%AF%E6%8C%81%E5%B0%9A%E6%9C%AA%E5%AE%8C%E5%85%A8%E5%AE%9E%E7%8E%B0%E5%90%97%EF%BC%9F%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%3E%E6%88%91%E5%B7%B2%E5%B0%86%E7%94%B5%E8%B7%AF%E6%9D%BF%E6%94%AF%E6%8C%81%E5%8C%85%E6%9B%B4%E6%96%B0%E4%B8%BA%E7%94%B5%E8%B7%AF%E6%9D%BF%E6%94%AF%E6%8C%81%E5%8C%85%206.12.3-lts%E3%80%82%3CBR%20%2F%3EWebGPU%20%E4%BB%8D%E7%84%B6%E6%97%A0%E6%B3%95%E5%B7%A5%E4%BD%9C%E3%80%82%3CBR%20%2F%3E%E6%88%91%E5%B7%B2%E7%BB%8F%E5%9C%A8%E8%AF%84%E8%AE%BA%E4%B8%AD%E5%8F%91%E8%A1%A8%E4%BA%86%E6%88%91%E7%9A%84%E7%9C%8B%E6%B3%95%E3%80%82%3CBR%20%2F%3E%E6%98%AF%E5%90%A6%E6%9C%89%E4%BB%BB%E4%BD%95%E6%9B%B4%E6%96%B0%EF%BC%9F%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%3E%E4%BD%A0%E5%A5%BD%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%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%E6%88%91%E5%B0%86%E6%88%91%E7%9A%84%E7%B3%BB%E7%BB%9F%E5%8D%87%E7%BA%A7%E5%88%B0%20%3CSTRONG%3E%E7%94%B5%E8%B7%AF%E6%9D%BF%E6%94%AF%E6%8C%81%E5%8C%85%206.12.3-lts%3C%2FSTRONG%3E%20%E5%B9%B6%E5%B0%9D%E8%AF%95%E5%90%AF%E7%94%A8%20WebGPU%20%E5%92%8C%20Vulkan%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E4%BD%BF%E7%94%A8%E7%9A%84%E5%90%AF%E5%8A%A8%E6%A0%87%E5%BF%97%3C%2FP%3E%3CPRE%20translate%3D%22no%22%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%3E%E6%88%91%E7%9A%84%20Vulkan%20ICD%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%EF%BC%88%2Fetc%2Fvulkan%2Ficd.d%2Fimx_icd.json%EF%BC%89%EF%BC%9A%3C%2FP%3E%3CPRE%20translate%3D%22no%22%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%20%E4%B8%8D%E4%BC%9A%E5%B4%A9%E6%BA%83%EF%BC%8C%E4%BD%86%E5%B1%8F%E5%B9%95%E4%BB%8D%E7%84%B6%E6%98%AF%E7%99%BD%E8%89%B2%E7%9A%84%EF%BC%8C%E6%B2%A1%E6%9C%89%E6%B8%B2%E6%9F%93%E8%BE%93%E5%87%BA%E3%80%82%3C%2FP%3E%3CP%3E%E8%BF%90%E8%A1%8C%20vulkaninfo%20%E6%97%B6%EF%BC%8C%E6%88%91%E6%94%B6%E5%88%B0%E4%BA%86%E4%BB%A5%E4%B8%8B%E8%AD%A6%E5%91%8A%EF%BC%9A%3C%2FP%3E%3CPRE%20translate%3D%22no%22%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%3E%E8%AF%B7%E7%A1%AE%E8%AE%A4%E5%BD%93%E5%89%8D%E7%9A%84%20Vulkan%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E6%98%AF%E5%90%A6%E6%94%AF%E6%8C%81%20WebGPU%20%E5%8A%9F%E8%83%BD%EF%BC%8C%E6%88%96%E8%80%85%E6%98%AF%E5%90%A6%E9%9C%80%E8%A6%81%E8%A3%85%E8%BD%BD%E7%A8%8B%E5%BA%8F%E7%95%8C%E9%9D%A2%E7%89%88%E6%9C%AC%E4%B8%BA%205%20%E6%88%96%E6%9B%B4%E6%96%B0%E7%9A%84%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E3%80%82%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%3E%E4%BD%A0%E5%A5%BD%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%3C%2FP%3E%3CP%3E%E5%8D%B3%E4%BD%BF%E4%BD%BF%E7%94%A8%E4%BA%86%E6%82%A8%E5%BB%BA%E8%AE%AE%E7%9A%84%E6%A0%87%E8%AE%B0%EF%BC%8CChromium%20%E4%B9%9F%E6%97%A0%E6%B3%95%E7%9C%8B%E5%88%B0%20Vulkan%EF%BC%8C%E5%B9%B6%E6%8A%A5%E5%91%8A%E8%AF%B4%3C%2FP%3E%3CP%3EVulkan%EF%BC%9A%E5%B7%B2%E7%A6%81%E7%94%A8%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E4%BD%A0%E8%83%BD%E5%86%8D%E6%A3%80%E6%9F%A5%E4%B8%80%E4%B8%8B%E5%90%97%EF%BC%9F%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%3E%E4%BD%A0%E5%A5%BD%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%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E5%B8%8C%E6%9C%9B%E4%BD%A0%E4%B8%80%E5%88%87%E9%83%BD%E5%A5%BD%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%AD%A3%E5%A6%82%E4%BD%A0%E5%9C%A8%20RN00210%20%E7%9A%84%E8%A1%A8%207%EF%BC%88LF6.6.52_2.2.0%20%E7%9A%84%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E%EF%BC%89%E4%B8%AD%E7%9C%8B%E5%88%B0%E7%9A%84%E9%82%A3%E6%A0%B7%EF%BC%8Ci.MX8MP%20%E6%94%AF%E6%8C%81%20Vulkan%20GPU%EF%BC%9A%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%3E%E6%88%91%E4%B8%8D%E7%A1%AE%E5%AE%9A%E4%BD%A0%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%E4%BB%80%E4%B9%88%E7%94%B5%E8%B7%AF%E6%9D%BF%E6%94%AF%E6%8C%81%E5%8C%85%EF%BC%8C%E8%AF%B7%E6%9F%A5%E7%9C%8B%E4%BD%A0%E7%9A%84%E7%94%B5%E8%B7%AF%E6%9D%BF%E6%94%AF%E6%8C%81%E5%8C%85%E7%9A%84%E7%9B%B8%E5%BA%94%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%AD%A4%E5%A4%96%EF%BC%8C%E4%BD%A0%E8%BF%98%E5%8F%AF%E4%BB%A5%E8%AF%95%E8%AF%95%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-css%22%3E%3CCODE%20translate%3D%22no%22%3E--enable-unsafe-webgpu%20--enable-features%3DVulkan%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%0A%3CP%3E%E8%90%A8%E6%8B%89%E6%96%AF%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E