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

View File

@@ -1,31 +0,0 @@
#==============================================================================
# init.qti.graphics.rc
#
# Copyright (c) 2023-2024 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#===============================================================================
service vendor_qti_graphics_boot /vendor/bin/init.qti.graphics.sh
class main
user shell
group shell
disabled
oneshot
on early-init
start vendor_qti_graphics_boot
on early-fs && property:vendor.display.gpu_rendering=true
setprop ro.hardware.vulkan adreno
setprop ro.hardware.egl adreno
setprop ro.opengles.version 196610
setprop vendor.gralloc.disable_ubwc 0
setprop ro.hwui.use_vulkan true
on early-fs && property:vendor.display.gpu_rendering=false
setprop ro.hardware.vulkan pastel
setprop ro.hardware.egl angle
setprop ro.opengles.version 196609
setprop vendor.gralloc.disable_ubwc 1
setprop ro.hwui.use_vulkan false