[cairo] Cairo with OpenGLES
Singh Khurdiya Vijay (CM-AI/EAR)
Vijay.SinghKhurdiya at de.bosch.com
Fri Jul 29 01:00:27 PDT 2011
Can anyone give me any hint to improve performance part of gles2 Cairo backend...
Do I have to use GL_IMG_texture_stream extension....??
Thanks...
-----Original Message-----
From: cairo-bounces+vijay.singhkhurdiya=de.bosch.com at cairographics.org [mailto:cairo-bounces+vijay.singhkhurdiya=de.bosch.com at cairographics.org] On Behalf Of Singh Khurdiya Vijay (CM-AI/EAR)
Sent: Mittwoch, 27. Juli 2011 18:13
To: Alexandros Frantzis
Cc: cairo at cairographics.org
Subject: Re: [cairo] Cairo with OpenGLES
Hello,
Now test are working for gl as well. (Only modification from your base code is disabling check of GL_OES_teture_npot (IMG doesn't give same extension..) & making texture target is GL_TEXTURE_2D )
But I don't found much performance improvement (No H/W accerlation..).I have IMG pvr graphic library.
Do anyone have any idea about how to get performance improvement with IMG pvr graphic ??
Any suggestion will be helpful..
Thanks...
-----Original Message-----
From: cairo-bounces+vijay.singhkhurdiya=de.bosch.com at cairographics.org [mailto:cairo-bounces+vijay.singhkhurdiya=de.bosch.com at cairographics.org] On Behalf Of Singh Khurdiya Vijay (CM-AI/EAR)
Sent: Dienstag, 26. Juli 2011 10:54
To: Alexandros Frantzis
Cc: cairo at cairographics.org
Subject: Re: [cairo] Cairo with OpenGLES
Hello,
Thanks for test..
I am able to run test .Please find attached result sheet with different backed.
In the case of gl backed test is running (With Good FPS..) but graphic is not visible on the display (Only In the case of TRAP test gl backed graphic is visible on the screen, but same test is not showing good result) but all other backed graphic is visible on display.
Below is slight modification from your source .
In Cairo :
- Currently my glesv2 lib doesn't support GL_OES_teture_npot so for time being I have disable same from cairo-gl-device.c file (cairo_gl_context_init).
- On X window my graphic is working only with rgb565 so I am using egl_config accordingly.
In Test :
- On X window my graphic is working only with rgb565 so I am using egl_config accordingly.
Can you please give me hint what went wrong in the case of gl-backend.
Thanks....
-----Original Message-----
From: Alexandros Frantzis [mailto:alexandros.frantzis at linaro.org]
Sent: Montag, 25. Juli 2011 14:17
To: Singh Khurdiya Vijay (CM-AI/EAR)
Cc: Benjamin Franzke; cairo at cairographics.org
Subject: Re: [cairo] Cairo with OpenGLES
On Mon, Jul 25, 2011 at 11:01:42AM +0200, Singh Khurdiya Vijay (CM-AI/EAR) wrote:
> Thanks...Now it build's.
>
> Initially I was also trying with only gles2 but I was getting some error from header & once I enabled gl I was not getting same error from header so I thought enable-gl also required.
> Once u confirmed I tried to check header properly & found gles2 header was not proper & after changing header I got error solved..
>
> As I mentioned earlier if anyone have test case to test gles2 then please share the same.
One idea is to use the cairo test suite (use test target 'egl').
If you need a simple sample application, I have ported cairogears to gles2. Get it from:
http://people.linaro.org/~afrantzis/cairogears-0~git20100719.2b01100+gles2.tar.gz
This is actually a debian source package with patches already applied to
the tree, but you can just treat it as a normal source tarball. To see
what changes have been applied look in debian/patches/*.
To build with GLX or GLES2 support use Makefile.glx or Makefile.es2 respectively.
(or use it as a base to create your own if cairo with gl/gles2 support is
not installed system-wide).
Depending on the kind of build, the '-gl' command line option will use cairo-gl
or cairo-gles2.
Thanks,
Alexandros
--
cairo mailing list
cairo at cairographics.org
http://lists.cairographics.org/mailman/listinfo/cairo
More information about the cairo
mailing list