Bug 477867

Summary: plasma6 image distortion on amd graphic cards
Product: [Plasma] kwin Reporter: ahmedmoselhi55
Component: eglAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: major CC: nate, vlad.zahorodnii, xaver.hugl
Priority: NOR Keywords: qt6
Version First Reported In: 5.90.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: distortion

Description ahmedmoselhi55 2023-12-01 21:02:19 UTC
Created attachment 163727 [details]
distortion

SUMMARY

I have kde plasma 6.0 beta 1 (wayland) installed on laptop with two graphic cards (Intel hd 620 integrated - AMD Radeon R7 M340 dedicated)  when I run application on dedicated amd graphics the picture has a lot of distortion for few seconds then everything works normally.

STEPS TO REPRODUCE
1. open any app with DRI_PRIME=1 passed
2. distortion happens
3. app works normally afterwards

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.0

ADDITIONAL INFORMATION
glxinfo -B output:

name of display: :1
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon R7 M340 (radeonsi, iceland, LLVM 17.0.5, DRM 3.54, 6.6.2-1-default) (0x6900)
    Version: 24.0.0
    Accelerated: yes
    Video memory: 4096MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 3892 MB, largest block: 3892 MB
    VBO free aux. memory - total: 7514 MB, largest block: 7514 MB
    Texture free memory - total: 3892 MB, largest block: 3892 MB
    Texture free aux. memory - total: 7514 MB, largest block: 7514 MB
    Renderbuffer free memory - total: 3892 MB, largest block: 3892 MB
    Renderbuffer free aux. memory - total: 7514 MB, largest block: 7514 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 4096 MB
    Total available memory: 12048 MB
    Currently available dedicated video memory: 3892 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon R7 M340 (radeonsi, iceland, LLVM 17.0.5, DRM 3.54, 6.6.2-1-default)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.0-devel
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.0-devel
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.0.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

attached an image for distortion.
Comment 1 Zamundaaa 2023-12-13 17:22:19 UTC
That looks like a Mesa issue. Please report this to https://gitlab.freedesktop.org/mesa/mesa/-/issues