This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Is it possible to display to both SD and HDMI using openGL?

Other Parts Discussed in Thread: TVP5150

I'm using a DM8148 device, and I want to know if I can display to both SD and HDMI using openGL.  If it is possible, how do I do this?

Thanks,

Kim

  • Hello,

    Check here:
    processors.wiki.ti.com/.../Qt_Tips

    Runing Qt applications with OpenGLES acceleration
    Using Multiple Displays


    Best Regards,
    Margarita
  • Hi Margarita,
    Sorry it took me a while to get back to you. I was reviewing the Qt code to see what it was doing (plus I got sidetracked on other stuff). Currently I am not using Qt. But I did look through the qt code and it doesn't look like it's doing anything out of the ordinary.

    I'm using the bufferclass module with powervr, omaplfb. I've followed the instructions here:

    processors.wiki.ti.com/.../Graphics_SDK_Quick_installation_and_user_guide
    The Qt link you provided uses LinuxFb but I think I am using the ti81xxfb.

    this is a list of the modules I have installed:
    Module Size Used by
    bufferclass_ti 5350 0
    omaplfb 10706 0
    pvrsrvkm 168705 2 bufferclass_ti,omaplfb
    ti81xxvin 19536 0
    tvp5150 14868 3
    ti81xxvo 21302 0
    ti81xxhdmi 23168 0
    ti81xxfb 21979 1
    vpss 77048 5 omaplfb,ti81xxvin,ti81xxvo,ti81xxhdmi,ti81xxfb
    syslink 1129879 0
    ti81xx_pcie_bootdrv 8687 0
    cmemk 20351 0

    When I insert the omaplfb.ko module, it automatically enables graphics0 (/sys/devices/platform/vpss/graphics0). I can open graphics1 or graphics2 if I perform an open command in my program, like this:
    const char fbdev[] = "/dev/fb1";
    fd = open(fbdev, O_RDWR);

    When I issue this code though: dpy = eglGetDisplay((EGLNativeDisplayType) 1);
    it errors when I issue eglInitialize(dpy, NULL, NULL);
    The Qt code, like I said, doesn't appear to do anything special. So I'm wondering if it's some frame buffer setting I don't have correct. Or maybe I can not do the above (eglGetDisplay)? Or does the omaplfb module only allow for one frame buffer, and I cannot use fb1 or fb2?

    Thanks,
    Kim

  • Hello,

    You could check this e2e thread about display on SD and HDMI display.

    e2e.ti.com/.../982915

    Hope it helps.

    Best Regards,
    Margarita