<div dir="ltr">Hello Wataru , <div><br></div><div>Could you please suggest on this blocking behavior of LayerManagerControl with multi screen/layer?</div><div>We have applied this patch:
<span style="color:rgb(31,73,125);font-family:Arial,sans-serif;font-size:13.3333px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">e8ff7df863a10eb4be5273017fb544</span><wbr style="color:rgb(31,73,125);font-family:Arial,sans-serif;font-size:13.3333px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(31,73,125);font-family:Arial,sans-serif;font-size:13.3333px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">b5f823fc6a</span> as you suggested, but issue is not resolved.</div><div><br></div><div>Best Regards,</div><div>Ikshwaku<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 11, 2018 at 11:21 AM, Vikas Patil <span dir="ltr"><<a href="mailto:vikasmpatil@gmail.com" target="_blank">vikasmpatil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Wataru,<br><br></div><div>I have tried it and unfortunately it do not solve the issue. Is it known issue or it is happening due to older (1.11.0) version of weston and ivi which i am using.<br></div><div><br></div>Best Regards,<br></div>Vikash<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 10, 2018 at 3:54 PM, Mizuno, Wataru (ADITJ/SWG) <span dir="ltr"><<a href="mailto:wmizuno@jp.adit-jv.com" target="_blank">wmizuno@jp.adit-jv.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="JA">
<div class="m_169591313373778791m_6958229754242774738WordSection1"><span>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Hi Vikas,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">This issue might be fixed with this patch: e8ff7df863a10eb4be5273017fb544<wbr>b5f823fc6a<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Please try with it.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:justify"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Wataru Mizuno<u></u><u></u></span></b></p>
<p class="MsoNormal" style="text-align:justify"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">ADITJ / SWG<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:justify"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:justify"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">+81-(0)566-56-0946<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
</span><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Vikas Patil [<a href="mailto:vikasmpatil@gmail.com" target="_blank">mailto:vikasmpatil@gmail.com</a>]
<br><span>
<b>Sent:</b> Thursday, May 10, 2018 4:07 PM<br>
<b>To:</b> Ucan, Emre (ADITG/ESB)<br>
</span><b>Cc:</b> <a href="mailto:genivi-ivi-layer-management@lists.genivi.org" target="_blank">genivi-ivi-layer-management@li<wbr>sts.genivi.org</a>; Mizuno, Wataru (ADITJ/SWG); wayland mailing list; Ikshwaku Chauhan<br>
<b>Subject:</b> Re: Same ilm surface on multiple layer support<u></u><u></u></span></p><div><div class="m_169591313373778791h5">
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Hi All,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">As some of the LayerManagerControl commands do not work when same surface is attached to two layers.<br>
<br>
Following command hangs and do not come out as expected. I tried to check where it is hanging using GDB. Is this gives some hit on issue and resolution? Please suggest if you have any pointers.<br>
<br>
LayerManagerControl get scene<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
root@linux1:~# gdb -p 916<br>
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.<br>
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.<br>
<br>
0x4ddf68f4 in wl_list_length () from /usr/lib/libwayland-client.so.<wbr>0<br>
(gdb) bt<br>
#0 0x4ddf68f4 in wl_list_length () from /usr/lib/libwayland-client.so.<wbr>0<br>
#1 0x4deb45e4 in ilm_getSurfaceIDsOnLayer ()<br>
from /usr/lib/libilmControl.so.1.11<wbr>.0<br>
#2 0x00033f80 in printLayerProperties(unsigned int, char const*) ()<br>
#3 0x00035a40 in printScene() ()<br>
#4 0x0001d4e8 in func_2(Expression*) ()<br>
#5 0x000330ac in ExpressionInterpreter::interpr<wbr>etCommand(std::__cxx11::basic_<wbr>string<char, std::char_traits<char>, std::allocator<char> >) ()<br>
#6 0x00018d50 in main ()<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Regards,<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Vikash<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Tue, Apr 17, 2018 at 10:51 AM, Vikas Patil <<a href="mailto:vikasmpatil@gmail.com" target="_blank">vikasmpatil@gmail.com</a>> wrote:<u></u><u></u></span></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Hi Emre,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Could you please suggest on this blocking behavior of LayerManagerControl with multi screen/layer?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Thank You.<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Best Regards,<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Vikash<u></u><u></u></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Wed, Apr 11, 2018 at 11:35 AM, Vikas Patil <<a href="mailto:vikasmpatil@gmail.com" target="_blank">vikasmpatil@gmail.com</a>> wrote:<u></u><u></u></span></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Hi Emre Ucan,<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Thanks a lot for your quick response. I am able to show same surface on two layers now. I have taken following two commit to weston 1.11.0. Attached here same as patch to weston 1.11.0.<br>
<br>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"" lang="EN-US">"5e8d55da698e58"<br>
"67bd21232fa549</span><span lang="EN-US">" <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">However if I use any of the below commands to analyze then it is not exiting and I need to prress "CTRl+C" to come out from command. Do you know if this is the normal behavior or some fix is available for this ?<br>
<br>
root@linux-a1 :~# LayerManagerControl analyze surface 10<br>
^C<br>
<br>
root@ linux-a1 :~# LayerManagerControl get scene<br>
screen 0 (0x0)<br>
------------------------------<wbr>---------<br>
- resolution: x=800, y=480<br>
- hardware layer count: 0<br>
- layer render order: 1000(0x3e8), 2000(0x7d0),<br>
<br>
layer 1000 (0x3e8)<br>
------------------------------<wbr>---------<br>
- created by pid: 0<br>
- original size: x=400, y=480<br>
- destination region: x=0, y=0, w=400, h=480<br>
- source region: x=0, y=0, w=400, h=480<br>
- orientation: 0 (up is top)<br>
- opacity: 1<br>
- visibility: 1<br>
- type: 0 (unknown)<br>
^C <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
root@linux-a1:~# LayerManagerControl get layer 1000<br>
layer 1000 (0x3e8)<br>
------------------------------<wbr>---------<br>
- created by pid: 0<br>
- original size: x=400, y=480<br>
- destination region: x=0, y=0, w=400, h=480<br>
- source region: x=0, y=0, w=400, h=480<br>
- orientation: 0 (up is top)<br>
- opacity: 1<br>
- visibility: 1<br>
- type: 0 (unknown)<br>
^C<br>
<br>
root@orinoco-9939-a1:~# LayerManagerControl get surface 10<br>
surface 10 (0xa)<br>
------------------------------<wbr>---------<br>
- created by pid: 821<br>
- original size: x=800, y=480<br>
- destination region: x=0, y=0, w=400, h=480<br>
- source region: x=0, y=0, w=800, h=480<br>
- orientation: 0 (up is top)<br>
- opacity: 1<br>
- visibility: 1<br>
- pixel format: 0 (R-8)<br>
- native surface: 0<br>
- counters: frame=0, draw=0, update=0<br>
^C <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Also following commands worked successfully.<br>
<br>
<br>
LayerManagerControl get screen 0<br>
LayerManagerControl get layer 2000<br>
LayerManagerControl get layers <br>
LayerManagerControl get surfaces<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">I used following commands to setup and test
<br>
<br>
export XDG_RUNTIME_DIR=/var/run/root/<wbr>1000<br>
<br>
LayerManagerControl create layer 1000 400 480<br>
LayerManagerControl set layer 1000 visibility 1<br>
LayerManagerControl set layer 1000 destination region 0 0 400 480<br>
<br>
LayerManagerControl create layer 2000 400 480<br>
LayerManagerControl set layer 2000 visibility 1<br>
LayerManagerControl set layer 2000 destination region 400 0 400 480<br>
<br>
LayerManagerControl set screen 0 render order 1000,2000<br>
<br>
EGLWLMockNavigation &<br>
LayerManagerControl add surface 10 to layer 1000<br>
LayerManagerControl add surface 10 to layer 2000<br>
LayerManagerControl set surface 10 visibility 1<br>
LayerManagerControl set surface 10 source region 0 0 800 480<br>
LayerManagerControl set surface 10 destination region 0 0 400 480 <u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Best Regards,<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Vikash<u></u><u></u></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Tue, Apr 10, 2018 at 7:43 PM, Ucan, Emre (ADITG/ESB) <<a href="mailto:eucan@de.adit-jv.com" target="_blank">eucan@de.adit-jv.com</a>> wrote:<u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Hi Vikas,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">This patch “5e8d55da698e58” enabled the feature. It is part of weston 1.12 release.</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Best regards</span><span style="font-size:8.0pt;color:#1f497d" lang="EN-US"><br>
</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US"><br>
</span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Emre Ucan</span></b><span style="font-size:8.0pt;color:#1f497d" lang="EN-US"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Engineering Software Base (ADITG/ESB)</span><span style="font-size:8.0pt;color:#1f497d" lang="EN-US"><br>
</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Tel. +49 5121 49 6937</span><span lang="EN-US"><u></u><u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0mm 0mm 0mm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0mm 0mm 0mm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> wayland-devel
[mailto:<a href="mailto:wayland-devel-bounces@lists.freedesktop.org" target="_blank">wayland-devel-bounces@<wbr>lists.freedesktop.org</a>]
<b>On Behalf Of </b>Vikas Patil<br>
<b>Sent:</b> Dienstag, 10. April 2018 14:58<br>
<b>To:</b> <a href="mailto:genivi-ivi-layer-management@lists.genivi.org" target="_blank">
genivi-ivi-layer-management@li<wbr>sts.genivi.org</a>; Mizuno, Wataru (ADITJ/SWG); wayland mailing list<br>
<b>Subject:</b> Same ilm surface on multiple layer support</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">+Subject<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Dear All,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">We are facing issue when we are trying to add same surface to multiple layers. When we try to attach surface to another layer, it is getting detached from the earlier
layer.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">We are using wayland/weston/wayland-ivi-ext<wbr>ension 1.11.0 with drm-backend on TI's Soc.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Could anyone know if this is the limitation of ILM 1.11.0 ? Is this fixed in newer version and can it be ported to 1.11.0 ? or Is there any other way to show same surface
on multiple layers?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I see it was the limitation with wayland-ivi-extesnion 1.9.0 as below [1].
<u></u><u></u></span></p>
<pre><i><span lang="EN-US">"Currently 1 layer can be only on 1 screen, and 1 surface can be only on 1 layer,<br> we are planning to relax this limitation And allow 1 surface to be on many layers but we would need to break the ABI and change the <br>ivi-controller protocol."</span></i><span lang="EN-US"><u></u><u></u></span></pre>
<p class="MsoNormal"><span lang="EN-US">[1]
<a href="https://lists.genivi.org/pipermail/genivi-ivi-layer-management/2016-October/005416.html" target="_blank">
https://lists.genivi.org/piper<wbr>mail/genivi-ivi-layer-manageme<wbr>nt/2016-October/005416.html</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanking you in advance.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Best Regards,<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Vikash
<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>