Enable EXPENSIVE_RENDERING power hint
GPU takes long time (>8ms) when app launch animation and some pip case.
When doing animation, GPU needs to handle some heavy tasks like color
conversion, app rounded corner. Enable the expensive rendering hint to
raise the gpu frequency to avoid frame drop due to long gpu completion.
Bug: 179007786
Test: 1. Open Chrome/Chrome with pip from homescreen
Swipe vertically to go back to home screen
Measure the gpu completion time and "FrameMissed" count from systrace result
2. 4K60fps HDR Video playback and measure the DoU Power impact
Change-Id: I37f92018e5fd5a925189431db39409f11079b778
diff --git a/powerhint_a1.json b/powerhint_a1.json
index a526b0f..098efd4 100644
--- a/powerhint_a1.json
+++ b/powerhint_a1.json
@@ -65,6 +65,9 @@
"Path": "/sys/devices/platform/1c500000.mali/scaling_min_freq",
"Values": [
"151000",
+ "302000",
+ "455000",
+ "572000",
"670000"
],
"DefaultIndex": 0,
@@ -115,6 +118,15 @@
],
"ResetOnInit": true,
"Type": "Property"
+ },
+ {
+ "Name": "PowerHALRenderingState",
+ "Path": "vendor.powerhal.rendering",
+ "Values": [
+ "EXPENSIVE_RENDERING",
+ ""
+ ],
+ "Type": "Property"
}
],
"Actions": [
@@ -291,6 +303,18 @@
"Node": "LimitFlashCurrent",
"Duration": 0,
"Value": "1500"
+ },
+ {
+ "PowerHint": "EXPENSIVE_RENDERING",
+ "Node": "PowerHALRenderingState",
+ "Duration": 0,
+ "Value": "EXPENSIVE_RENDERING"
+ },
+ {
+ "PowerHint": "EXPENSIVE_RENDERING",
+ "Node": "GPUMinFreq",
+ "Duration": 0,
+ "Value": "455000"
}
]
}