I just found out that if I try in Wayland and force qmlscene to actually use Wayland mode (using QT_QPA_PLATFORM=wayland), then it does not happen. It only happens when it runs under Xwayland. So it seems to be X/DRI3 issue only. Smaller area for further debugging...