panfrost: Align Android makefiles with recent changes
authorRoman Stratiienko <roman.stratiienko@nure.ua>
Sun, 22 Mar 2020 21:36:16 +0000 (23:36 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 23 Mar 2020 14:03:22 +0000 (14:03 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Roman Stratiienko <roman.stratiienko@nure.ua>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4280>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4280>

src/gallium/drivers/panfrost/Android.mk
src/gallium/drivers/panfrost/Makefile.sources
src/gallium/targets/dri/Android.mk
src/panfrost/Android.midgard.mk
src/panfrost/Android.mk
src/panfrost/Android.util.mk [new file with mode: 0644]
src/panfrost/Makefile.sources

index d57433667b436d425e292f54fc57850c2ce23805..c7ad6e1759b0d22c837faca623f38bb72c5304a8 100644 (file)
@@ -45,7 +45,8 @@ LOCAL_STATIC_LIBRARIES := \
        libpanfrost_decode \
        libpanfrost_encoder \
        libpanfrost_midgard \
-       libpanfrost_shared
+       libpanfrost_shared \
+       libpanfrost_util \
 
 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
 
index 1a465d46f58938d77ea77661ac4f490a58ef7085..1c796605d6492f79d2a4291464d09a2e1e0c3109 100644 (file)
@@ -15,6 +15,8 @@ C_SOURCES := \
        pan_blit.c \
        pan_bo.c \
        pan_bo.h \
+       pan_cmdstream.c \
+       pan_cmdstream.h \
        pan_compute.c \
        pan_context.c \
        pan_context.h \
index 11ee103c66921d473935850e90628edc80a9bdce..33cf6a52a614deabee0bae7ab4d9eb229f46908d 100644 (file)
@@ -64,7 +64,8 @@ LOCAL_STATIC_LIBRARIES += \
        libpanfrost_decode \
        libpanfrost_encoder \
        libpanfrost_midgard \
-       libpanfrost_shared
+       libpanfrost_shared \
+       libpanfrost_util \
 
 ifeq ($(USE_LIBBACKTRACE),true)
        LOCAL_SHARED_LIBRARIES += libbacktrace
index 6c9cd4c18e93d276cae7302693fa57bdd2cf57b4..1b3932a87d49e779998d584fdd929c5f7d89f5cc 100644 (file)
@@ -44,7 +44,8 @@ LOCAL_C_INCLUDES := \
 LOCAL_STATIC_LIBRARIES := \
        libmesa_glsl \
        libmesa_nir \
-       libmesa_st_mesa
+       libmesa_st_mesa \
+       libpanfrost_util \
 
 midgard_nir_algebraic_gen := $(LOCAL_PATH)/midgard/midgard_nir_algebraic.py
 midgard_nir_algebraic_deps := \
index e48f81071e6929eaca2542285930fd46561b7f95..670f60f3e3200a09097e2b3fe57732892d3054ae 100644 (file)
@@ -25,6 +25,7 @@
 LOCAL_PATH := $(call my-dir)
 
 include $(LOCAL_PATH)/Makefile.sources
+include $(LOCAL_PATH)/Android.util.mk
 include $(LOCAL_PATH)/Android.bifrost.mk
 include $(LOCAL_PATH)/Android.encoder.mk
 include $(LOCAL_PATH)/Android.midgard.mk
diff --git a/src/panfrost/Android.util.mk b/src/panfrost/Android.util.mk
new file mode 100644 (file)
index 0000000..19731a7
--- /dev/null
@@ -0,0 +1,50 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C)
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+# Android.mk for libpanfrost_util.a
+
+# ---------------------------------------
+# Build libpanfrost_util
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+       $(util_FILES)
+
+LOCAL_C_INCLUDES := \
+       $(MESA_TOP)/src/panfrost/include/ \
+       $(MESA_TOP)/src/gallium/auxiliary/ \
+       $(MESA_TOP)/src/gallium/include/
+
+LOCAL_STATIC_LIBRARIES := \
+       libmesa_nir \
+
+LOCAL_MODULE := libpanfrost_util
+
+LOCAL_GENERATED_SOURCES := \
+
+LOCAL_EXPORT_C_INCLUDE_DIRS := \
+       $(MESA_TOP)/src/panfrost/util/ \
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
index 212a1d7e5400bbf7c6d41a1cfeb6ea21994e0d0d..daa58eb87857d0c3c2b05efd6bf52f7c78a25343 100644 (file)
@@ -17,6 +17,7 @@ encoder_FILES := \
        encoder/pan_afbc.c \
         encoder/pan_attributes.c \
         encoder/pan_encoder.h \
+        encoder/pan_format.c \
         encoder/pan_invocation.c \
         encoder/pan_props.c \
         encoder/pan_sampler.c \
@@ -68,3 +69,11 @@ pandecode_FILES := \
         pandecode/pan_pretty_print.c \
         pandecode/pan_pretty_print.h \
         pandecode/public.h
+
+util_FILES := \
+        util/lcra.c \
+        util/lcra.h \
+        util/pan_ir.c \
+        util/pan_ir.h \
+        util/pan_liveness.c \
+        util/pan_sysval.c \