Bug 105352

Summary: [r600g] OpenGL ES fails to start on RV730
Product: Mesa Reporter: Eugene <ken20001>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact: Default DRI bug account <dri-devel>
Severity: critical    
Priority: high CC: ken20001
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: full glxinfo output

Description Eugene 2018-03-05 22:58:27 UTC
Created attachment 137804 [details]
full glxinfo output

After upgrading to Kubuntu 18.04 (dev branch) I found OpenGL ES fails to start:

$ KWIN_COMPOSE=O2ES kwin_x11 --replace
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setWindow: Painter not active
QPainter::setClipRect: Painter not active
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setClipRect: Painter not active
QPainter::drawRects: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setBrush: Painter not active
QPainter::setPen: Painter not active
QPainter::drawRects: Painter not active
QPainter::restore: Unbalanced save/restore
OpenGL vendor string:                   X.Org
OpenGL renderer string:                 AMD RV730 (DRM 2.50.0 / 4.15.0-10-generic, LLVM 5.0.1)
OpenGL version string:                  OpenGL ES 3.0 Mesa 18.0.0-rc4
OpenGL shading language version string: OpenGL ES GLSL ES 3.00
Driver:                                 R600G
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           18.0
X server version:                       1.19.6
Linux kernel version:                   4.15
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kf5.kcoreaddons.desktopparser: Property type "Url" is not a known QVariant type. Found while parsing property definition for "X-KWin-Video-Url" in "/usr/share/kservicetypes5/kwineffect.desktop"
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1757, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1759, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1760, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1761, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1762, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1763, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1767, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1797, resource id: 65011748, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1798, resource id: 65011748, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1815, resource id: 52428850, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1817, resource id: 52428850, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1818, resource id: 52428850, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1825, resource id: 46137350, major code: 42 (SetInputFocus), minor code: 0
QXcbConnection: XCB error: 8 (BadMatch), sequence: 2384, resource id: 46137350, major code: 42 (SetInputFocus), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 2452, resource id: 52428854, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 2454, resource id: 52428854, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2455, resource id: 52428854, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 4657, resource id: 65011772, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 4725, resource id: 65011776, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 4752, resource id: 65011780, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 4784, resource id: 65011784, major code: 18 (ChangeProperty), minor code: 0
OpenGL vendor string:                   X.Org
OpenGL renderer string:                 AMD RV730 (DRM 2.50.0 / 4.15.0-10-generic, LLVM 5.0.1)
OpenGL version string:                  OpenGL ES 3.0 Mesa 18.0.0-rc4
OpenGL shading language version string: OpenGL ES GLSL ES 3.00
Driver:                                 R600G
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           18.0
X server version:                       1.19.6
Linux kernel version:                   4.15
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
BlurConfig::instance called after the first use - ignoring
OpenGL vendor string:                   X.Org
OpenGL renderer string:                 AMD RV730 (DRM 2.50.0 / 4.15.0-10-generic, LLVM 5.0.1)
OpenGL version string:                  OpenGL ES 3.0 Mesa 18.0.0-rc4
OpenGL shading language version string: OpenGL ES GLSL ES 3.00
Driver:                                 R600G
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           18.0
X server version:                       1.19.6
Linux kernel version:                   4.15
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9136, resource id: 65011839, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9140, resource id: 65011848, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9144, resource id: 65011852, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9148, resource id: 65011856, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9152, resource id: 65011860, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9156, resource id: 65011864, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9160, resource id: 65011868, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9282, resource id: 62959044, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9292, resource id: 62959051, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 9293, resource id: 62959051, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9302, resource id: 62959054, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 9303, resource id: 62959054, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 9312, resource id: 62959191, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 9313, resource id: 62959191, major code: 14 (GetGeometry), minor code: 0
BlurConfig::instance called after the first use - ignoring
OpenGL vendor string:                   X.Org
OpenGL renderer string:                 AMD RV730 (DRM 2.50.0 / 4.15.0-10-generic, LLVM 5.0.1)
OpenGL version string:                  OpenGL ES 3.0 Mesa 18.0.0-rc4
OpenGL shading language version string: OpenGL ES GLSL ES 3.00
Driver:                                 R600G
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           18.0
X server version:                       1.19.6
Linux kernel version:                   4.15
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
QXcbConnection: XCB error: 3 (BadWindow), sequence: 10555, resource id: 65011910, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 8 (BadMatch), sequence: 10658, resource id: 46137350, major code: 42 (SetInputFocus), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11332, resource id: 65011927, major code: 18 (ChangeProperty), minor code: 0
BlurConfig::instance called after the first use - ignoring
OpenGL vendor string:                   X.Org
OpenGL renderer string:                 AMD RV730 (DRM 2.50.0 / 4.15.0-10-generic, LLVM 5.0.1)
OpenGL version string:                  OpenGL ES 3.0 Mesa 18.0.0-rc4
OpenGL shading language version string: OpenGL ES GLSL ES 3.00
Driver:                                 R600G
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           18.0
X server version:                       1.19.6
Linux kernel version:                   4.15
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11699, resource id: 81788931, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 12898, resource id: 65011954, major code: 18 (ChangeProperty), minor code: 0
Killed

