Shared context problem

This topic contains 6 replies, has 2 voices, and was last updated by  Joe Davis 2 years, 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #49993

    Jason
    Member

    I am trying to create two contexts, context1 and context2 where context2 passes context1 as the sharedContext parameter of eglCreateContext. I started with the Hello_Triangles example from https://www.khronos.org/assets/uploads/books/openglr_es_20_programming_guide_sample.pdf and added a second thread. I extended the CreateEGLContext function to create two contexts, context1 & context2. I also moved the call to Init from main to the thread function.

    The example doesn’t work if context2 passes context1 as the “shared context” parameter of eglCreateContext but it does if I pass EGL_NO_CONTEXT.

    I’ve attached the three files that I modified to this message.

    Any ideas why the shared context doesn’t work?

    #49995

    Joe Davis
    Member

    Hi Jason,

    I’ve attached the three files that I modified to this message.

    I can’t see your attachments. We’ve been having some issues with the attachment system lately, so it may be a problem on our side (I’ll chase up the web team about this). Would it be possible to host the files on another service, e.g. Dropbox or Pastebin, and share a URL with us?

    We have a multi-threading demo in our SDK where a shared context is used to load resources on a background thread. You can find the source code for the demo here: https://github.com/powervr-graphics/Native_SDK/tree/3.5/Examples/Intermediate/MultiThreading

    #49996

    Jason
    Member

    Apparently .c & .h files are also blocked. I have put them on DropBox. https://www.dropbox.com/sh/jxxv14nwte31fnf/AACDaxbx-qzD5vxtYdEDYPaqa?dl=0

    #50007

    Jason
    Member

    Has anyone had a chance to look at the sample code that I posted on dropbox? I have looked at the multithreaded sample but there are some differences. For one, it doesn’t attempt to render on the second thread. Another difference that comes to mind is that the thread that creates the window and has the message pump is the same thread that does the rendering. For various reasons I can’t set mine up that way.

    #50073

    Joe Davis
    Member

    Hi Jason,

    Apologies for the delayed response. I’ve replied to your email, but will continue posting updates in this chain so other developers can benefit from seeing the discussion.

    From your email, it seems that you encountered this problem in our PVRVFrame emulator rather than PowerVR graphics drivers. I’ll ask the PVRVFrame lead engineer to take a look at the source code example you have provided.

    Thanks,
    Joe

    #50074

    Jason
    Member

    I was using PVRVFrame version 10.1.

    #50124

    Joe Davis
    Member

    The PVRVFrame lead was able to reproduce the issue. Unfortunately, he hasn’t been able to isolate the cause. It’s unlikely we will have time to fix the issue for our upcoming 4.0 SDK. We’ve filed the bug as BRN57422 in our tracker and will aim to resolve the issue in a future release.

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.