You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vc4-kms-v3d-pi4 offscreen quad leaks to the left side of the screen buffer #3667
Describe the bug
When I draw a quad that extends beyond the right side of the screen buffer one column of pixels leaks to the left side shifted down by one pixel. This does not happen with vc4-fkms-v3d or if the max_framebuffers=2
To reproduce dtoverlay=vc4-kms-v3d-pi4 max_framebuffers=1
Window created with DRM/KMS.
Draw a quad with OpenGL that extends beyond the right side of the screen buffer.
System
PI4
Raspberry Pi reference 2020-02-13
version 6379679d1ec6a8c746d7e77e015f5b56b939976f (clean) (release) (start)
This is a known issue with the kms driver. Not related to GL - it affects any framebuffer content. It is somewhat random if you get it or not on a hdmi mode change.
We had it with fkms driver initially but was resolved with very specific sequencing of enabling hardware blocks in the display pipeline.
In the kms world with generic linux code enabling the different blocks it is a harder problem to solve, but it's on the list of things to resolve.
We are not intending to update 5.4 with the latest vc4-kms-v3d driver - there are far too many changes for it to be a trivial backport. 5.9 (and 5.10) will be the main branches for vc4-kms-v3d on Pi4.
I'm glad it's working on 5.9 though.
@popcornmix
Weird, I had that >90% after boot with 5.4 without changing mode, on 5.9 I never saw it. I might be lucky but there is definitely a huge improvement. I do not change modes often but the few occasions where I did it also did not happen on 5.9
In 5.10-rc7 this problem came back for my use case. I am sure it never happened for me during the 5.9 cycle and early 5.10-rcs.
Guess it is just random when some other code changes, timing changes, and the problem will get worse or better just by chance.
After booting, in the main menu there is a red horizontal line, you will notice that the leftmost part seems to "bend down", this is the rightmost column of the red line leaking to the left having an offset one pixel down.
This happened 90% of the time, so should be easy to reproduce. On 5.9.x to early 5.10.0-rcX I did not see that even once. At least since rc7 it is back.
There's a potential fix for the 1-pixel wrap issue when using kms in latest rpi-update kernel.
If you are currently seeing this issue, then we'd be interested in reports of behaviour after updating.
Activity
popcornmix commentedon Jun 11, 2020
This is a known issue with the kms driver. Not related to GL - it affects any framebuffer content. It is somewhat random if you get it or not on a hdmi mode change.
We had it with fkms driver initially but was resolved with very specific sequencing of enabling hardware blocks in the display pipeline.
In the kms world with generic linux code enabling the different blocks it is a harder problem to solve, but it's on the list of things to resolve.
ashimokawa commentedon Oct 29, 2020
I also had this when running 5.4.x almost every time, but it seems to be fixed in 5.9.x
(it never occurs with the current "BRANCH=next" kernel)
6by9 commentedon Oct 29, 2020
We are not intending to update 5.4 with the latest vc4-kms-v3d driver - there are far too many changes for it to be a trivial backport. 5.9 (and 5.10) will be the main branches for vc4-kms-v3d on Pi4.
I'm glad it's working on 5.9 though.
popcornmix commentedon Oct 29, 2020
It's not fixed on 5.9 - it's just intermittent. Had it on raspbian desktop yesterday and it's pretty common with kodi (which changes hdmi mode often).
ashimokawa commentedon Oct 29, 2020
@popcornmix
Weird, I had that >90% after boot with 5.4 without changing mode, on 5.9 I never saw it. I might be lucky but there is definitely a huge improvement. I do not change modes often but the few occasions where I did it also did not happen on 5.9
ashimokawa commentedon Dec 12, 2020
In 5.10-rc7 this problem came back for my use case. I am sure it never happened for me during the 5.9 cycle and early 5.10-rcs.
Guess it is just random when some other code changes, timing changes, and the problem will get worse or better just by chance.
popcornmix commentedon Dec 15, 2020
Let us know what you do to provoke it. I can see issue but the kms guy is struggling to reproduce it.
ashimokawa commentedon Dec 18, 2020
@popcornmix
Install retropie 4.7.1 on a sd-card
Change the config.txt
After booting, in the main menu there is a red horizontal line, you will notice that the leftmost part seems to "bend down", this is the rightmost column of the red line leaking to the left having an offset one pixel down.
This happened 90% of the time, so should be easy to reproduce. On 5.9.x to early 5.10.0-rcX I did not see that even once. At least since rc7 it is back.
popcornmix commentedon Jun 25, 2021
There's a potential fix for the 1-pixel wrap issue when using kms in latest rpi-update kernel.
If you are currently seeing this issue, then we'd be interested in reports of behaviour after updating.