Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99861507 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "HWUI: fix prep_buller, so it locks powerlevels for gpu"

parents 6c534d2c a5c73e38
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ void run(const TestScene::Info& info, const TestScene::Options& opts,

    std::unique_ptr<TestScene> scene(info.createScene(opts));

    Properties::forceDrawFrame = true;
    TestContext testContext;
    testContext.setRenderOffscreen(opts.renderOffscreen);

+21 −6
Original line number Diff line number Diff line
@@ -38,12 +38,27 @@ adb shell "echo 0 > /sys/class/kgsl/kgsl-3d0/bus_split"
adb shell "echo 1 > /sys/class/kgsl/kgsl-3d0/force_clk_on"
adb shell "echo 10000 > /sys/class/kgsl/kgsl-3d0/idle_timer"

#0 762 1144 1525 2288 3509 4173 5271 5928 7904 9887 11863
# angler: 0 762 1144 1525 2288 3509 4173 5271 5928 7904 9887 11863
adb shell "echo 11863 > /sys/class/devfreq/qcom,gpubw.70/min_freq" &> /dev/null
adb shell "echo 11863 > /sys/class/devfreq/qcom,gpubw.19/min_freq" &> /dev/null
# bullhead: 0 762 1144 1525 2288 3509 4173 5271 5928 7102
adb shell "echo 7102 > /sys/class/devfreq/qcom,gpubw.19/min_freq" &> /dev/null


board=$(adb shell "getprop ro.product.board")
freq=0
if [ "$board" = "bullhead" ]
then
    #600000000 490000000 450000000 367000000 300000000 180000000
    freq=300000000
else
    #600000000 510000000 450000000 390000000 305000000 180000000
echo "performance mode, 305 MHz"
    freq=305000000
fi
echo "performance mode, $freq Hz"
adb shell "echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor"
adb shell "echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq"
adb shell "echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq"
adb shell "echo $freq > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq"
adb shell "echo $freq > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq"

adb shell "echo 4 > /sys/class/kgsl/kgsl-3d0/min_pwrlevel"
adb shell "echo 4 > /sys/class/kgsl/kgsl-3d0/max_pwrlevel"
+1 −2
Original line number Diff line number Diff line
@@ -22,6 +22,5 @@ for pid in $( adb shell ps | awk '{ if ( $9 == "surfaceflinger" ) { print $2 } }
    adb shell kill $pid
done
adb shell setprop debug.egl.traceGpuCompletion 1
adb shell setprop debug.sf.nobootanimation 1
adb shell daemonize surfaceflinger
sleep 3
adb shell setprop service.bootanim.exit 1