Tearing in OpenGL

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Tearing in OpenGL

2,121件の閲覧回数
Balazs1z
Contributor I

Hello,

 

I am playing with OpenGL on a custom i.MX515 board. Unforunatelly i can observe some tearing while im running the OpenGL demos or my software. Also when i start my program a warning message is displayed:

Color formats don't match.  Falling back to copy forward swap.

My framebuffer color depth is 16 bit as reported by the kernel and the display config is requested as 5/6/5/0 in OpenGL.

Have any of you seen this problem? Where should i fix the color format?

I assume this should fix my problem with the tearing.

 

Many thanks in advance for any help,

Balazs

ラベル(1)
タグ(2)
0 件の賞賛
返信
3 返答(返信)

1,555件の閲覧回数
Balazs1z
Contributor I
Hi Brian, Yep that was the problem. Fixed the issue by setting the framebuffer to 32bit and requesting a 8/8/8/8 config. Thanks, Balazs
0 件の賞賛
返信

1,555件の閲覧回数
smspatrick
Contributor III

Hi Balazs,

I'm having the same issue, but absolute need the 8888 setup. Can you tell please how you set the frambuffer bpp? At Runtime via ioctl or during system boot in device register? It seems that my fb-dev is big enough (>33M (from fixed-info smem) @ 1024*720*32bpp) so reset the bpp info should be possible.

thanks

0 件の賞賛
返信

1,555件の閲覧回数
BrianMurray
Contributor I

Make sure you are getting back a 565 config as setting those as a minimum in the config struct doesn't necessarily mean you are getting it (e.g. the first config returned could be 888).  Also, it could be failing swap if the virtual size of the famebuffer isn't big enough for triple buffering.  Try using fbset to increase the vertical size to 4x the frame size (3x for triple buffering and some extra to account for alignment).  

-Brian

0 件の賞賛
返信