dix: Call SourceValidate before GetImage

This ensures that any prep work for the drawable we're about to read
from is already done before we call down to GetImage. This should be no
functional change as most of the callers with a non-trivial
SourceValidate are already wrapping GetImage and doing the equivalent
thing, but we'll be simplifying that shortly.

More importantly this ensures that if any of that prep work would
generate events - like automatic compositing flushing rendering to a
parent pixmap which then triggers damage - then it happens entirely
before we start writing the GetImage reply header.

Note that we do not do the same for GetSpans, but that's okay. The only
way to get to GetSpans is through miCopyArea or miCopyPlane - where the
callers must already call SourceValidate - or miGetImage - which this
commit now protects with SourceValidate.

Fixes: xorg/xserver#902
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
(cherry picked from commit 516e75db)
3 jobs for server-1.20-validate-before-getimage in 9 minutes and 22 seconds (queued for 7 minutes and 37 seconds)
Status Job ID Name Coverage
  Docker Image
passed #968161
debian-testing

00:00:27

 
  Build And Test
passed #968162
autotools-build-and-test

00:07:04

passed #968163
meson-build-and-test

00:01:50