Tearing in OpenGL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Tearing in OpenGL

2,066 次查看
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,500 次查看
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,500 次查看
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,500 次查看
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 项奖励
回复