[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    Re: Review Request: Change desktop size w/o restarting compositor
From:       Martin_Gräßlin <kde () martin-graesslin ! com>
Date:       2012-01-24 5:50:54
Message-ID: 20120124055054.9286.78435 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On Nov. 27, 2011, 11:39 a.m., Martin Gr=C3=A4=C3=9Flin wrote:
> > just tried with r600g on OpenGL 2 and it does not work at all :-( Same =
problem as before, completely distorted image
> =

> Thomas L=C3=BCbking wrote:
>     "BLAST" - works on nvidia & intel >(
>     =

>     I had some failsafe stuff in the first version, no idea whether that'=
s required.
>     My idea would be to:
>     =

>     else {
>        glXMakeCurrent(display(), None, NULL); // deactivate context
>        XMoveResizeWindow(display(), buffer, 0,0, size.width(), size.heigh=
t());
>        m_overlayWindow->setup(buffer);
>        XSync(display(), false);  // ensure X11 stuff has applied
>        glXMakeCurrent(display(), glxbuffer, ctxbuffer); // reactivate con=
text
>        glViewport(0,0, size.width(), size.height()); // adjust viewport l=
ast - should btw. be superflous on the Pixmap buffer - iirc glXCreatePixmap=
 sets the context anyway.
>     }
>     =

>     If this doesn't work i hereby officially declare AMD/ATi to suck ;-)
> =

> Martin Gr=C3=A4=C3=9Flin wrote:
>     bad news btw.: I got the my brother's "old" NVIDIA card and installed=
 it. So currently I cannot test on ATI and nouveau seems not to like this c=
ard. But I get a new notebook next week with an Intel, though we already kn=
ow that it works there.
> =

> Thomas L=C3=BCbking wrote:
>     I can test on nouveau, but my last ATi was an Rage Pro w/ 8MB VRAM - =
mesa even crashes (yes, i still have that GPU - not burned like several oth=
er cards...) on glxgears, but xcompmgr runs surprisingly fine (i was about =
to test cairo-compmgr somewhen later.
>     The box i keep it in can unfortunately not run KDE. Not enough HDD :)
> =

> Alex Fiestas wrote:
>     Maybe we can ask in kde-devel for a developers with ATI and NVIDIA.
>     =

>     For instance, I know that Dario Freddi has NVIDIA and I'm sure he is =
more than willing to test whatever needs to be test.
>
> =

> Thomas L=C3=BCbking wrote:
>     @Alex:
>     the nvidia driver (+ dynamic twinview) works fine here.
>     We however *really* need one testing ATi with the suggested modificat=
ions.
>     =

>     I've also just tried nouveau (dri) with teh vanilla patch. It worked =
- graphics & viewport  were ok.
>     (until the X server completely stalled after 4 or 5 geometry changes.=
 I think it didn't like me removing the other screen ;-)
>     I'll try again with the modifications tomorrow - maybe it'll remain e=
ven more stable then *shrug*
>     =

>     Sidenote:
>     Other than this, the nouveau driver already seems in a pretty good sh=
ape as long as one stays with basic GL (tyrquake-gl & tuxracer ran ok) but =
one can likely forget about glsl atm (tenebrae ran at 2fps ;-) though i may=
be just lacked a firmware installation or so.

I would say we should put that into master and sort out issues with hardwar=
e as the bug reports appear. Long time till release :-) If it's not working=
 at all for e.g. ATI we block on driver level.


- Martin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103246/#review8513
-----------------------------------------------------------


On Nov. 26, 2011, 9:07 p.m., Thomas L=C3=BCbking wrote:
> =

> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103246/
> -----------------------------------------------------------
> =

> (Updated Nov. 26, 2011, 9:07 p.m.)
> =

> =

> Review request for kwin, Alex Fiestas and Martin Gr=C3=A4=C3=9Flin.
> =

> =

> Description
> -------
> =

> mostly a fix of martins approach which resized the overlay but not the ac=
tual buffer.
> plus, there was one more thing....
> =

> TODO: =

> - didn't implement the buffer update for the non overlay case (means to k=
ick the buffer pix and create a new, no big deal but i'm f**** lazy :-)
> - implementing/testing GLES, the buffer resize should not be necessary...=
 the other thing probably should
> =

> =

> Diffs
> -----
> =

>   kwin/effects.h 6530871 =

>   kwin/effects.cpp 000e35c =

>   kwin/effects/blur/blur.h 313f311 =

>   kwin/effects/blur/blur.cpp c566e34 =

>   kwin/geometry.cpp 69eb566 =

>   kwin/libkwineffects/kwineffects.h 780cc89 =

>   kwin/libkwineffects/kwinglutils.h 876cf3a =

>   kwin/libkwineffects/kwinglutils.cpp 7e51bc9 =

>   kwin/overlaywindow.h 14d2d58 =

>   kwin/overlaywindow.cpp 43f1a52 =

>   kwin/scene.h d8bcf48 =

>   kwin/scene.cpp 81ca937 =

>   kwin/scene_opengl.h e13d8a5 =

>   kwin/scene_opengl_egl.cpp 22e082c =

>   kwin/scene_opengl_glx.cpp ddebcd0 =

>   kwin/scene_xrender.h 6c916c8 =

>   kwin/scene_xrender.cpp f0a775c =

> =

> Diff: http://git.reviewboard.kde.org/r/103246/diff/diff
> =

> =

> Testing
> -------
> =

> yupp
> =

> =

> Thanks,
> =

> Thomas L=C3=BCbking
> =

>


[Attachment #5 (text/html)]

<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;">  <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/103246/">http://git.reviewboard.kde.org/r/103246/</a>
  </td>
    </tr>
   </table>
   <br />





<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On November 27th, 2011, 11:39 a.m., <b>Martin \
Gräßlin</b> wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">  <pre style="white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">just tried with r600g on OpenGL 2 and it does not work at all :-( Same \
problem as before, completely distorted image</pre>  </blockquote>




 <p>On November 27th, 2011, 12:46 p.m., <b>Thomas Lübking</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">&quot;BLAST&quot; - \
works on nvidia &amp; intel &gt;(

I had some failsafe stuff in the first version, no idea whether that&#39;s required.
My idea would be to:

else {
   glXMakeCurrent(display(), None, NULL); // deactivate context
   XMoveResizeWindow(display(), buffer, 0,0, size.width(), size.height());
   m_overlayWindow-&gt;setup(buffer);
   XSync(display(), false);  // ensure X11 stuff has applied
   glXMakeCurrent(display(), glxbuffer, ctxbuffer); // reactivate context
   glViewport(0,0, size.width(), size.height()); // adjust viewport last - should \
btw. be superflous on the Pixmap buffer - iirc glXCreatePixmap sets the context \
anyway. }

If this doesn&#39;t work i hereby officially declare AMD/ATi to suck ;-)</pre>
 </blockquote>





 <p>On December 9th, 2011, 7:48 p.m., <b>Martin Gräßlin</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">bad news btw.: I got the \
my brother&#39;s &quot;old&quot; NVIDIA card and installed it. So currently I cannot \
test on ATI and nouveau seems not to like this card. But I get a new notebook next \
week with an Intel, though we already know that it works there.</pre>  </blockquote>





 <p>On December 9th, 2011, 8:41 p.m., <b>Thomas Lübking</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I can test on nouveau, \
but my last ATi was an Rage Pro w/ 8MB VRAM - mesa even crashes (yes, i still have \
that GPU - not burned like several other cards...) on glxgears, but xcompmgr runs \
surprisingly fine (i was about to test cairo-compmgr somewhen later. The box i keep \
it in can unfortunately not run KDE. Not enough HDD :)</pre>  </blockquote>





 <p>On December 10th, 2011, 12:04 a.m., <b>Alex Fiestas</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Maybe we can ask in \
kde-devel for a developers with ATI and NVIDIA.

For instance, I know that Dario Freddi has NVIDIA and I&#39;m sure he is more than \
willing to test whatever needs to be test. </pre>
 </blockquote>





 <p>On December 10th, 2011, 12:43 a.m., <b>Thomas Lübking</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">@Alex: the nvidia driver \
(+ dynamic twinview) works fine here. We however *really* need one testing ATi with \
the suggested modifications.

I&#39;ve also just tried nouveau (dri) with teh vanilla patch. It worked - graphics \
&amp; viewport  were ok. (until the X server completely stalled after 4 or 5 geometry \
changes. I think it didn&#39;t like me removing the other screen ;-) I&#39;ll try \
again with the modifications tomorrow - maybe it&#39;ll remain even more stable then \
*shrug*

Sidenote:
Other than this, the nouveau driver already seems in a pretty good shape as long as \
one stays with basic GL (tyrquake-gl &amp; tuxracer ran ok) but one can likely forget \
about glsl atm (tenebrae ran at 2fps ;-) though i maybe just lacked a firmware \
installation or so.</pre>  </blockquote>








</blockquote>

<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I would say we should \
put that into master and sort out issues with hardware as the bug reports appear. \
Long time till release :-) If it&#39;s not working at all for e.g. ATI we block on \
driver level.</pre> <br />








<p>- Martin</p>


<br />
<p>On November 26th, 2011, 9:07 p.m., Thomas Lübking wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;">  <tr>
  <td>

<div>Review request for kwin, Alex Fiestas and Martin Gräßlin.</div>
<div>By Thomas Lübking.</div>


<p style="color: grey;"><i>Updated Nov. 26, 2011, 9:07 p.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">mostly a fix of martins approach which resized the overlay but not the \
actual buffer. plus, there was one more thing....

TODO: 
- didn&#39;t implement the buffer update for the non overlay case (means to kick the \
                buffer pix and create a new, no big deal but i&#39;m f**** lazy :-)
- implementing/testing GLES, the buffer resize should not be necessary... the other \
thing probably should </pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">yupp</pre>  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>kwin/effects.h <span style="color: grey">(6530871)</span></li>

 <li>kwin/effects.cpp <span style="color: grey">(000e35c)</span></li>

 <li>kwin/effects/blur/blur.h <span style="color: grey">(313f311)</span></li>

 <li>kwin/effects/blur/blur.cpp <span style="color: grey">(c566e34)</span></li>

 <li>kwin/geometry.cpp <span style="color: grey">(69eb566)</span></li>

 <li>kwin/libkwineffects/kwineffects.h <span style="color: \
grey">(780cc89)</span></li>

 <li>kwin/libkwineffects/kwinglutils.h <span style="color: \
grey">(876cf3a)</span></li>

 <li>kwin/libkwineffects/kwinglutils.cpp <span style="color: \
grey">(7e51bc9)</span></li>

 <li>kwin/overlaywindow.h <span style="color: grey">(14d2d58)</span></li>

 <li>kwin/overlaywindow.cpp <span style="color: grey">(43f1a52)</span></li>

 <li>kwin/scene.h <span style="color: grey">(d8bcf48)</span></li>

 <li>kwin/scene.cpp <span style="color: grey">(81ca937)</span></li>

 <li>kwin/scene_opengl.h <span style="color: grey">(e13d8a5)</span></li>

 <li>kwin/scene_opengl_egl.cpp <span style="color: grey">(22e082c)</span></li>

 <li>kwin/scene_opengl_glx.cpp <span style="color: grey">(ddebcd0)</span></li>

 <li>kwin/scene_xrender.h <span style="color: grey">(6c916c8)</span></li>

 <li>kwin/scene_xrender.cpp <span style="color: grey">(f0a775c)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/103246/diff/" style="margin-left: \
3em;">View Diff</a></p>




  </td>
 </tr>
</table>








  </div>
 </body>
</html>



_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic