gcx: added source rectangle validation.

Also debug logging improved.

Change-Id: I18feb62b02afef17a6aac5f5bc977edd7d4dbaaa
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>