peridot: Set graphics configs directly

Change-Id: I06f163d638655df2c4e969f9724d8247258f4c05
This commit is contained in:
AdarshGrewal
2025-08-16 01:07:32 +05:30
parent c44c8bc832
commit 9a082af493
3 changed files with 0 additions and 61 deletions

View File

@@ -1,28 +0,0 @@
#! /vendor/bin/sh
#==============================================================================
# init.qti.graphics.sh
#
# Copyright (c) 2023 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#===============================================================================
egl_vendor=`getprop ro.hardware.egl`
#Avoid setting the properties if already set
if [[ "$egl_vendor" != "adreno" ]]; then
soc_subset_parts=0
if [ -f /sys/devices/soc0/subset_parts ]; then
soc_subset_parts=`cat /sys/devices/soc0/subset_parts` 2> /dev/null
fi
#GPU - bit 1
gpu_mask=0x00000002
is_no_gpu=$(( gpu_mask&soc_subset_parts ))
if [ $is_no_gpu -eq 2 ]; then
setprop vendor.display.gpu_rendering false
else
setprop vendor.display.gpu_rendering true
fi
fi