gcx: adjust cache rect based on orientation

Change-Id: I542f015e7ce79098143057f21ffb2b8341e03c86
Signed-off-by: Jack Yen <jyen@ti.com>