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

Open
#3,667 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, linux

Research direction

Start by reproducing the artifact with vc4-kms-v3d-pi4, max_framebuffers=1, DRM/KMS, and a quad extending beyond the right edge. Compare it with vc4-fkms-v3d and max_framebuffers=2, then trace the Raspberry Pi vc4 KMS/V3D path. Done means the offscreen quad no longer leaks pixels into the left side while the comparison configurations continue to work.

Written by the indexing model from the issue text.

Description

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)
  • Linux retropie4 5.4.44-v7l+ #1320 SMP Wed Jun 3 16:13:10 BST 2020 armv7l GNU/Linux

Screenshot

image0

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.