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 20 minutes and 59 seconds (queued for 1 second)
Status Job ID Name Coverage
  Docker Image
passed #10702818
debian-buster

00:14:18

 
  Build And Test
passed #10702819
autotools

00:06:41

passed #10702820
meson

00:03:37

passed #10702821
meson-noglamor

00:02:59

passed #10702822
mingw-cross-build

00:01:22