blob: f38c56833df09d256061a8b01787936d4a8afe53 [file] [log] [blame]
Amit Pundir6749c912023-09-12 10:52:20 +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# GLES
18PRODUCT_PACKAGES := \
19 libGLES_mesa \
20 libEGL_mesa \
21 libGLESv1_CM_mesa \
22 libGLESv2_mesa \
23 libgallium_dri \
24 libglapi
25
26TARGET_BUILD_MESA ?= false
27ifeq ($(TARGET_BUILD_MESA), true)
28 PRODUCT_SOONG_NAMESPACES += \
29 external/mesa3d
30endif
31
32PRODUCT_PROPERTY_OVERRIDES := \
33 ro.sf.lcd_density=160 \
34 ro.opengles.version=196608 \
35 persist.demo.rotationlock=1
36
37PRODUCT_COPY_FILES += \
38 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
39 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
40
41# Vulkan
42PRODUCT_PACKAGES += \
43 vulkan.freedreno
44
45PRODUCT_COPY_FILES += \
46 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
47 frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
48 frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
49 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
50
51PRODUCT_VENDOR_PROPERTIES += \
52 ro.hardware.vulkan=freedreno
53
54# Will need to enable this after ANDROID_external_memory_android_hardware_buffer lands in Freedreno
55#TARGET_USES_VULKAN = true