i965,iris/blorp: do not blit 0-sizes

Seems there is no sense in blitting 0-sized sources
or destinations.
Additionaly it may cause segfaults for i965.

v2: Function call replaced with inline check

v3: Added check to avoid devision by zero (L. Landwerlin)

v4: Added simillar check for Iris (L. Landwerlin)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110239
CC: Jason Ekstrand <jason.ekstrand@intel.com>
CC: Lionel G Landwerlin <lionel.g.landwerlin@intel.com>
CC: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
15 jobs for !522 with fix/110239_blit-negative_coordinates in 12 minutes and 16 seconds (queued for 1 second)
latest detached
Status Job ID Name Coverage
  Containers Build
passed #197964
ubuntu

00:00:27

 
  Build+Test
passed #197965
autotools

00:11:47

passed #197967
meson-clang

00:09:33

passed #197973
meson-gallium-clover-llvm

00:04:03

passed #197974
meson-gallium-clover-llvm39

00:06:03

passed #197972
meson-gallium-drivers-other

00:01:55

passed #197971
meson-gallium-radeonsi

00:01:33

passed #197975
meson-gallium-st-other

00:01:41

passed #197966
meson-gallium-swr

00:07:41

passed #197970
meson-glvnd

00:01:57

passed #197969
meson-loader-classic-dri

00:07:35

passed #197968
meson-vulkan

00:02:07

passed #197977
scons-llvm

00:05:10

passed #197976
scons-nollvm

00:06:13

passed #197978
scons-swr

00:05:06