Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to enable angle and vulkan as backend #2143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions groups/graphics/auto/auto_hal.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ has_virgl() {
update_graphics_driver_prop() {
if [ "$(has_intel_gpu)" = "1" ]; then
echo "Use Intel GPU for rendering"
{{#use_vulkan}}
setprop vendor.egl.set angle
{{/use_vulkan}}
{{^use_vulkan}}
setprop vendor.egl.set mesa
{{/use_vulkan}}
setprop vendor.vulkan.set intel
elif [ "$(has_virgl)" = "1" ]; then
echo "Use virtio-GPU for rendering"
Expand Down
3 changes: 3 additions & 0 deletions groups/graphics/auto/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ on init
chown system system /sys/class/backlight/intel_backlight/brightness
chown system system /sys/class/backlight/acpi_video0/brightness
export INTEL_DEBUG heur32
{{#use_vulkan}}
setprop vendor.mesa.anv.queue.override gc=2
{{/use_vulkan}}

on post-fs-data
#setprop debug.sf.nobootanimation 1
Expand Down
1 change: 1 addition & 0 deletions groups/graphics/auto/option.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ mesa_acrn_sepolicy = false
enable_guc = true
acrn-guest = false
opencl_sepolicy = true
use_vulkan = false
12 changes: 12 additions & 0 deletions groups/graphics/auto/product.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ PRODUCT_PACKAGES += \

PRODUCT_PACKAGES += ufo_prebuilts

{{#use_vulkan}}
# Graphics config overrides to use vulkan
PRODUCT_VENDOR_PROPERTIES += \
debug.renderengine.backend=skiavkthreaded \
ro.hardware.egl=angle \
persist.graphics.egl=angle \
ro.gfx.angle.supported=true

# Enable HWUI Vulkan backend
TARGET_USES_VULKAN = true
{{/use_vulkan}}

#Surface Flinger related Properties

PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.max_frame_buffer_acquired_buffers=3
Expand Down