Fix HW rotation

Change-Id: I2d450e12d371acfa3beb4e2e96fc3253658ec9a6