blob: 6f85a0e22c298bb54127fd1f20ba01db9180b982 [file] [log] [blame]
Amit Pundirb2534ba2023-09-12 19:16:36 +05301#
2# Copyright (C) 2014 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# TODO(b/65201432): Swiftshader needs to create executable memory.
18PRODUCT_REQUIRES_INSECURE_EXECMEM_FOR_SWIFTSHADER := true
19
20# ANGLE provides an OpenGL implementation built on top of Vulkan.
21PRODUCT_PACKAGES := \
22 libEGL_angle \
23 libGLESv1_CM_angle \
24 libGLESv2_angle
25
26PRODUCT_VENDOR_PROPERTIES := \
27 ro.hardware.egl=angle \
28
29PRODUCT_PROPERTY_OVERRIDES := \
30 ro.sf.lcd_density=160 \
31 ro.opengles.version=196608 \
32 persist.demo.rotationlock=1
33
34PRODUCT_COPY_FILES := \
35 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
36 frameworks/native/data/etc/android.software.opengles.deqp.level-2022-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml
37
38# Vulkan
39TARGET_VULKAN_SUPPORT := true
40TARGET_USES_VULKAN := true
41
42PRODUCT_PACKAGES += vulkan.pastel
43
44PRODUCT_COPY_FILES += \
45 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
46 frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
47 frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
48 frameworks/native/data/etc/android.software.vulkan.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml
49
50PRODUCT_VENDOR_PROPERTIES += \
Amit Pundirfe72a3c2023-10-12 11:32:46 +053051 debug.hwui.renderer=skiagl \
Amit Pundirb2534ba2023-09-12 19:16:36 +053052 ro.hardware.vulkan=pastel