[Cogl] Fwd: failure using cogl-gles2

Robert Bragg robert at sixbynine.org
Thu Jan 31 06:44:47 PST 2013


oops sorry, I forgot to reply-all to the list too...


---------- Forwarded message ----------
From: Robert Bragg <robert at sixbynine.org>
Date: Thu, Jan 31, 2013 at 2:42 PM
Subject: Re: [Cogl] failure using cogl-gles2
To: mahesh gawali <maheshgawali at gmail.com>


I wonder if you are running with the latest Cogl (using the cogl-1.14
branch) and Clutter (master)? I think if you are at least using the
latest 1.12 release of Cogl you should have the latest fixes for cogl
gles2 context issues we've seen.

If you haven't already built Cogl with --enable-debug that might help
to since it will enable Cogl to catch GL errors at source.

kind regards,
- Robert

On Thu, Jan 31, 2013 at 1:59 PM, mahesh gawali <maheshgawali at gmail.com> wrote:
> Thanks for the quick response Robert, Neil and Tomeu.
>
> I also have an ARM target to which i have ported webkit-clutter. I ran the
> conformity test inside cogl setup for verifying GLES2 (test-gles2-context).
> It ran fine. But am facing the same issue with webgl in webkit-clutter on
> both setups.
>
> I have an Nvidia GPU on my x86 setup and a mali-gpu on the ARM setup.
>
> Please let me know if there is anything else i can try.
>
> @Tomeu: In Webkit-clutter, do we need to change the gaurds here to
> accomodate backend=clutter
>
> Source/WebCore/platform/graphics/clutter/GraphicsContext3DPrivate.h
>
> #if USE(OPENGL_ES_2) // should we be checking backend==clutter also here ?
>     CoglGLES2Context *m_gl_context;
> #else
>     CoglContext *m_gl_context;
> #endif
>
>
> for webkit-clutter my config options are:
> ./configure --prefix=/home/user/install-webkit
> --enable-accelerated-compositing=yes --enable-webgl=yes --with-port=clutter
> --with-acceleration-backend=clutter --enable-animation-api=yes
> --with-target=x11
>
>
> --
> Mahesh
>
>
>
>
>
> - Mahesh
>
>
> On Wed, Jan 30, 2013 at 10:01 PM, Tomeu Vizoso <tomeu at tomeuvizoso.net>
> wrote:
>>
>> On 30 January 2013 16:03, Neil Roberts <neil at linux.intel.com> wrote:
>>>
>>> Robert Bragg <robert at sixbynine.org> writes:
>>>
>>> > In the case of webkit-clutter since the CoglGLES2Context api is
>>> > currently documented to only work with the gles2 driver then
>>> > webkit-clutter should probably be trying to explicitly create a
>>> > context with a native gles2 driver.
>>>
>>> There is also a constraint for creating GLES2 contexts which
>>> webkit-clutter could use called
>>> COGL_RENDERER_CONSTRAINT_SUPPORTS_COGL_GLES2. It would be nicer if it
>>> used that so it would automatically switch to using the GL driver if
>>> Cogl was eventually able to support GLES2 contexts there.
>>
>>
>> Filed it here, patches welcome :)
>>
>> https://webkit-clutter.collabora.co.uk/ticket/76
>>
>> Regards,
>>
>> Tomeu
>
>


More information about the Cogl mailing list