<font size=2 face="sans-serif">Hello All,</font>
<br>
<br><font size=2 face="sans-serif">Got one more insight, which may help
further solving the issue.</font>
<br><font size=2 face="sans-serif">Going through the OpenGL ES extensions
I could see that only GL_EXT_disjoint_timer_query is mentioned and not
GL_EXT_timer_query.</font>
<ul>
<li><font size=2 face="sans-serif">Ref: </font><a href=www.khronos.org/registry/gles/#spec2><font size=2 face="sans-serif">www.khronos.org/registry/gles/#spec2</font></a></ul><font size=2 face="sans-serif">Is
this the reason the GPU profiling is not happening on Mobile platform using
OpenGL ES (as the specification itself is non existent)?</font>
<br><font size=2 face="sans-serif">I am trying to see in the apitrace code
if I can work this out, allowing the GL_EXT_disjoint_timer_query call.</font>
<br><font size=2 face="sans-serif">Anyone who have experience in the side,
kindly do let me know your view.</font>
<br><font size=2 face="sans-serif"><br>
Thanks & Regards<br>
Arun S L</font>
<br>
<br>
<br>
<table width=100% style="border-collapse:collapse;">
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">Arun
Sl/HYD/TCS</font>
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">juha-pekka.heikkila@linux.intel.com</font>
<tr height=8>
<td width=96 valign=top style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">apitrace@lists.freedesktop.org</font>
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">12/13/2013
01:00 PM</font>
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">Re:
[apitrace] Regarding egl retrace</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=2 face="sans-serif">Hello Juha,<br>
<br>
Got my hands on a Google Nexus with Android 4.2.1 still I am getting the
following error while running the trace I took from an emulator.<br>
<br>
--pcpu works fine and I get the replay display properly.<br>
<br>
D:\>adb shell LD_LIBRARY_PATH=/data/local/tmp/1:LD_LIBRARY_PATH /data/local/tmp/1/eglretrace
--pcpu --pgpu /data/local/tmp/1/t1.trace<br>
# call no gpu_start gpu_dura cpu_start cpu_dura vsize_start vsize_dura
rss_start rss_dura pixels program name<br>
Error: Cannot run profile, GL_EXT_timer_query extension is not supported.<br>
<br>
Thought it was only a problem with Mesa Libraries in desktop, why same
error is shown while running on Nexus as well?<br>
<br>
One more doubt I have, while doing replay, I get the trace cut as the game
runs in landscape mode but in emulator the replay plays it in portrait
mode.</font>
<br><font size=2 face="sans-serif"><i>------------------------------------------------------------------------------------------</i></font>
<br><font size=2 color=#808080 face="Courier New"><i><br>
Thanks and Regards,<br>
</i></font><tt><font size=2 color=#808080><i>juha-pekka.heikkila@linux.intel.com,
</i></font></tt><font size=2 color=#808080 face="Courier New"><i><br>
Arun S L</i></font>
<br><font size=2 color=#a1009f face="sans-serif"><br>
-----Arun Sl/HYD/TCS wrote: -----</font>
<br><font size=2 face="sans-serif">To: apitrace@lists.freedesktop.org<br>
From: Arun Sl/HYD/TCS<br>
Date: 12/03/2013 11:16AM<br>
cc: juha-pekka.heikkila@linux.intel.com<br>
Subject: Re: [apitrace] Regarding egl retrace<br>
<br>
Hello All,<br>
<br>
Can anyone in this list help me with the issues described in the mails
below?<br>
<br>
Thanks & Regards<br>
Arun S L<br>
<br>
</font><font size=2 color=#424282 face="sans-serif">Juha-Pekka Heikkilä
---11/28/2013 05:21:56 PM---Hei Arun, This problem is a bit beyond me without
digging deeper with a debugger. I</font><font size=2 face="sans-serif"><br>
</font>
<table width=100% style="border-collapse:collapse;">
<tr valign=top height=8>
<td width=21% style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<br><font size=2 color=#5f5f5f>From:</font>
<td width=78% style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=2><br>
Juha-Pekka Heikkilä <juha-pekka.heikkila@linux.intel.com></font>
<tr valign=top height=8>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<br><font size=2 color=#5f5f5f>To:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=2><br>
"Arun Sl" <arun.sl@tcs.com></font>
<tr valign=top height=8>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<br><font size=2 color=#5f5f5f>Date:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=2><br>
11/28/2013 05:21 PM</font>
<tr valign=top height=8>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<br><font size=2 color=#5f5f5f>Subject:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=2><br>
Re: [apitrace] Regarding egl retrace</font></table>
<br>
<hr><font size=2 face="sans-serif"><br>
<br>
<br>
Hei Arun,<br>
<br>
This problem is a bit beyond me without digging deeper with a debugger.
I<br>
think you would get good answers for this problem from the Apitrace list.<br>
I can see where the error is emitted from inside Mesa but don't really<br>
know what is causing it here.<br>
<br>
/Juha-Pekka<br>
<br>
On Thu, November 28, 2013 1:08 pm, Arun Sl wrote:<br>
> Hello Juha,<br>
><br>
> I got the following error now:<br>
><br>
> $ glretrace --pgpu app_process.trace<br>
> # call no gpu_start gpu_dura cpu_start cpu_dura vsize_start vsize_dura<br>
> rss_start rss_dura pixels program name<br>
> X Error of failed request:  GLXBadProfileARB<br>
>   Major opcode of failed request:  153 (GLX)<br>
>   Minor opcode of failed request:  34 ()<br>
>   Serial number of failed request:  22<br>
>   Current serial number in output stream:  20<br>
><br>
> PS: changed the subject line as we are now discussing a different
topic :)<br>
><br>
> Thanks & Regards<br>
> Arun S L<br>
><br>
><br>
><br>
> From:<br>
> Juha-Pekka Heikkilä <juha-pekka.heikkila@linux.intel.com><br>
> To:<br>
> "Arun Sl" <arun.sl@tcs.com><br>
> Date:<br>
> 11/28/2013 02:58 PM<br>
> Subject:<br>
> Re: [waffle] Compiling waffle against latest Android source tree<br>
><br>
><br>
><br>
> Hi Arun,<br>
><br>
> GL_EXT_timer_query is GL extension. You could try if glretracer works
for<br>
> you on the desktop for profiling, the code that will be executed is
anyhow<br>
> the same inside Mesa. I don't know how other's use this in Apitrace
but<br>
> you could ask on the Apitrace list, I am actually now also interested
to<br>
> know. :)<br>
><br>
> Of course you have to remember the numbers you get from profiling
on<br>
> desktop are not comparable to numbers you get from your embedded device<br>
> unless you are working with Intel GenX graphics also on the embedded<br>
> device. Different HW accelerators and different drivers even for the
same<br>
> accelerator behave very differently.<br>
><br>
> /Juha-Pekka<br>
><br>
><br>
> On Thu, November 28, 2013 10:26 am, Arun Sl wrote:<br>
>> Hello Juha,<br>
>><br>
>> I do not have a device with me to test right away, we are in process
of<br>
>> procuring.<br>
>><br>
>> I am not able to do gpu profiling for the traces taken on emulator
on<br>
>> emulator or on desktop.<br>
>><br>
>> My display hardware details are as follows:<br>
>><br>
>> *-display<br>
>>              description: VGA
compatible controller<br>
>>              product: 2nd Generation
Core Processor Family Integrated<br>
>> Graphics Controller<br>
>>              vendor: Intel
Corporation<br>
>>              physical id: 2<br>
>>              bus info: pci@0000:00:02.0<br>
>>              version: 09<br>
>>              width: 64 bits<br>
>>              clock: 33MHz<br>
>>              capabilities:
msi pm vga_controller bus_master cap_list rom<br>
>>              configuration:
driver=i915 latency=0<br>
>>              resources: irq:42
memory:fe000000-fe3fffff<br>
>> memory:d0000000-dfffffff ioport:f000(size=64)<br>
>><br>
>> My desktop version when run for gpu profiling, it gives the following<br>
>> error (error is same when the binary is run for gpu profiling
within<br>
>> amdroid emulator):<br>
>><br>
>> ~$ eglretrace --pgpu app_process.trace<br>
>> libEGL warning: failed to create a pipe screen for i965<br>
>> # call no gpu_start gpu_dura cpu_start cpu_dura vsize_start vsize_dura<br>
>> rss_start rss_dura pixels program name<br>
>> Error: Cannot run profile, GL_EXT_timer_query extension is not<br>
> supported.<br>
>><br>
>> I guess this means that the Mesa libraries for libEGL does not
have the<br>
>> GL_EXT_timer_query extention implemented. And since the same library
is<br>
>> used in emulator also (as we are making use of host gpu capabilities
on<br>
>> emulator) there also this fails. So to profile I will have to
have a<br>
> real<br>
>> device. Is there any update you may know which will help get gpu<br>
> profiling<br>
>> info on desktop?<br>
>><br>
>> PS: if I run native openGL applications (I guess they make use
of libGL<br>
>> library), the GPU profiling works on desktop.<br>
>><br>
>> Thanks & Regards<br>
>> Arun S L</font>
<br>
<br><p>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</p>

<p></p>