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 4 minutes and 55 seconds (queued for 6 seconds)
Status Job ID Name Coverage
  Docker Image
passed debian-buster #12446592

00:00:17

 
  Build And Test
passed autotools #12446593

00:04:37

passed meson #12446594

00:03:18

passed meson-noglamor #12446595

00:01:19

passed mingw-cross-build #12446596

00:01:04