From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91534] r300 blocking GLX and EGL compositing in KWin (KDE Plasma 5.x)? Date: Sun, 02 Aug 2015 23:14:50 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1427519997==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 8910B6E0C1 for ; Sun, 2 Aug 2015 16:14:50 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1427519997== Content-Type: multipart/alternative; boundary="1438557290.1dd23c20.29006"; charset="UTF-8" --1438557290.1dd23c20.29006 Date: Sun, 2 Aug 2015 23:14:50 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91534 Bug ID: 91534 Summary: r300 blocking GLX and EGL compositing in KWin (KDE Plasma 5.x)? Product: Mesa Version: 10.5 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r300 Assignee: dri-devel@lists.freedesktop.org Reporter: aaron.d.pickett@gmail.com QA Contact: dri-devel@lists.freedesktop.org Created attachment 117488 --> https://bugs.freedesktop.org/attachment.cgi?id=117488&action=edit Attempt to force EGL-based OpenGL compositing I have an old laptop with ATI RS480 graphics (Radeon Xpress 200M), and I've been testing KDE Plasma 5.x in KUbuntu 15.04 (currently version 5.3 from the backports PPA). In all the versions I've tried, OpenGL compositing fails. For the GLX API, I assume this is because r300 *almost* supports OpenGL 2.1, but falls short on NPOT texture support. After some reading (http://blog.martin-graesslin.com/blog/2011/07/running-kwin-with-opengl-es-2-0/), I thought I might try the EGL API for OpenGL ES compositing. The GUI wouldn't let me select EGL, so I forced it using environment variables (https://community.kde.org/KWin/Environment_Variables) as follows: KWIN_OPENGL_INTERFACE=egl KWIN_COMPOSE=O1 (I also tried O2, same result) Unfortunately, the (truncated) result is: kwin_core: OpenGL driver recommends XRender based compositing. Falling back to XRender. ... kwin_core: Failed to initialize compositing, compositing disabled >>From what I've read, the r300 should have full OpenGL ES 2.0 support, so is the driver blocking EGL compositing unnecessarily? The full log of my attempt to force EGL-based compositing is attached. -- You are receiving this mail because: You are the assignee for the bug. --1438557290.1dd23c20.29006 Date: Sun, 2 Aug 2015 23:14:50 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 91534
Summary r300 blocking GLX and EGL compositing in KWin (KDE Plasma 5.x)?
Product Mesa
Version 10.5
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/r300
Assignee dri-devel@lists.freedesktop.org
Reporter aaron.d.pickett@gmail.com
QA Contact dri-devel@lists.freedesktop.org

Created attachment 117488 [details]
Attempt to force EGL-based OpenGL compositing

I have an old laptop with ATI RS480 graphics (Radeon Xpress 200M), and I've
been testing KDE Plasma 5.x in KUbuntu 15.04 (currently version 5.3 from the
backports PPA).  In all the versions I've tried, OpenGL compositing fails.  For
the GLX API, I assume this is because r300 *almost* supports OpenGL 2.1, but
falls short on NPOT texture support.