Additional info

Kubuntu 18.04 x64
Linux 4.15.0-10-generic
xserver-xorg 7.7+19ubuntu5

$ glxinfo | grep -i version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Version: 18.0.0
    Max core profile version: 3.3
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.0.0-rc4
OpenGL core profile shading language version string: 3.30
OpenGL version string: 3.0 Mesa 18.0.0-rc4
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.0.0-rc4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
Comment 1 Michel Dänzer 2018-03-06 09:04:09 UTC
Does it run if you set the environment variable allow_rgb10_configs=false for it? If so, it's probably a kwin bug, not handling 10 bit per component colour format configs correctly.
Comment 2 Eugene 2018-03-06 10:25:58 UTC
No, it is not run like following:

$ KWIN_COMPOSE=O2ES allow_rgb10_configs=false kwin_x11 --replace           
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setWindow: Painter not active
QPainter::setClipRect: Painter not active
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setClipRect: Painter not active
QPainter::drawRects: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setBrush: Painter not active
QPainter::setPen: Painter not active
QPainter::drawRects: Painter not active
QPainter::restore: Unbalanced save/restore
ATTENTION: default value of option allow_rgb10_configs overridden by environment.
OpenGL vendor string:                   X.Org
OpenGL renderer string:                 AMD RV730 (DRM 2.50.0 / 4.15.0-10-generic, LLVM 5.0.1)
OpenGL version string:                  OpenGL ES 3.0 Mesa 18.0.0-rc4
OpenGL shading language version string: OpenGL ES GLSL ES 3.00
Driver:                                 R600G
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           18.0
X server version:                       1.19.6
Linux kernel version:                   4.15
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kf5.kcoreaddons.desktopparser: Property type "Url" is not a known QVariant type. Found while parsing property definition for "X-KWin-Video-Url" in "/usr/share/kservicetypes5/kwineffect.desktop"
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2053, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2055, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2056, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2057, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2058, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2059, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2063, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2065, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2066, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2067, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2068, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2069, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 2099, resource id: 79691820, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 4687, resource id: 79691853, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 4691, resource id: 79691857, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 4695, resource id: 79691861, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 4699, resource id: 79691865, major code: 18 (ChangeProperty), minor code: 0
OpenGL vendor string:                   X.Org
OpenGL renderer string:                 AMD RV730 (DRM 2.50.0 / 4.15.0-10-generic, LLVM 5.0.1)
OpenGL version string:                  OpenGL ES 3.0 Mesa 18.0.0-rc4
OpenGL shading language version string: OpenGL ES GLSL ES 3.00
Driver:                                 R600G
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           18.0
X server version:                       1.19.6
Linux kernel version:                   4.15
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11383, resource id: 79691898, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11387, resource id: 79691902, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11391, resource id: 79691906, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11397, resource id: 79691910, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11401, resource id: 79691914, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11405, resource id: 79691918, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11409, resource id: 79691922, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11413, resource id: 79691926, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11417, resource id: 79691930, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11423, resource id: 79691934, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11427, resource id: 79691938, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11431, resource id: 79691942, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11484, resource id: 79691946, major code: 18 (ChangeProperty), minor code: 0
BlurConfig::instance called after the first use - ignoring
OpenGL vendor string:                   X.Org
OpenGL renderer string:                 AMD RV730 (DRM 2.50.0 / 4.15.0-10-generic, LLVM 5.0.1)
OpenGL version string:                  OpenGL ES 3.0 Mesa 18.0.0-rc4
OpenGL shading language version string: OpenGL ES GLSL ES 3.00
Driver:                                 R600G
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           18.0
X server version:                       1.19.6
Linux kernel version:                   4.15
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
QXcbConnection: XCB error: 3 (BadWindow), sequence: 13196, resource id: 79691996, major code: 18 (ChangeProperty), minor code: 0
BlurConfig::instance called after the first use - ignoring
Comment 3 GitLab Migration User 2019-09-18 19:25:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/632.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.