compositor: do not round a zero area to non-zero
compositor: do not round a zero area to non-zero

surface_accumulate_damage() will call surface_compute_bbox() with the
extents of the surface damage region, for transformed surfaces only. If
there is no damage, surface_compute_bbox() will round up the empty
rectangle to a 1x1 rectangle. Triangles are produced for this 1x1
rectangle intersected with the surface.

The problem showed up with the triangle fan debug, where some seemingly
garbage pixels showed up relative to rotated surfaces.

Fix this by explicitly checking, that the area, for which a bounding box
is being computed for, is not zero.

Note, that the bbox will also be empty if only one of width and height
is zero. We do not paint things with zero thickness.

Signed-off-by: Pekka Paalanen <6c0263d81461c956d504307112a4ce25eaacc3d1@gmail.com>
Cc: Rob Clark <e4b68ba543616fa01f7d35cc4057ddf9f04ce2e6@linaro.org>

xorgy/weston,jonnylamb/weston,mchalupa/weston,udoprog/weston,Gnurou/weston,giucam/weston,krezovic/weston,sir-murray/weston,xorgy/weston,eyolfson/weston,Tarnyko/weston-xdg_surface_present,Tarnyko/weston-xdg_surface_present,giucam/weston,eyolfson/weston,Fantu/compositor-spice,udoprog/weston,krezovic/weston,Fantu/compositor-spice,jonnylamb/weston,kwm81/weston,kwm81/weston,sir-murray/weston,Fantu/compositor-spice,Gnurou/weston,mchalupa/weston