After some reading
(http://blog.martin-graesslin.com/blog/2011/07/running-kwin-with-opengl-es-2-0/),
I thought I might try the EGL API for OpenGL ES compositing.  The GUI wouldn't
let me select EGL, so I forced it using environment variables
(https://community.kde.org/KWin/Environment_Variables) as follows:
KWIN_OPENGL_INTERFACE=egl
KWIN_COMPOSE=O1 (I also tried O2, same result)

Unfortunately, the (truncated) result is:
kwin_core: OpenGL driver recommends XRender based compositing. Falling back to
XRender.
...
kwin_core: Failed to initialize compositing, compositing disabled

>>From what I've read, the r300 should have full OpenGL ES 2.0 support, so is the
driver blocking EGL compositing unnecessarily?  

The full log of my attempt to force EGL-based compositing is attached.


You are receiving this mail because:
  • You are the assignee for the bug.
--1438557290.1dd23c20.29006-- --===============1427519997== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1427519997==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91534] r300 blocking GLX and EGL compositing in KWin (KDE Plasma 5.x)? Date: Mon, 03 Aug 2015 11:24:21 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0117774752==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 3673E6E509 for ; Mon, 3 Aug 2015 04:24:21 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0117774752== Content-Type: multipart/alternative; boundary="1438601061.83C2Ca21.7854"; charset="UTF-8" --1438601061.83C2Ca21.7854 Date: Mon, 3 Aug 2015 11:24:21 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91534 --- Comment #1 from Emil Velikov --- Hi Aaron, We do have some fixes in mesa 10.6.x that never made it into 10.5 series. I would give mesa 10.6.x a spin first. I'm not a r300 dev myself so I cannot comment on the driver, although it doesn't show any signs of issues. Here are some bits you might find interesting: - Seemingly the driver already exposes NPOT + OpenGL 2.1 (albeit some hardware limitations, which should be handled by the driver). - GLX does not always mean you'll get OpenGL, similar to EGL and OpenGLES. One can mix and match depending on various factors. In your case EGL + OpenGL is attempted but I'm not sure how to force gles. Older versions had kwin_gles, which seems to be gone with the 5 series. Might want to look into a way of forcing gles, and getting more verbose output on kwin side. -- You are receiving this mail because: You are the assignee for the bug. --1438601061.83C2Ca21.7854 Date: Mon, 3 Aug 2015 11:24:21 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 1 on bug 91534 from
Hi Aaron,

We do have some fixes in mesa 10.6.x that never made it into 10.5 series. I
would give mesa 10.6.x a spin first.

I'm not a r300 dev myself so I cannot comment on the driver, although it
doesn't show any signs of issues. Here are some bits you might find
interesting:

- Seemingly the driver already exposes NPOT + OpenGL 2.1 (albeit some hardware
limitations, which should be handled by the driver).

- GLX does not always mean you'll get OpenGL, similar to EGL and OpenGLES. One
can mix and match depending on various factors.

In your case EGL + OpenGL is attempted but I'm not sure how to force gles.
Older versions had kwin_gles, which seems to be gone with the 5 series. Might
want to look into a way of forcing gles, and getting more verbose output on
kwin side.


You are receiving this mail because:
  • You are the assignee for the bug.
--1438601061.83C2Ca21.7854-- --===============0117774752== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0117774752==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91534] r300 blocking GLX and EGL compositing in KWin (KDE Plasma 5.x)? Date: Thu, 06 Aug 2015 13:19:21 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0507568215==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 3EF157A0EA for ; Thu, 6 Aug 2015 06:19:21 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0507568215== Content-Type: multipart/alternative; boundary="1438867161.fb8BF4E1.15222"; charset="UTF-8" --1438867161.fb8BF4E1.15222 Date: Thu, 6 Aug 2015 13:19:21 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D91534 --- Comment #2 from Marek Ol=C5=A1=C3=A1k --- Hi, r300 doesn't support NPOT textures fully. The only thing it supports is= 2D NPOT textures without mipmapping. That's pretty limited, but it was what D3= D9 originally required. In other words, the driver shouldn't report that it supports NPOT textures, but then we would lose GL2 support, which would be a lot bigger problem. There is no fix other than complete software emulation, which nobody wants. --=20 You are receiving this mail because: You are the assignee for the bug. --1438867161.fb8BF4E1.15222 Date: Thu, 6 Aug 2015 13:19:21 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Comment= # 2 on bug 91534<= /a> from Marek Ol=C5=A1=C3=A1k
Hi, r300 doesn't support NPOT textures fully. The only thing i=
t supports is 2D
NPOT textures without mipmapping. That's pretty limited, but it was what D3=
D9
originally required. In other words, the driver shouldn't report that it
supports NPOT textures, but then we would lose GL2 support, which would be a
lot bigger problem.

There is no fix other than complete software emulation, which nobody wants.=


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1438867161.fb8BF4E1.15222-- --===============0507568215== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0507568215==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91534] r300 blocking GLX and EGL compositing in KWin (KDE Plasma 5.x)? Date: Thu, 06 Aug 2015 13:24:04 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0680396644==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 75A616E4D2 for ; Thu, 6 Aug 2015 06:24:04 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0680396644== Content-Type: multipart/alternative; boundary="1438867444.8e5BF88e1.18313"; charset="UTF-8" --1438867444.8e5BF88e1.18313 Date: Thu, 6 Aug 2015 13:24:04 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D91534 Marek Ol=C5=A1=C3=A1k changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #3 from Marek Ol=C5=A1=C3=A1k --- I suggest you talk to the KDE guys whether there is a solution. You can poi= nt them to my replies. The thing is there has never been a GL2 GPU on the market, so the GL2 specification was kind of a fail. There were GL1.5 GPUs (r500) and then GL3 GPUs (r600), yet the market demanded GL2 drivers. --=20 You are receiving this mail because: You are the assignee for the bug. --1438867444.8e5BF88e1.18313 Date: Thu, 6 Aug 2015 13:24:04 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable = Marek Ol=C5=A1=C3=A1k changed bug 91534<= /a>
What Removed Added
Status NEW RESOLVED
Resolution --- WONTFIX

Comment= # 3 on bug 91534<= /a> from Marek Ol=C5=A1=C3=A1k
I suggest you talk to the KDE guys whether there is a solution=
. You can point
them to my replies.

The thing is there has never been a GL2 GPU on the market, so the GL2
specification was kind of a fail. There were GL1.5 GPUs (r500) and then GL3
GPUs (r600), yet the market demanded GL2 drivers.


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1438867444.8e5BF88e1.18313-- --===============0680396644== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0680396644==--