Skip to content

Tearing with rotated screen #328

@aromanro

Description

@aromanro

Platform

Raspbian on a compute module 3, output of uname -a
Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux

GPU, drivers, and screen setup

vc4-kms-v3d
a custom DSI panel that starts in 800x1280 mode
rotated display to landscape (1280x800) with xrandr --output DSI-1 --rotate left

Environment

I tried this with several different setups, it behaves the same.
For example, xfc4 and lxde.
vsync is working fine when the screen is not rotated, but once it's rotated, windows tearing occurs, very visible if dragging the window or scrolling.

picom version

It's compton, the one it's obtained on raspbian with apt install compton.
Trying compton --diagnostics says this:

compton: unrecognized option '--diagnostics'
compton (0.1~beta2+20150922)
usage: compton [options]

followed by the available options.

Configuration:

compton --backend glx --vsync opengl-swc --config /dev/null

But I tried a lot of other options with the same (or worse) results.
xfce4 comes with its own compositor, but that one does the same, so I switched to compton, hoping that it will work better.

Steps of reproduction

  1. Enable compton as above, at autostart (if xfce4 is used, its own one must be disabled).
  2. Rotate the screen.
  3. Drag a window around.

Expected behavior

No tearing, as in the non rotated case.

Current Behavior

Youtube video:
https://youtu.be/e4KI9Xr45q8
Sorry for the bad focus, but the effect is visible nevertheless.

More info

Apparently the issue does not exist if using Wayland/Weston. But that option has some other issues so it might not be so good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    driverDriver issues, or poor interaction between the compositor and the driverupstreamBug is upstream and there is likely not much we can do

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions