AnsweredAssumed Answered

running multiple opengl instances problem for dual display(HDMI+LCD)

Question asked by tugay ilbay on Oct 11, 2018
Latest reply on Oct 11, 2018 by igorpadykov

Hi,

 

When I try to run two separate imx6 opengl demo application(for example: GLES3/S06_Texturing_FB),  one for an hdmi screen and the other one for lcd screen, both displays start stuttering. But If I kill one of the instances, the stuttering problem disappears.

 

Also, I tried a qt5 demo application named pinchzoom which displays little mice moving on the screen by drawing framebuffer using only cpu power, the movement in pinchzoom keeps stuttering but there is no stuttering in the opengl demo application. (I executed them simultaneously).

 

After that, I tried to run two pinchzoom instances simultaneously, one for hdmi and the other one for lcd screen, there does not occur any stuttering problem. The problem occurs when I run an opengl demo application.

 

Here is my system information:

Yocto: NXP yocto 4.1.15-1.0.0_ga

Linux:4.1.15-1.0.0

Processor: IMX6Q

 

&hdmi_core{

   ipu_id = <1>;

   disp_id= <1>;

   status = "okay";

};

 

&mxcfb1 {

   disp_dev = "hdmi";

   interface_pix_fmt   = "RGB24";

   mode_str   = "1920x1080M@60"

   default_bpp   = <32>;

   int_clk   = <0>;

   late_init   = <0>;

   status   = "okay";

};

 

&mxcfb2 {

   disp_dev = "lcd";

   interface_pix_fmt   = "RGB24";

   mode_str   = "1920x1080"

   default_bpp   = <32>;

   int_clk   = <0>;

   late_init   = <0>;

   status   = "okay";

};

 

I use PLL5 as a clock source for both hdmi and lcd since they need the same clock frequency(148.5 MHZ).

 

I would be grateful for your help.

Best Regards,

Tugay

Outcomes