Skip to content

vc4-kms-v3d-pi4 offscreen quad leaks to the left side of the screen buffer #3667

Closed as not planned

Description

@oomek

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

Screenshot

image0

Activity

  1. popcornmix commented on Jun 11, 2020

    @popcornmix
    Collaborator

    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.

  2. ashimokawa commented on Oct 29, 2020

    @ashimokawa

    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)

  3. 6by9 commented on Oct 29, 2020

    @6by9
    Contributor

    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.

  4. popcornmix commented on Oct 29, 2020

    @popcornmix
    Collaborator

    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).

  5. ashimokawa commented on Oct 29, 2020

    @ashimokawa

    @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

  6. ashimokawa commented on Dec 12, 2020

    @ashimokawa

    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.

  7. popcornmix commented on Dec 15, 2020

    @popcornmix
    Collaborator

    Let us know what you do to provoke it. I can see issue but the kms guy is struggling to reproduce it.

  8. ashimokawa commented on Dec 18, 2020

    @ashimokawa

    @popcornmix

    Install retropie 4.7.1 on a sd-card

    Change the config.txt

    dtoverlay=vc4-kms-v3d-pi4,noaudio
    max_framebuffers=1
    disable_overscan=1
    hdmi_force_hotplug=1
    

    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.

  9. popcornmix commented on Jun 25, 2021

    @popcornmix
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions