显示画面撕裂问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

显示画面撕裂问题

2,930 Views
1182614726
Contributor III

大家好,

目前使用的imx6solo芯片,bsp为Linux4.1.15版本,目前在显示的时候遇到一个问题:

1.静态显示kernel logo没有问题

2.如果编译一个应用程序,每隔1s向framebuffer分别写入红色和蓝色,正常的显示效果应该是红色画面和蓝色画面每隔1s交替显示

3.目前的问题是,从红色画面切换到蓝色画面或者从蓝色画面切换到红色画面的时候,能够看到有一条横线,随着画面的动态切换,可以看到横线从屏幕上方逐渐移动到屏幕下方,周而复始。

4.使用逻辑分析仪,抓取vsync信号和red通道的data数据发现,在红色切换到蓝色的第一帧,蓝色数据只刷新了一半,而剩下数据仍然为旧的红色数据,进而可以解释横线问题

5.仔细看到显示参数,vysnc,hsync,clock参数等均与显示屏规格书一致,请问要如何解决呢?

非常感谢

Labels (1)
0 Kudos
6 Replies

2,676 Views
1182614726
Contributor III

tearing.png

0 Kudos

2,676 Views
1182614726
Contributor III

图片为抓取的vsync和data数据,第一栏为vsync信号,第五六栏为data数据,只是红色通道数据,可以看到在切换为红色数据时,第一帧只刷新了一小半,后面的帧是正常的

0 Kudos

2,676 Views
1182614726
Contributor III
0 Kudos

2,676 Views
jimmychan
NXP TechSupport
NXP TechSupport

the video cannot play. could you attach the video again?

how you change the color on the screen? are you fill the FB and the display the FB on the screen?

0 Kudos

2,676 Views
1182614726
Contributor III

你好,应用程序中,使用mmap函数映射出framebuffer的基地址,然后使用for循环写入红色和蓝色。

0 Kudos

2,676 Views
1182614726
Contributor III
0 Kudos