Amit Pundir | b2534ba | 2023-09-12 19:16:36 +0530 | [diff] [blame] | 1 | # |
| 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. |
| 18 | PRODUCT_REQUIRES_INSECURE_EXECMEM_FOR_SWIFTSHADER := true |
| 19 | |
| 20 | # ANGLE provides an OpenGL implementation built on top of Vulkan. |
| 21 | PRODUCT_PACKAGES := \ |
| 22 | libEGL_angle \ |
| 23 | libGLESv1_CM_angle \ |
| 24 | libGLESv2_angle |
| 25 | |
| 26 | PRODUCT_VENDOR_PROPERTIES := \ |
| 27 | ro.hardware.egl=angle \ |
| 28 | |
| 29 | PRODUCT_PROPERTY_OVERRIDES := \ |
| 30 | ro.sf.lcd_density=160 \ |
| 31 | ro.opengles.version=196608 \ |
| 32 | persist.demo.rotationlock=1 |
| 33 | |
| 34 | PRODUCT_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 |
| 39 | TARGET_VULKAN_SUPPORT := true |
| 40 | TARGET_USES_VULKAN := true |
| 41 | |
| 42 | PRODUCT_PACKAGES += vulkan.pastel |
| 43 | |
| 44 | PRODUCT_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 | |
| 50 | PRODUCT_VENDOR_PROPERTIES += \ |
Amit Pundir | fe72a3c | 2023-10-12 11:32:46 +0530 | [diff] [blame^] | 51 | debug.hwui.renderer=skiagl \ |
Amit Pundir | b2534ba | 2023-09-12 19:16:36 +0530 | [diff] [blame] | 52 | ro.hardware.vulkan=pastel |