[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2021-11-06 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=360033

kde@grau.net changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |WORKSFORME
 Status|NEEDSINFO   |RESOLVED

--- Comment #53 from kde@grau.net ---
User cannot reproduce the issue, as hardware has been upgraded and new hardware
doesn't expose the reported issue.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2021-11-06 Thread Sergey
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #52 from Sergey  ---
(In reply to kde.org from comment #51)
> This issue report is quite old. Can you please confirm, that it still
> persists with KDE 5.23?

nVidia has stopped supporting such old generation of GPUs in the kernel. So, I
decided to upgrade GPU and I no longer have such problem and I also don't have
to use suggested patch above. But I didn't try to use old GPU with opensource
video driver.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2021-11-06 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=360033

kde@grau.net changed:

   What|Removed |Added

 CC||kde@grau.net
 Status|REPORTED|NEEDSINFO
 Resolution|--- |WAITINGFORINFO

--- Comment #51 from kde@grau.net ---
This issue report is quite old. Can you please confirm, that it still persists
with KDE 5.23?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-11-24 Thread Leslie Zhai
https://bugs.kde.org/show_bug.cgi?id=360033

Leslie Zhai  changed:

   What|Removed |Added

 CC||xiangzha...@gmail.com

--- Comment #50 from Leslie Zhai  ---
> kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" 
> -> falling back to string

why kcoreaddons/src/lib/plugin/desktopfileparser.cpp can *NOT* find key, the
size of m_definitions is always ZERO!?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-11-05 Thread Martin Gräßlin
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #49 from Martin Gräßlin  ---
@Cedric: you are experiencing a crash which is not the same problem as original
described in this bug report. Please report a new bug with the backtrace of the
crash.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-11-05 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #48 from k...@hottier.com ---
Some additional debug informations with QT_LOGGING_RULES="*.debug=true",
It seems that at a certain moment we loose the X11 connection.

I do not know if I should open a new bug report with this new informations, or
if this thread is the right one.


QT_LOGGING_RULES="*.debug=true" kwin_x11 --replace

qt.qpa.screen: Output VGA-0 is not connected
qt.qpa.screen: Output DVI-I-0 is not connected
qt.qpa.screen: Output TV-0 is not connected
qt.qpa.screen: adding QXcbScreen(0xc2a240, name="DVI-I-1",
geometry=1280x1024+0+0, availableGeometry=1280x997+0+0, devicePixelRatio=1.0,
logicalDpi=QPair(85.1,86.1), physicalSize=376.0x301.0mm, screenNumber=0,
virtualSize=1280x1024 (1280.0x1024.0mm),
orientation=Qt::ScreenOrientation(LandscapeOrientation), depth=24,
refreshRate=60.0, root=252, windowManagerName="KWin") (Primary: true )
qt.qpa.screen: primary output is "DVI-I-1"
qt.qpa.input.devices: XInput version 2.2 is available and Qt supports 2.2 or
greater
qt.qpa.input.devices: input device  Virtual core XTEST pointer ID 4
qt.qpa.input.devices:has 10 buttons
qt.qpa.input.devices:has valuator "Rel X" recognized? true
qt.qpa.input.devices:has valuator "Rel Y" recognized? true
qt.qpa.input.devices:it's a scrolling device
qt.qpa.input.devices: input device  USB Optical Mouse ID 10
qt.qpa.input.devices:has 7 buttons
qt.qpa.input.devices:has valuator "Rel X" recognized? true
qt.qpa.input.devices:has valuator "Rel Y" recognized? true
qt.qpa.input.devices:has valuator "Rel Horiz Scroll" recognized? true
qt.qpa.input.devices:has valuator "Rel Vert Scroll" recognized? true
qt.qpa.input.devices:it's a scrolling device
qt.xcb.glintegration: Choosing xcb gl-integration based on following priority
 ("xcb_glx", "xcb_egl")
qt.xcb.glintegration: Xcb GLX gl-integration created
qt.xcb.glintegration: Xcb GLX gl-integration successfully initialized
kwin_platform_x11_standalone: Has XInput support 2 . 2
kwin_xkbcommon: XKB: created compose table from locale fr_FR.UTF-8 with path
/usr/share/X11/locale/en_US.UTF-8/Compose
kwin_xkbcommon: XKB: Compiling from RMLVO: rules 'evdev', model 'pc104', layout
'us', variant '(null)', options ''
kwin_xkbcommon: XKB: Compiling from KcCGST: keycodes 'evdev+aliases(qwerty)',
types 'complete', compat 'complete', symbols 'pc+us+inet(evdev)'
kwin_xkbcommon: XKB: Compiling xkb_keycodes "(unnamed)"
kwin_xkbcommon: XKB: Compiling xkb_types "(unnamed)"
kwin_xkbcommon: XKB: Compiling xkb_compatibility "(unnamed)"
kwin_xkbcommon: XKB: The "group" statement in compat is unsupported; Ignored
kwin_xkbcommon: XKB: The "group" statement in compat is unsupported; Ignored
kwin_xkbcommon: XKB: The "group" statement in compat is unsupported; Ignored
kwin_xkbcommon: XKB: The "allowExplicit" field in indicator statements is
unsupported; Ignored   
kwin_xkbcommon: XKB: The "allowExplicit" field in indicator statements is
unsupported; Ignored   
kwin_xkbcommon: XKB: The "allowExplicit" field in indicator statements is
unsupported; Ignored   
kwin_xkbcommon: XKB: The "allowExplicit" field in indicator statements is
unsupported; Ignored   
kwin_xkbcommon: XKB: The "indicatorDrivesKeyboard" field in indicator
statements is unsupported; Ignored 
kwin_xkbcommon: XKB: The "allowExplicit" field in indicator statements is
unsupported; Ignored   
kwin_xkbcommon: XKB: Indicator name "Shift Lock" was not declared in the
keycodes section; Adding new indicator  
kwin_xkbcommon: XKB: Indicator name "Group 2" was not declared in the keycodes
section; Adding new indicator 
kwin_xkbcommon: XKB: Indicator name "Mouse Keys" was not declared in the
keycodes section; Adding new indicator
kwin_xkbcommon: XKB: Compiling xkb_symbols "(unnamed)"

kwin_core: Extensions: shape: 0x "11"  composite: 0x "4"  render: 0x "b" 
fixes: 0x "50"  randr: 0x "14"  sync: 0x "31"  damage: 0x  "11"
kwin_decorations: Trying to load decoration plugin: 
"/usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kdecoration2/breezedecoration.so"
org.kde.kwindowsystem: Loaded plugin
"/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemX11Plugin.so"
for platform "xcb"
kwin_core: User timestamp, ASN: 314465
kwin_core: User timestamp, final: 'ID: 52428804 ;WMCLASS: "systemsettings" :
"systemsettings5" ;Caption: "Configuration du système" ' : 314465
kwin_core: User timestamp, ASN: 93001
kwin_core: User timestamp, final: 'ID: 44040196 ;WMCLASS: "kate" : "kate"
;Caption: "kwin_supportInformation.txt  — Kate" ' : 93001
kwin_core: User timestamp, ASN: 

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-11-04 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #47 from k...@hottier.com ---
Hello,

I have approximatively the same hardware than the one described in this bug.

When I try to activate the OpenGL compositor, kwin becomes so slow that it is
not usable anymore, the time between a mouse button click and the click
handling is more than one minute. Xrender works fine. 

As far as I understood m00nraker and Sergei succeed to enable OpenGl compositor
by disabling the selftest as described here :
https://bugs.kde.org/show_bug.cgi?id=360033#c28

Unfortunately, it does not change anything for me as the test was successful.

here is some output : (I tried with Kwin 5.8.2 too)

qdbus org.kde.KWin /KWin supportInformation
==

Version
===
KWin version: 5.8.0
Qt Version: 5.6.1
Qt compile version: 5.6.1
XCB compile version: 1.12

Operation Mode: X11 only

Build Options
=
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11804000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==
Plugin: org.kde.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 10
font: DejaVu Sans,10,-1,5,50,0,0,0,0,0
smallSpacing: 2
largeSpacing: 10

Options
===
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 1666
refreshRate: 0
vBlankTime: 600
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 99
glPlatformInterface: 1
windowsBlockCompositing: true

Screen Edges

desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
===
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
-
Name: DVI-I-1
Geometry: 0,0,1280x1024
Refresh Rate: 60.0197


Compositing
===
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 6500/PCIe/SSE2
OpenGL version string: 2.1.2 NVIDIA 304.131
OpenGL platform interface: GLX
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class: NV40/G70
OpenGL version: 2.1.2
GLSL version: 1.20
X server version: 1.18.4
Linux kernel version: 4.6
Direct rendering: Requires strict binding: no
GLSL shaders:  limited
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---
blur

Currently Active Effects:
-
blur

Effect Settings:

blur:
blurRadius: 12
cacheTexture: true


kwin_x11 --replace

OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: GeForce 6500/PCIe/SSE2
OpenGL version string:  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class:  NV40/G70
OpenGL version: 

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-09-12 Thread Martin Gräßlin via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #46 from Martin Gräßlin  ---
@Jason: you are experiencing bug #367766

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-09-09 Thread Jason A . Donenfeld via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

Jason A. Donenfeld  changed:

   What|Removed |Added

  Attachment #97965|0   |1
is obsolete||
 CC||ja...@zx2c4.com

--- Comment #45 from Jason A. Donenfeld  ---
Created attachment 101005
  --> https://bugs.kde.org/attachment.cgi?id=101005=edit
Skip Self Tests

This is still a problem for me:

OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: Quadro M2000M/PCIe/SSE2
OpenGL version string:  3.1.0 NVIDIA 370.23
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 370.23
GPU class:  Unknown
OpenGL version: 3.1
GLSL version:   1.40
X server version:   1.18.4
Linux kernel version:   4.7.3
Requires strict binding:no
GLSL shaders:   yes
Texture NPOT support:   yes
Virtual Machine:no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1755, resource id: 611,
major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1756, resource id: 611,
major code: 14 (GetGeometry), minor code: 0

I'm attaching here my patch that fixes this issue.

Skipping the selftests generally seems like a horrible idea, but things appear
to work perfectly when doing so. So... what's the deal? Are the self tests
bogus? Is there a driver problem? A config problem?

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-08-23 Thread Maik via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

Maik  changed:

   What|Removed |Added

 CC||k...@hoffmanndigital.de

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-06-23 Thread via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

k...@hottier.com changed:

   What|Removed |Added

 CC||k...@hottier.com

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-06-01 Thread Michael Palimaka via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

Michael Palimaka  changed:

   What|Removed |Added

 CC||kensing...@gentoo.org

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-06-01 Thread aka google01103
https://bugs.kde.org/show_bug.cgi?id=360033

bill p. (aka google01103)  changed:

   What|Removed |Added

 CC||dweeble01...@gmail.com

--- Comment #44 from bill p. (aka google01103)  ---
just a note, the patch posted in comment #28 
works per
https://forum.kde.org/viewtopic.php?f=111=127733=357753=lastpost#p357753

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-05-31 Thread Sergey via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #43 from Sergey  ---
After applying patch from comment
https://bugs.kde.org/show_bug.cgi?id=360033#c28 compositing has started to work
like in good old times of KDE4.

$ kwin_x11 --replace
OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: GeForce 7600 GS/PCIe/SSE2
OpenGL version string:  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class:  NV40/G70
OpenGL version: 2.1.2
GLSL version:   1.20
X server version:   1.17.4
Linux kernel version:   3.18.34
Requires strict binding:no
GLSL shaders:   limited
Texture NPOT support:   yes
Virtual Machine:no
Module 'org.kde.kwin.decoration' does not contain a module identifier directive
- it cannot be protected from external registrations.
QXcbConnection: XCB error: 8 (BadMatch), sequence: 2083, resource id: 65011718,
major code: 42 (SetInputFocus), minor code: 0
OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: GeForce 7600 GS/PCIe/SSE2
OpenGL version string:  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class:  NV40/G70
OpenGL version: 2.1.2
GLSL version:   1.20
X server version:   1.17.4
Linux kernel version:   3.18.34
Requires strict binding:no
GLSL shaders:   limited
Texture NPOT support:   yes
Virtual Machine:no
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2473, resource id: 0,
major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2483, resource id: 0,
major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2484, resource id: 0,
major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2485, resource id: 0,
major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2486, resource id: 0,
major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2487, resource id: 0,
major code: 14 (GetGeometry), minor code: 0
QMetaProperty::read: Unable to handle unregistered datatype
'KWayland::Server::SurfaceInterface*' for property 'KWin::Toplevel::surface'

$ qdbus org.kde.KWin /KWin supportInformation
KWin Support Information:
The following information should be used when requesting support on e.g.
http://forum.kde.org.
It provides information about the currently running instance, which options are
used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a
paste bin service
like http://paste.kde.org instead of pasting into support threads.

==

Version
===
KWin version: 5.6.4
Qt Version: 5.5.1
Qt compile version: 5.5.1
XCB compile version: 1.11.1

Operation Mode: X11 only

Build Options
=
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11704000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==
Plugin: org.kde.kwin.aurorae
Theme: __aurorae__svg__my-glowglass-lite-black
Blur: 1
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 14
font: DejaVu Sans,12,-1,5,50,0,0,0,0,0
smallSpacing: 3
largeSpacing: 14

Options
===
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-05-31 Thread Sergey via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #42 from Sergey  ---
I have the latest x11-drivers/nvidia-drivers-304.131-r4 for this card (Geforce
7 series). Also, I have a glitch of incorrect placement of Plasma startup
window right after login from SDDM. It disappears right after start of Plasma
but it's placement is incorrect. It should be in the center, but it's in the
top-left corner. I'm talking about this window (in the center on the video):
https://youtu.be/Y1NAZGsQtjQ?t=2m11s
Maybe it will help to investigate a problem.

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-05-31 Thread Sergey via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #41 from Sergey  ---
My hardware is the following:
CPU: Phenom II X4 810
GPU: NVIDIA GeForce 7600 GS/PCIe/SSE2 512MB
RAM: 12GB

I had no problems in KDE4. Games like OpenRA are still working in Plasma 5, so
it's not a problem of video card/drivers. 
[code]
$ mv ~/.config/kwinrc ~/.config/kwinrc.bak

$ kwin_x11 --replace
OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: GeForce 7600 GS/PCIe/SSE2
OpenGL version string:  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class:  NV40/G70
OpenGL version: 2.1.2
GLSL version:   1.20
X server version:   1.17.4
Linux kernel version:   3.18.34
Requires strict binding:no
GLSL shaders:   limited
Texture NPOT support:   yes
Virtual Machine:no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646,
0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256,
0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527,
0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172,
0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 710, resource id: 1185,
major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 711, resource id: 1185,
major code: 14 (GetGeometry), minor code: 0 
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1772, resource id: 65011718,
major code: 42 (SetInputFocus), minor code: 0   
OpenGL vendor string:   NVIDIA Corporation  
OpenGL renderer string: GeForce 7600 GS/PCIe/SSE2   
OpenGL version string:  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler 
Driver: NVIDIA  
Driver version: 304.131 
GPU class:  NV40/G70
OpenGL version: 2.1.2   
GLSL version:   1.20
X server version:   1.17.4
Linux kernel version:   3.18.34
Requires strict binding:no
GLSL shaders:   limited
Texture NPOT support:   yes
Virtual Machine:no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected 

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-05-31 Thread Sergey via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

Sergey  changed:

   What|Removed |Added

 CC||energumenos...@gmail.com

--- Comment #40 from Sergey  ---
I have the same problem with compositor not working on the following versions
of Plasma: 5.5.5-r1 and 5.6.4.

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-04-07 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #39 from m00nraker  ---
(In reply to Torsten Bielen from comment #38)
> I just installed an update of the nvidia driver (OpenSuse Leap) and the
> problem is solved. I enabled openGL (2.0/3.1) in the Compositor's
> configuration page and the system doesn't switch back to XRender.
> 
> rpm -qa | grep nvidia
> 
> nvidia-gfxG04-kmp-default-361.42_k4.1.12_1-21.1.x86_64
> x11-video-nvidiaG04-361.42-21.1.x86_64
> nvidia-glG04-361.42-21.1.x86_64
> nvidia-computeG04-361.42-21.1.x86_64

@Thorsten Bielen
No, you are wrong. This bug isn't fixed.

In this bug report we are talking about compositing with the NVidia GeForce 7
series. The current driver version is 304.131, which is up-to-date. It's the
nvidia-glG02 line. Look first post.
But your driver is the nvidia-GL04 line, which is different and does not
support the legacy 7 series. So you don't have a legacy card, but a newer one,
which has nothing to do with this br.

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-04-07 Thread Torsten Bielen via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #38 from Torsten Bielen  ---
I just installed an update of the nvidia driver (OpenSuse Leap) and the problem
is solved. I enabled openGL (2.0/3.1) in the Compositor's configuration page
and the system doesn't switch back to XRender.

rpm -qa | grep nvidia

nvidia-gfxG04-kmp-default-361.42_k4.1.12_1-21.1.x86_64
x11-video-nvidiaG04-361.42-21.1.x86_64
nvidia-glG04-361.42-21.1.x86_64
nvidia-computeG04-361.42-21.1.x86_64

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-31 Thread Torsten Bielen via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

Torsten Bielen  changed:

   What|Removed |Added

 CC||bie...@gmx.de

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-20 Thread EllisIsPfroh via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #29 from EllisIsPfroh  ---
@Thomas Lübking: O.K. heard this loud & will remember it. Thanks!

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-20 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #31 from m00nraker  ---
@Thomas

I can't apply your diff (file attached).

git apply __scene_opengl.diff
error: Anwendung des Patches fehlgeschlagen: scene_opengl.cpp:1040
error: scene_opengl.cpp: Patch konnte nicht angewendet werden

from sources/kwin/scene_opengl.cpp:

   // It is not legal to not have a vertex array object bound in a core context
if (!GLPlatform::instance()->isGLES() &&
hasGLExtension(QByteArrayLiteral("GL_ARB_vertex_array_object"))) {
glGenVertexArrays(1, );
glBindVertexArray(vao);
}

Line 1040: glBindVertexArray(vao);

Don't know how to proceed. Please help. Do I have a different file
scene_opengl.cpp?

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-19 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #37 from m00nraker  ---
Ok, vanilla, only __invite_fbo_red.diff applied:

pass 1-4 false

kwin_x11 --replace
QXcbConnection: XCB error: 8 (BadMatch), sequence: 806, resource id: 67108869,
major code: 42 (SetInputFocus), minor code: 0
OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: GeForce Go 7950 GTX/PCIe/SSE2
OpenGL version string:  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class:  NV40/G70
OpenGL version: 2.1.2
GLSL version:   1.20
X server version:   1.17.2
Linux kernel version:   4.1.15
Requires strict binding:no
GLSL shaders:   limited
Texture NPOT support:   yes
Virtual Machine:no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
pass 1 false
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
pass 2 false
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
pass 3 false
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
pass 4 false
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646,
0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256,
0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527,
0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172,
0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 912, resource id: 579,
major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 913, resource id: 579,
major code: 14 (GetGeometry), minor code: 0

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-19 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #36 from Thomas Lübking  ---
Created attachment 97987
  --> https://bugs.kde.org/attachment.cgi?id=97987=edit
Invite the right order

No, all fine.

Ok, let's try an older theory and invite the GPU to write before read (though
i've not much hope - this might account for "exotic" chips, but the blob should
really handle this correctly)

The attached patch is the only one you need on top of the vanilla code and when
it says something like "pass 1 true" or at least thinks the texture is pink,
we'll have made some progress (it will fail later on anyway because i did't
want to copy the lines a dozen times for no reason ;-)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-19 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #35 from m00nraker  ---
Attention: Mistake detected
Thomas, I just have realized that I made a mistake in #comment14, injecting the
debug outputline (blacklist? ...). That caused that one debug output string
(blacklist? xx xx) is wrong. I don't know, if that is important. So I started
from scratch and applied all patches again. Here my summary:

1. I downloaded sourcecode from git to start from scratch

2. comment11: I applied "__gl_blacklist.diff"

   kwin_x11 --replace:
   kwin_core: ShaderManager self test failed
   kwin_core: Failed to initialize compositing, compositing disabled

3. comment14: injecting your debug output code into glxbackend.cpp
   Line: qDebug() << "blacklist?" << blacklistRobustness <<
hasGLExtension(QByteArrayLiteral("GLX_ARB_create_context"));

   kwin_x11 --replace output: 

   blacklist? false true (like before)
   kwin_core: ShaderManager self test failed
   kwin_core: Failed to initialize compositing, compositing disabled

4. comment18: downforcing the context

   export
KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context_robustness,GL_ARB_robustness,GL_EGL_robustness
 
   kwin_x11 --replace output:

   blacklist? true true (like before)
   kwin_core: ShaderManager self test failed
   kwin_core: Failed to initialize compositing, compositing disabled

5. comment20: legacy context creation

   export KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context
   kwin_x11 --replace output:

###   blacklist? true false (THIS HAS CHANGED, compare with comment21) 
   kwin_core: ShaderManager self test failed
   kwin_core: Failed to initialize compositing, compositing disabled

So the "blacklist? true false" output in step 5. is different from what I
posted in comment20 (legay context creation), because of my wrong injection of
the debug code from comment14.

Be aware, I started from scratch, but before step 1 I also applied your last
diff from comment34 (glReadPixels). Hope this doesn't matter.

6. Comment34: Last but not least the complete kwin_x11 --replace output
(without using "export KWIN_GL_EXT_BLACKLIST=..." in shell before):


kwin_x11 --replace

blacklist? false true
OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: GeForce Go 7950 GTX/PCIe/SSE2
OpenGL version string:  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class:  NV40/G70
OpenGL version: 2.1.2
GLSL version:   1.20
X server version:   1.17.2
Linux kernel version:   4.1.15
Requires strict binding:no
GLSL shaders:   limited
Texture NPOT support:   yes
Virtual Machine:no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646,
0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256,
0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527,
0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172,
0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 912, resource id: 579,
major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 913, resource id: 579,
major code: 14 (GetGeometry), minor code: 0

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-19 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #28 from Thomas Lübking  ---
@EllisIsPfroh
Please do not suggest this again.

paste.kde.org is in general *COMPLETELY* unsuited for bug data.
Lifetime there is limited to 1 year - if valuable information gets posted there
and someone looks up this bug afterwards it will be lost to him.



Unfortunately the nvidia settings seem nowhere suspicious to cause this.
Well, let's just try what happens if we skip the self-test (remember
SHIFT+Alt+F12 will suspend the compositor if you're presented w/ an unreadable
screen)


