gcx: added geometry check.

An additional geometry check to prevent the user
from supplying invalid geometry and causing L3 errors.

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