Code: Select all
sudo apt install apt-file && sudo apt-file update
Code: Select all
apt-file search xf86drm.h
Code: Select all
sudo apt install apt-file && sudo apt-file update
Code: Select all
apt-file search xf86drm.h

Ooh, useful tool. You're never too old to learn something new (but sometimes you promptly forget it again!)jdonald wrote: ↑Mon Jun 22, 2020 2:20 amTry setting upthenCode: Select all
sudo apt install apt-file && sudo apt-file updateI'm not logged into a Pi at the moment, but x86_64 Debian Buster is probably the same in this case and apparently the header is part of libdrm-devCode: Select all
apt-file search xf86drm.h

The whole point of moving to DRM is what you do becomes generic rather than Pi specific.alanbork wrote: ↑Sat Jun 20, 2020 9:44 pmI'm trying to do the same thing but getting stopped at an earlier point: #include <xf86drm.h>
what should I apt-get to install the proper version of DRM? all the copies I can find on the internet are incredibly generic and seem very unlikely to properly target the pi hardware.

Have you disabled overscan?alanbork wrote: ↑Mon Jun 22, 2020 3:47 pmIt seems like the DRM implementation on the Pi isn't quite ready for prime time, though? Everything I render at 0,0 is shifted down; 20 pixels from the top of the screen in 720p, about 200 pixels in 480p. Same code (generic examples from RAYLIB) work perfectly in the pi zero. Anybody else seen a similar issue?
using raspi-config I've tried both with and without over-scan. Note that the framebuffer console doesn't have the same issue - it's only once GL is controlling the display.6by9 wrote:Have you disabled overscan?alanbork wrote: ↑Mon Jun 22, 2020 3:47 pmIt seems like the DRM implementation on the Pi isn't quite ready for prime time, though? Everything I render at 0,0 is shifted down; 20 pixels from the top of the screen in 720p, about 200 pixels in 480p. Same code (generic examples from RAYLIB) work perfectly in the pi zero. Anybody else seen a similar issue?

OK, one thing eliminated. So what code are you actually running?

proper VSYNC is critical to my use case, which is measuring input lag in the monitor: https://alantechreview.blogspot.com/202 ... berry.html6by9 wrote: "vcgencmd dispmanx_list" will list out the planes that the firmware thinks it is displaying, along with the source and destination rectangles. Please report back what that says is being rendered.
There is an underlying issue with VSYNC in FKMS so you may just be seeing tearing where you've started to update the frame you think is off the display but isn't yet.
Unfortunately that does seem to be the case. I found I was unable to eliminate tearing on the RPi4, and found this post from
tombsar wrote:Unfortunately that does seem to be the case. I found I was unable to eliminate tearing on the RPi4, and found this post froman Engineer6by9 saying it's a known issue. viewtopic.php?p=1583405#p1583405

Bummer. That means the end of CLI graphics support on the Pi4? Having read that thread and googled it I'm not 100% convinced that's correct but it sure seems like it.dom wrote: vsync issues are unlikely to be fixed on fkms (the api's involved just don't provide enough precision).
Development is focused on the kms driver, so if this is important to you then it's best to test that.
See the 5.4 kernel/kms test thread.

No idea what you mean. There is zero difference to the applications supported whether you are running fkms or kms.