diff --git a/scene_opengl.cpp b/scene_opengl.cpp
index c81c2b8..18e3306 100644
--- a/scene_opengl.cpp
+++ b/scene_opengl.cpp
@@ -1040,7 +1040,7 @@ SceneOpenGL2::SceneOpenGL2(OpenGLBackend *backend,
QObject *parent)
 glBindVertexArray(vao);
 }

-if (!ShaderManager::instance()->selfTest()) {
+if (false && !ShaderManager::instance()->selfTest()) {
 qCCritical(KWIN_CORE) << "ShaderManager self test failed";
 init_ok = false;
 return;

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-19 Thread EllisIsPfroh via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

EllisIsPfroh  changed:

   What|Removed |Added

 CC||ellisistf...@yahoo.de

--- Comment #27 from EllisIsPfroh  ---
@moonraker: you can also use https://paste.kde.org – this wouldn't be
shortliving on assumption.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-19 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #30 from m00nraker  ---
Created attachment 97961
  --> https://bugs.kde.org/attachment.cgi?id=97961=edit
patch to skill self-test

Failed to apply diff to scene_opengl.cpp
error: Anwendung des Patches fehlgeschlagen: scene_opengl.cpp:1040
error: scene_opengl.cpp: Patch konnte nicht angewendet werden

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-19 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #34 from Thomas Lübking  ---
Just copy from the web page, the browser should do "the right thing™"

Let's see whether glReadPixels reads "something" and just the painting fails
(you need to revert the skipping patch)


diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp
index 9a6b2da..048ab30 100644
--- a/libkwineffects/kwinglutils.cpp
+++ b/libkwineffects/kwinglutils.cpp
@@ -756,7 +756,7 @@ bool ShaderManager::selfTest()
 vbo->bindArrays();

 glViewport(0, 0, 32, 32);
-glClearColor(0, 0, 0, 0);
+glClearColor(1, 0, 1, 1);

 // Set up the projection matrix
 QMatrix4x4 matrix;

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-18 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

Thomas Lübking  changed:

   What|Removed |Added

  Attachment #97961|0   |1
is obsolete||

--- Comment #32 from Thomas Lübking  ---
Created attachment 97965
  --> https://bugs.kde.org/attachment.cgi?id=97965=edit
skip selftest

The problem is that you somehow html encode the patch (copying from the page
source?) ie eg. ">" becomes "" - and that oc. doesn't apply.

Try the attached patch (may be set off by 4/5 lines, but that's no blocker)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-18 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #33 from m00nraker  ---
(In reply to Thomas Lübking from comment #32)
> The problem is that you somehow html encode the patch (copying from the page
> source?) ie eg. ">" becomes "" - and that oc. doesn't apply.
> 
> Try the attached patch (may be set off by 4/5 lines, but that's no blocker)

Exactly, you're right. I copy/paste your code from the page source to a text
file. Don't know how to do it better... sorry for wasting your time with a nub
like me.

But some good news: after applying your "skip selftest" patch compositing is
working now, just like in the old KDE SC 4 times. I think we now have to find
out, why the selftest fails for my configuration?! Your turn now ))) Thx.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-14 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #26 from m00nraker  ---
Comment #21 is Ok.
#22 to #24 is trash. Don't read ! Sry.

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-14 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #25 from m00nraker  ---
Created attachment 97903
  --> https://bugs.kde.org/attachment.cgi?id=97903=edit
nvidia-settings -q all

output
nvidia-settings -q all

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-14 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

m00nraker  changed:

   What|Removed |Added

  Attachment #97902|0   |1
is obsolete||

--- Comment #24 from m00nraker  ---
Comment on attachment 97902
  --> https://bugs.kde.org/attachment.cgi?id=97902
nvidia-settings -q all

wrong upload

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-14 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #23 from m00nraker  ---
Comment on attachment 97902
  --> https://bugs.kde.org/attachment.cgi?id=97902
nvidia-settings -q all

export GL_EXT_BLACKLIST=GLX_ARB_create_context

kwin_x11 --replace &  

[1] 3804
test@linux-gss9:~> QXcbConnection: XCB error: 8 (BadMatch), sequence: 820,
resource id: 69206021, major code: 42 (SetInputFocus), minor code: 0
blacklist? false true
OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: GeForce Go 7950 GTX/PCIe/SSE2
OpenGL version string:  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class:  NV40/G70
OpenGL version: 2.1.2
GLSL version:   1.20
X server version:   1.17.2
Linux kernel version:   4.1.15
Requires strict binding:no
GLSL shaders:   limited
Texture NPOT support:   yes
Virtual Machine:no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646,
0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256,
0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527,
0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172,
0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 926, resource id: 579,
major code: 3 (GetWindowAttributes), minor code: 0

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-14 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #22 from m00nraker  ---
Created attachment 97902
  --> https://bugs.kde.org/attachment.cgi?id=97902=edit
nvidia-settings -q all

output
nvidia-settings -q all

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-14 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #21 from m00nraker  ---
Thx for reply and working on that bug-report.
Fail again (blacklist? false true):

export KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context
kwin_x11 --replace &

QXcbConnection: XCB error: 8 (BadMatch), sequence: 820, resource id: 69206021,
major code: 42 (SetInputFocus), minor code: 0
blacklist? false true
OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: GeForce Go 7950 GTX/PCIe/SSE2
OpenGL version string:  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class:  NV40/G70
OpenGL version: 2.1.2
GLSL version:   1.20
X server version:   1.17.2
Linux kernel version:   4.1.15
Requires strict binding:no
GLSL shaders:   limited
Texture NPOT support:   yes
Virtual Machine:no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054,
1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646,
0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256,
0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527,
0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172,
0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 926, resource id: 579,
major code: 3 (GetWindowAttributes), minor code: 0

nvidia-settings -q all
Output in attached file nvidia-output.txt

Another thing:
After I applied your first patch, I injected the debug-output code directly
into glxbackend.cpp, as you suggested. To make sure that everything is ok,
could you maybe upload a complete diff-file for me to apply? (I'm confused
about the "...GlxBackend::initRenderingContext() return false;" in your debug
output code in comment #14). Do not forget that I'm not a software developer
and I haven't many experience in editing source code. So a complete diff file
would be the better choice for me, to make clear, that everything is as it
should be :-) Nevertheless I'm quite sure, that I did it right.

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-14 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #20 from Thomas Lübking  ---
Ok, despite the wrong output (the debug output should have been
GLX_ARB_create_context_robustness) is confusion, the problem is not related to
the robust contexts.

Since we now have the neat feature to blacklist stuff at will, let's try legacy
context creation.

export KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context
kwin_x11 --replace &

If that fails as well, please attach (do NOT post it ;-) the output of
"nvidia-settings -q all"


---
Sorry for the delay.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-08 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #19 from m00nraker  ---
export
KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context_robustness,GL_ARB_robustness,GL_EGL_robustness

kwin_x11 --replace &
..
blacklist? true true
kwin_core: Failed to initialize compositing, compositing disabled
..

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-08 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #18 from Thomas Lübking  ---
means that we successfully create a robust context, try downforcing that:

export
KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context_robustness,GL_ARB_robustness,GL_EGL_robustness
kwin_x11 --replace &

(you can ignore the debug out)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-08 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #17 from m00nraker  ---
(In reply to Thomas Lübking from comment #16)
> bugzilla.
> you probably copied in non-printable characters or similar.
> Just edit glxbackend.cpp w/ your favourite text editor and inject the "+"
> prefixed line (just w/o the plus)
> Otherwise I'll attach a patch *file* later on ;-)

@Thomas:
> Let's assume you installed kwin overriding the actual installation (/usr?) 
> ... 

No, I don't have a mixed setup and I haven't overwritten my actual Plasma5
setup in /usr. According to the wiki I configured a different location
(/opt/kde/{install, build, sources, logs}). To start a new compiled Plasma5
from git I used SSDM with a new xsession file for Plasma5Git. So I'm sure that
I started the right patched version of kwin with your __gl_blacklist.diff file.

Problem now:
Something wrong with the new diff-file for your other patch. So I injected it
manually and gave it another try:

kwin_x11 --replace

QXcbConnection: XCB error: 8 (BadMatch), sequence: 1048, resource id:
104857605, major code: 42 (SetInputFocus), minor code: 0
blacklist? false true
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1159, resource id: 579,
major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1160, resource id: 579,
major code: 14 (GetGeometry), minor code: 

So: blacklist? false true

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-08 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #16 from Thomas Lübking  ---
bugzilla.
you probably copied in non-printable characters or similar.
Just edit glxbackend.cpp w/ your favourite text editor and inject the "+"
prefixed line (just w/o the plus)
Otherwise I'll attach a patch *file* later on ;-)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-08 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

m00nraker  changed:

   What|Removed |Added

 CC||m00nra...@gmx.net

--- Comment #15 from m00nraker  ---
Created attachment 97769
  --> https://bugs.kde.org/attachment.cgi?id=97769=edit
additional patch from thomas

Something wrong with that file.
git apply __gl_blacklist2.diff
-> Error in line 13

-- 
You are receiving this mail because:
You are watching all bug changes.


[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-08 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #14 from Thomas Lübking  ---
(In reply to m00nraker from comment #12)

> Ok, I followed these steps to create a plasma build environment:
> https://community.kde.org/Plasma/Building

Ewww... you don't have to build all of KDE/Plasma

git clone kde:kwin.git
cd kwin
git checkout Plasma/5.5
mkdir build
cd build
ccmake -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix`
[adjust stuff to your likings through fancy curses UI, press "c"onfigure and
"g"enerate, then "q"uit]
make && sudo make install


> After compiling and finishing all steps from the tutorial I restarted and
> logged into plasma desktop.

Let's assume you installed kwin overriding the actual installation (/usr?) ...

> Compositing via. OpenGL2/GLX is still NOT WORKING with this patch. Tell me,
> if u need any further information.

the next thing to try would be to downforce robustness externally:
export
KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context_robustness,GL_ARB_robustness,GL_EGL_robustness
kwin_x11 --replace &

to see whether the robust context (and the function resolution) is the
troublemaker here at all.


To have an indicator on whether you're running the patched version at all, you
might want to add this patch in addition:

diff --git a/glxbackend.cpp b/glxbackend.cpp
index 1e519c3..53ccd62 100644
--- a/glxbackend.cpp
+++ b/glxbackend.cpp
@@ -322,6 +322,7 @@ bool GlxBackend::initRenderingContext()
 return false;
 }

+qDebug() << "blacklist?" << blacklistRobustness <<
hasGLExtension(QByteArrayLiteral("GLX_ARB_create_context"));
 if (blacklistRobustness) {
 QList blacklist =
qgetenv("KWIN_GL_EXT_BLACKLIST").split(',');
 blacklist << QByteArrayLiteral("GL_ARB_robustness") <<
QByteArrayLiteral("GL_EXT_robustness");



-

it should print
blacklist? true true
if the original assumption is somehow correct.

If it's more like
blacklist? false true
creating the robust context actually worked

And in case of
blacklist? false false
this means the robust context wasn't even considered (but not blacklisted
either, so we *might* still resolve the wrong functions - it does however not
match your glxinfo)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-07 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #12 from m00nraker  ---
(In reply to Thomas Lübking from comment #11)
> Better patch (ie. might actually work ;-) in review request:
> https://git.reviewboard.kde.org/r/127278/
> 
> @m00nraker, from local tests i'm not 100% sure that this will resolve your
> problem - if there's any chance to fetch kwin from git and test the patch,
> that will raise odds to resolve your situation by some magnitudes.

@Thomas:
Ok, I followed these steps to create a plasma build environment:
https://community.kde.org/Plasma/Building
I applied your patch via. "git apply __gl_blacklist.diff" in
/opt/kde/sources/kwin
After compiling and finishing all steps from the tutorial I restarted and
logged into plasma desktop.
Compositing via. OpenGL2/GLX is still NOT WORKING with this patch. Tell me, if
u need any further information.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-04 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

Thomas Lübking  changed:

   What|Removed |Added

  Component|compositing |glx
  Flags||NVIDIA+, ReviewRequest+
   Severity|major   |normal
URL||https://git.reviewboard.kde
   ||.org/r/127278/

--- Comment #11 from Thomas Lübking  ---
Better patch (ie. might actually work ;-) in review request:
https://git.reviewboard.kde.org/r/127278/

@m00nraker, from local tests i'm not 100% sure that this will resolve your
problem - if there's any chance to fetch kwin from git and test the patch, that
will raise odds to resolve your situation by some magnitudes.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-04 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #10 from Thomas Lübking  ---
Because of bug #355522
=> Bottom line would be that we need to store the robustness locally, what also
means to wire it up from the backend to the glutils. Ewww.

Something along this?

diff --git a/glxbackend.cpp b/glxbackend.cpp
index c59c647..c632082 100644
--- a/glxbackend.cpp
+++ b/glxbackend.cpp
@@ -286,13 +286,20 @@ bool GlxBackend::initRenderingContext()

 if (!ctx)
 ctx = glXCreateContextAttribsARB(display(), fbconfig, 0,
direct, attribs_31_core);
+if (ctx) {
+blacklistGLExtension(QByteArrayLiteral("GL_ARB_robustness"));
+blacklistGLExtension(QByteArrayLiteral("GL_EXT_robustness"));
+}
 }

 if (!ctx && have_robustness)
 ctx = glXCreateContextAttribsARB(display(), fbconfig, 0, direct,
attribs_legacy_robustness);

-if (!ctx)
+if (!ctx) {
+blacklistGLExtension(QByteArrayLiteral("GL_ARB_robustness"));
+blacklistGLExtension(QByteArrayLiteral("GL_EXT_robustness"));
 ctx = glXCreateContextAttribsARB(display(), fbconfig, 0, direct,
attribs_legacy);
+}
 }

 if (!ctx)
diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp
index bd84db7..c4d33f2 100644
--- a/libkwineffects/kwinglutils.cpp
+++ b/libkwineffects/kwinglutils.cpp
@@ -181,6 +181,13 @@ bool hasGLExtension(const QByteArray )
 return glExtensions.contains(extension) ||
glxExtensions.contains(extension) || eglExtensions.contains(extension);
 }

+void blacklistGLExtension(const QByteArray )
+{
+glExtensions.removeAll(extension);
+glxExtensions.removeAll(extension);
+eglExtensions.removeAll(extension);
+}
+
 static QString formatGLError(GLenum err)
 {
 switch(err) {
diff --git a/libkwineffects/kwinglutils.h b/libkwineffects/kwinglutils.h
index 3c1ac28..e9aa313 100644
--- a/libkwineffects/kwinglutils.h
+++ b/libkwineffects/kwinglutils.h
@@ -69,6 +69,7 @@ bool KWINGLUTILS_EXPORT hasGLXVersion(int major, int minor,
int release = 0);
 bool KWINGLUTILS_EXPORT hasEGLVersion(int major, int minor, int release = 0);
 // use for both OpenGL and GLX extensions
 bool KWINGLUTILS_EXPORT hasGLExtension(const QByteArray );
+void KWINGLUTILS_EXPORT blacklistGLExtension(const QByteArray );

 // detect OpenGL error (add to various places in code to pinpoint the place)
 bool KWINGLUTILS_EXPORT checkGLError(const char* txt);




We could also turn this into a wider concept of
"KWIN_IGNORE_GL_EXTENSIONS=GL_EXT_Foo,GL_ARB_Bar"
(which is possible on MESA but afaik not on the blob drivers)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-04 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #9 from m00nraker  ---
(In reply to Thomas Lübking from comment #7)
> capable of compiling a patched kwin? =)

Sry, I think no.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-04 Thread Martin Gräßlin via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #8 from Martin Gräßlin  ---
> "glGetIntegerv(GL_CONTEXT_FLAGS, );" yesno?

no. If the creation of the robust context fails we have the extension, and
assume that it's a robust context as the GL_CONTEXT_FLAGS is not available in
2.1. So yes the main problem is that the check fails in our case.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-04 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #7 from Thomas Lübking  ---
(In reply to Martin Gräßlin from comment #6)

> looking at the code I think we are not able to resolve whether we use a
> robust context if we don't have GL 3.

Why?

if (options->glCoreProfile()) {
.
}

if (!ctx && have_robustness)
ctx = glXCreateContextAttribsARB(display(), fbconfig, 0, direct,
attribs_legacy_robustness);

if (!ctx)
...


attribs_legacy_robustness contain GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB which is
tested alongside GL_ARB_robustness on function resolution, so the only possible
failure seems
"glGetIntegerv(GL_CONTEXT_FLAGS, );" yesno?


I've also no problems creating a GL 2.0 context and the only relevant
difference seems that non-legacy nvidia drivers support GL_ARB_robustness and
GL_EXT_robustness (but we prefer the ARB resolution anyway)

We could probably add an environment to turn down robust context creation to
figure whether it's in that area, but that's gonna be a long TaE process.

@m00nraker
capable of compiling a patched kwin? =)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-03 Thread Martin Gräßlin via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #6 from Martin Gräßlin  ---
(In reply to Thomas Lübking from comment #3)
> might relate to https://git.reviewboard.kde.org/r/125883/

somehow I doubt that NVIDIA got it wrong.

> Martin, what happened about robust context creation itr?

looking at the code I think we are not able to resolve whether we use a robust
context if we don't have GL 3. Maybe we need to not try robust context if we
don't have GL 3?

> Wrt https://git.reviewboard.kde.org/r/125883/ you should seek to try 5.6 asap.

The robust checks are already in Plasma/5.5 branch...

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-03 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #5 from Thomas Lübking  ---
> GLColorCorrection=false
> GLCore=false

Nope, dead end.
Wrt https://git.reviewboard.kde.org/r/125883/ you should seek to try 5.6 asap.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-03 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #4 from m00nraker  ---
(In reply to Thomas Lübking from comment #3)
> @moonraker, can you please also attach (avoid paste services, they've
> limited ttl) ~/.config/kwinrc

cat ~/.config/kwinrc

[Compositing]
AnimationSpeed=3
Backend=OpenGL
Enabled=true
GLColorCorrection=false
GLCore=false
GLPlatformInterface=glx
GLPreferBufferSwap=a
GLTextureFilter=1
HiddenPreviews=5
OpenGLIsUnsafe=false
UnredirectFullscreen=false
XRenderSmoothScale=false

[Effect-Zoom]
InitialZoom=1

[Plugins]
kwin4_effect_translucencyEnabled=false
wobblywindowsEnabled=true

[TabBox]
DesktopLayout=org.kde.breeze.desktop
DesktopListLayout=org.kde.breeze.desktop
LayoutName=org.kde.breeze.desktop

In " kcmshell5 kwincompositing" I also tried to change "Tearing
prevention(vsync)" from "automatic" to  "Full screen repaints". Seems to have
no effect.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-03 Thread Thomas Lübking via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #3 from Thomas Lübking  ---
might relate to https://git.reviewboard.kde.org/r/125883/
Martin, what happened about robust context creation itr?

@moonraker, can you please also attach (avoid paste services, they've limited
ttl) ~/.config/kwinrc

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-03 Thread m00nraker via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #2 from m00nraker  ---
(In reply to Martin Gräßlin from comment #1)
> can you please provide the output of "glxinfo -l"

Some glxinfo output:

glxinfo -l
https://paste.kde.org/pzpytsdko

glxinfo -v
https://paste.kde.org/plmbbcxxh

glxinfo -i
name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  33
  Current serial number in output stream:  34

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 360033] Cannot enable compositing with OpenGL GLX

2016-03-03 Thread Martin Gräßlin via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=360033

--- Comment #1 from Martin Gräßlin  ---
can you please provide the output of "glxinfo -l"

-- 
You are receiving this mail because:
You are watching all bug changes.