gfx_test: Add rotation parameter
Pass the requested rotation through to libgfxinit and enable Y tiling
in case of 90° rotations.
Change-Id: Icc4c4ee1ce43ecf1603cb673f1a10609494f757d
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/22713
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
diff --git a/gfxtest/gfx_test.sh b/gfxtest/gfx_test.sh
index 9df0005..0115443 100755
--- a/gfxtest/gfx_test.sh
+++ b/gfxtest/gfx_test.sh
@@ -2,7 +2,7 @@
set -e
-usage="Usage: $0 [seconds]\n"
+usage="Usage: $0 [<delay seconds> [(0|90|128|270)]]\n"
err_msgs=
command -v chvt >/dev/null || err_msgs="${err_msgs}"'Need `chvt`\n'
@@ -13,7 +13,7 @@
[ -x build/gfx_test ] || \
err_msgs="${err_msgs}"'Please run from *libgfxinit* source dir and build `gfx_test` first.\n'
-[ "$#" -gt 1 ] && err_msgs="${err_msgs}${usage}"
+[ "$#" -gt 2 ] && err_msgs="${err_msgs}${usage}"
if [ -n "$err_msgs" ]; then
printf "$err_msgs"