<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>301103</bug_id>
          
          <creation_ts>2012-06-03 11:55:30 +0000</creation_ts>
          <short_desc>Allow direct rendering with fglrx</short_desc>
          <delta_ts>2012-08-23 01:39:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>scene-opengl</component>
          <version>4.7.3</version>
          <rep_platform>Chakra</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>4.10</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Weng Xuetian">wengxt</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>jammy.zhou</cc>
    
    <cc>russianneuromancer</cc>
          
          <cf_commitlink>http://commits.kde.org/kde-workspace/1efa6a9d41237339298e45f0c791ffe1269077f4</cf_commitlink>
          <cf_versionfixedin>4.10</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      <flag name="Catalyst"
          id="302"
          type_id="17"
          status="+"
          setter="mgraesslin"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1261810</commentid>
    <comment_count>0</comment_count>
    <who name="Weng Xuetian">wengxt</who>
    <bug_when>2012-06-03 11:55:30 +0000</bug_when>
    <thetext>AMD release a new driver catalyst 12.6/fglrx 8.98, which seems to be the first version can work with kwin direct rendering without problem.

So maybe driver newer than this can be removed from black list.

Phoronix news:
http://www.phoronix.com/scan.php?page=news_item&amp;px=MTExMTU

So far no problem here.

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1261816</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2012-06-03 12:02:05 +0000</bug_when>
    <thetext>Some comments:

* It&apos;s not a blacklist, but a whitelist
* I have info that not everything is working yet (e.g. Slideback seems broken)

When we enable the driver in the whitelist there is no easy way for users to go back. Because of that I&apos;m reluctant to change it. Everything *has* to work perfectly with direct rendering.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1282789</commentid>
    <comment_count>2</comment_count>
    <who name="Jammy Zhou">jammy.zhou</who>
    <bug_when>2012-08-08 07:06:47 +0000</bug_when>
    <thetext>Hi Martin,

The slideback issue has been confirmed to be an issue of kwin, which happens for both NV and AMD (radeon and fglrx). And bug has been reported below.

https://bugs.kde.org/show_bug.cgi?id=304479

So currently there is no direct rendering specific issue for fglrx now. Maybe we can consider the whitelisting at some proper point of KDE 4.10.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284682</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2012-08-14 15:58:25 +0000</bug_when>
    <thetext>I&apos;m fine with setting the latest Catalyst to direct rendering in current master, but we need someone to write that code. To my knowledge no KWin developer is using the Catalyst driver .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1285007</commentid>
    <comment_count>4</comment_count>
    <who name="Jammy Zhou">jammy.zhou</who>
    <bug_when>2012-08-15 10:48:59 +0000</bug_when>
    <thetext>The reference patch is attached.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1285008</commentid>
    <comment_count>5</comment_count>
      <attachid>73178</attachid>
    <who name="Jammy Zhou">jammy.zhou</who>
    <bug_when>2012-08-15 10:49:56 +0000</bug_when>
    <thetext>Created attachment 73178
Whitelist Catalyst driver for kwin direct rendering</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1285015</commentid>
    <comment_count>6</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-08-15 11:23:08 +0000</bug_when>
    <thetext>Please use git.reviewboard.kde.org to get the patch reviewed (imo quite necessary)

However:

