After upgraded to latest mesa, this issue is fixed. Now it works fine on 5.10.0-oem or 5.13.0-oem kernel. Thanks!
$ DRI_PRIME=1 glxgears -info Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. GL_RENDERER = Mesa Intel(R) Graphics (RKL GT1) GL_VERSION = 4.6 (Compatibility Profile) Mesa 21.0.3 GL_VENDOR = Intel GL_EXTENSIONS = GL_ARB_multisample ... VisualID 1337, 0x539 305 frames in 5.0 seconds = 60.916 FPS 300 frames in 5.0 seconds = 59.999 FPS 300 frames in 5.0 seconds = 59.986 FPS $ glxgears -info Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. GL_RENDERER = AMD Radeon (TM) Pro WX 3200 Series (POLARIS12, DRM 3.40.0, 5.10.0-1038-oem, LLVM 12.0.0) GL_VERSION = 4.6 (Compatibility Profile) Mesa 21.0.3 GL_VENDOR = AMD GL_EXTENSIONS = GL_ARB_multisample ... VisualID 1337, 0x539 350 frames in 5.0 seconds = 69.915 FPS 300 frames in 5.0 seconds = 59.959 FPS 300 frames in 5.0 seconds = 59.979 FPS ** Tags removed: verification-needed-focal ** Tags added: verification-done-focal ** Changed in: oem-priority Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1937988 Title: The image is distorted while use iGPU rendering and output via AMD GPU To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/1937988/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp