summaryrefslogtreecommitdiff
path: root/sgm775
diff options
context:
space:
mode:
authorNariman Poushin <nariman.poushin@linaro.org>2018-08-16 17:44:02 +0530
committerArvind Chauhan <arvind.chauhan@arm.com>2018-10-30 09:21:42 +0000
commit29d7a34b004ad03e687e69fb67afbd80cfe8ac5b (patch)
tree056ac214f7302e84c9aa318bef5cf4ea77330a00 /sgm775
parentea368ecfaa413d3962e80a635e61a8e124e943fe (diff)
sgm775: Support Android
Change-Id: Ie843363cd1275131a7e8081b2b5c8e5c7a22c6c7 Signed-off-by: Nariman Poushin <nariman.poushin@linaro.org>
Diffstat (limited to 'sgm775')
-rwxr-xr-xsgm775/settings_generator.sh57
1 files changed, 57 insertions, 0 deletions
diff --git a/sgm775/settings_generator.sh b/sgm775/settings_generator.sh
new file mode 100755
index 0000000..0469d50
--- /dev/null
+++ b/sgm775/settings_generator.sh
@@ -0,0 +1,57 @@
+#!/bin/bash
+# This script generate the settings.ini file used for GGA or GRM support
+
+NORMAL_FONT="\e[0m"
+RED_FONT="\e[31;1m"
+GREEN_FONT="\e[32;1m"
+YELLOW_FONT="\e[33;1m"
+
+GGA_GRM_ENABLE="$1"
+PATH_TO_SETTINGS_INI="$2"
+
+# No path specified, use default ../..
+if [[ -z $PATH_TO_SETTINGS_INI ]]; then
+ PATH_TO_SETTINGS_INI="../..";
+ echo -e "$RED_FONT File \"settings.ini\" will be stored into \"$PATH_TO_SETTINGS_INI/settings.ini\" (default)$NORMAL_FONT" >&2
+fi
+
+# Only create settings.ini for 'gga' and 'gpu' options
+cat > $PATH_TO_SETTINGS_INI/settings.ini <<EOF
+##
+## AUTOGENERATED FILE. See `readlink -f $0` script ##
+##
+
+## Level of details in the log
+#LogLevel 0 # The Generic Graphics Accelerator issues no messages.
+#LogLevel 1 # The Generic Graphics Accelerator issues fatal messages.
+#LogLevel 2 # The Generic Graphics Accelerator issues error messages.
+#LogLevel 3 # The Generic Graphics Accelerator issues warning messages.
+#LogLevel 6565 # The Generic Graphics Accelerator issues information about the important stages of executing APIs.
+#LogLevel 6566 # The Generic Graphics Accelerator issues the names and parameters of each API that is called.
+#LogLevel 6567 # The Generic Graphics Accelerator issues detailed information for checking bugs in the Generic Graphics Accelerator.
+LogLevel 1
+
+# Enable error code checking
+checkErrorCode 0
+
+# Enable white list for error code checking
+# Prerequisites: callOnTargetAPI 1 and checkErrorCode 1
+# 0: Check error code for the whole set of EGL and GLES APIs
+# 1: Check error code for APIs in the white list from checkerrcode.ini
+enableErrorCheckWhiteList 0
+EOF
+
+if [ ${GGA_GRM_ENABLE,,} == "gpu" ]; then
+
+cat >> $PATH_TO_SETTINGS_INI/settings.ini <<EOF
+
+## Enabling GRM
+advanced 1
+
+##Set callOnTargeAPI to 1 to enable both GRM and GGA, and to 0 to enable GGA only.
+##By default, it is 0. Set to '1' for GRM
+# Call on-target driver API
+callOnTargetAPI 1
+EOF
+
+fi