+bool getCatalystversion(char *version)
+{
+    const char *RV = &quot;ReleaseVersion&quot;;
+    char *RVbuf = NULL;
+    char buf[MAX_LINE_LEN];
+    FILE *fp = fopen(&quot;/etc/ati/amdpcsdb.default&quot;,&quot;rb&quot;);
...

-&gt; is there really no version to get that info out of glGetString(GL_VERSION) or similar?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1285235</commentid>
    <comment_count>7</comment_count>
    <who name="Jammy Zhou">jammy.zhou</who>
    <bug_when>2012-08-16 01:55:02 +0000</bug_when>
    <thetext>Sure, I will send review request to git.reviewboard.kde.org later.

-&gt; is there really no version to get that info out of glGetString(GL_VERSION) or similar?
The release version cannot be got from GL_VERSION currently, and only /etc/ati/amdpcsdb.default can be leveraged on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1285248</commentid>
    <comment_count>8</comment_count>
    <who name="Jammy Zhou">jammy.zhou</who>
    <bug_when>2012-08-16 03:11:31 +0000</bug_when>
    <thetext>The review request has been submitted.
https://git.reviewboard.kde.org/r/106050/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290065</commentid>
    <comment_count>9</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2012-08-22 18:33:55 +0000</bug_when>
    <thetext>Git commit 1efa6a9d41237339298e45f0c791ffe1269077f4 by Martin Gräßlin, on behalf of Jammy Zhou.
Committed on 22/08/2012 at 08:05.
Pushed by graesslin into branch &apos;master&apos;.

Whitelist AMD Catalyst for kwin direct rendering
FIXED-IN: 4.10
REVIEW: 106050

M  +34   -0    kwin/opengltest/opengltest.cpp

http://commits.kde.org/kde-workspace/1efa6a9d41237339298e45f0c791ffe1269077f4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290192</commentid>
    <comment_count>10</comment_count>
    <who name="Jammy Zhou">jammy.zhou</who>
    <bug_when>2012-08-23 01:39:05 +0000</bug_when>
    <thetext>Thanks Martin for pushing the patch. ;-)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>73178</attachid>
            <date>2012-08-15 10:49:56 +0000</date>
            <delta_ts>2012-08-15 10:49:56 +0000</delta_ts>
            <desc>Whitelist Catalyst driver for kwin direct rendering</desc>
            <filename>atiopengltest.diff</filename>
            <type>text/plain</type>
            <size>1890</size>
            <attacher name="Jammy Zhou">jammy.zhou</attacher>
            
              <data encoding="base64">LS0tIG9wZW5nbHRlc3QuY3BwCTIwMTEtMDItMjYgMDU6NTQ6NTAuMDAwMDAwMDAwICswODAwDQor
KysgYXRpX29wZW5nbC5jcHAJMjAxMi0wNS0wMyAxNToxMDoxMi43OTk5NDk0NjYgKzA4MDANCkBA
IC0yMyw2ICsyNCwzNSBAQA0KICNpbmNsdWRlIDxzdHJpbmcuaD4NCiAjaW5jbHVkZSA8c3RkaW8u
aD4NCiANCisjZGVmaW5lIE1BWF9MSU5FX0xFTiAgICAxMDI0DQorDQorYm9vbCBnZXRDYXRhbHlz
dHZlcnNpb24oY2hhciAqdmVyc2lvbikNCit7DQorICAgIGNvbnN0IGNoYXIgKlJWID0gIlJlbGVh
c2VWZXJzaW9uIjsNCisgICAgY2hhciAqUlZidWYgPSBOVUxMOw0KKyAgICBjaGFyIGJ1ZltNQVhf
TElORV9MRU5dOw0KKyAgICBGSUxFICpmcCA9IGZvcGVuKCIvZXRjL2F0aS9hbWRwY3NkYi5kZWZh
dWx0IiwicmIiKTsNCisgICAgaWYgKCFmcCkNCisgICAgew0KKyAgICAgICAgcmV0dXJuIGZhbHNl
Ow0KKyAgICB9DQorICAgIHdoaWxlICghZmVvZihmcCkpDQorICAgIHsNCisgICAgICAgIGZnZXRz
KGJ1ZiwgTUFYX0xJTkVfTE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bikpDQorICAg
ICAgICB7DQorICAgICAgICAgICAgaW50IHJldD1zc2NhbmYodmVyc2lvbiwgIiUxcy4lMXMlMXMl
MXMiLCBidWYxLCBidWYyLCBidWYzLCBidWY0KTsNCisgICAgICAgICAgICBpZiAoKHJldCA9PSAz
KXx8KHJldD09NCAmJiBidWY0PT0iLiIpKQ0KKyAgICAgICAgICAgIHsNCisgICAgICAgICAgICAg
ICAgaWYoc3RyY21wKHZlcnNpb24sIjguOTgiKT49MCkNCisgICAgICAgICAgICAgICAgew0KKyAg
ICAgICAgICAgICAgICAgICByZXR1cm4gMCA7DQorICAgICAgICAgICAgICAgIH0NCisgICAgICAg
ICAgICB9DQorICAgICAgICAgICAgZWxzZSBpZiAocmV0ID09IDQpDQorICAgICAgICAgICAgew0K
KyAgICAgICAgICAgICAgICBpZihzdHJjbXAodmVyc2lvbiwiOC45NzMiKT49MCkNCisgICAgICAg
ICAgICAgICAgew0KKyAgICAgICAgICAgICAgICAgICByZXR1cm4gMCA7DQorICAgICAgICAgICAg
ICAgIH0NCisgICAgICAgICAgICB9DQorICAgICAgICB9DQorICAgIH0NCiAgICAgcmV0dXJuIDE7
DQogfQ0KLQ0K
</data>

          </attachment>
      

    </bug>

</bugzilla>