modesetting: Fix dirty updates for sw rotation

Rotation is broken for all drm drivers not providing hardware rotation
support. Drivers that give direct access to vram and not needing dirty
updates still work but only by accident. The problem is caused by
modesetting not sending the correct fb_id to drmModeDirtyFB() and
passing the damage rects in the rotated state and not as the crtc
expects them. This patch takes care of both problems.

Signed-off-by: Patrik Jakobsson <pjakobsson@suse.de>
5 jobs for modesetting-fix-dirty-updates in 5 minutes and 26 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Docker Image
passed debian-buster #13708272

00:00:24

 
  Build And Test
passed autotools #13708273

00:05:01

passed meson #13708274

00:02:05

passed meson-noglamor #13708275

00:01:33

passed mingw-cross-build #13708276

00:00:48