diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/Android.common.mk | 35 | ||||
-rw-r--r-- | src/intel/Android.mk | 1 | ||||
-rw-r--r-- | src/intel/Makefile.am | 1 | ||||
-rw-r--r-- | src/intel/Makefile.common.am | 24 | ||||
-rw-r--r-- | src/intel/Makefile.isl.am | 1 | ||||
-rw-r--r-- | src/intel/Makefile.sources | 4 | ||||
-rw-r--r-- | src/intel/blorp/blorp_genX_exec.h | 2 | ||||
-rw-r--r-- | src/intel/common/brw_device_info.c (renamed from src/mesa/drivers/dri/i965/brw_device_info.c) | 0 | ||||
-rw-r--r-- | src/intel/common/brw_device_info.h (renamed from src/mesa/drivers/dri/i965/brw_device_info.h) | 0 | ||||
-rw-r--r-- | src/intel/isl/isl_format.c | 2 | ||||
-rw-r--r-- | src/intel/isl/isl_priv.h | 2 | ||||
-rw-r--r-- | src/intel/isl/tests/isl_surf_get_image_offset_test.c | 2 | ||||
-rw-r--r-- | src/intel/tools/Makefile.am | 1 | ||||
-rw-r--r-- | src/intel/vulkan/Makefile.am | 1 | ||||
-rw-r--r-- | src/intel/vulkan/anv_private.h | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/Android.mk | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/Makefile.am | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/Makefile.sources | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_compiler.h | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.h | 2 |
20 files changed, 77 insertions, 9 deletions
diff --git a/src/intel/Android.common.mk b/src/intel/Android.common.mk new file mode 100644 index 00000000000..dcc01409ff0 --- /dev/null +++ b/src/intel/Android.common.mk @@ -0,0 +1,35 @@ +# Copyright © 2016 Intel Corporation +# Copyright © 2016 Mauro Rossi <[email protected]> +# +# 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. + +# --------------------------------------- +# Build libmesa_intel_common +# --------------------------------------- + +include $(CLEAR_VARS) + +LOCAL_MODULE := libmesa_intel_common + +LOCAL_MODULE_CLASS := STATIC_LIBRARIES + +LOCAL_SRC_FILES := $(COMMON_FILES) + +include $(MESA_COMMON_MK) +include $(BUILD_STATIC_LIBRARY) diff --git a/src/intel/Android.mk b/src/intel/Android.mk index 0e9c29dfa2b..3d501abae14 100644 --- a/src/intel/Android.mk +++ b/src/intel/Android.mk @@ -26,5 +26,6 @@ LOCAL_PATH := $(call my-dir) include $(LOCAL_PATH)/Makefile.sources include $(LOCAL_PATH)/Android.blorp.mk +include $(LOCAL_PATH)/Android.common.mk include $(LOCAL_PATH)/Android.genxml.mk include $(LOCAL_PATH)/Android.isl.mk diff --git a/src/intel/Makefile.am b/src/intel/Makefile.am index fa4570d18aa..9186b5cf1bd 100644 --- a/src/intel/Makefile.am +++ b/src/intel/Makefile.am @@ -53,6 +53,7 @@ CLEANFILES = EXTRA_DIST = include Makefile.blorp.am +include Makefile.common.am include Makefile.genxml.am include Makefile.isl.am diff --git a/src/intel/Makefile.common.am b/src/intel/Makefile.common.am new file mode 100644 index 00000000000..a8be54a265c --- /dev/null +++ b/src/intel/Makefile.common.am @@ -0,0 +1,24 @@ +# Copyright © 2016 Intel Corporation +# +# 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 (including the next +# paragraph) 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. + +noinst_LTLIBRARIES += common/libintel_common.la + +common_libintel_common_la_SOURCES = $(COMMON_FILES) diff --git a/src/intel/Makefile.isl.am b/src/intel/Makefile.isl.am index 88716846cec..5a317f522bd 100644 --- a/src/intel/Makefile.isl.am +++ b/src/intel/Makefile.isl.am @@ -72,6 +72,7 @@ check_PROGRAMS += isl/tests/isl_surf_get_image_offset_test TESTS += $(check_PROGRAMS) isl_tests_isl_surf_get_image_offset_test_LDADD = \ + common/libintel_common.la \ isl/libisl.la \ $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \ -lm diff --git a/src/intel/Makefile.sources b/src/intel/Makefile.sources index fcf85eacfc4..97f2328fefe 100644 --- a/src/intel/Makefile.sources +++ b/src/intel/Makefile.sources @@ -6,6 +6,10 @@ BLORP_FILES = \ blorp/blorp_genX_exec.h \ blorp/blorp_priv.h +COMMON_FILES = \ + common/brw_device_info.c \ + common/brw_device_info.h + GENXML_GENERATED_FILES = \ genxml/gen4_pack.h \ genxml/gen45_pack.h \ diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index 966e4b3da9c..461cfe0abc8 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -22,7 +22,7 @@ */ #include "blorp_priv.h" -#include "brw_device_info.h" +#include "common/brw_device_info.h" #include "intel_aub.h" /** diff --git a/src/mesa/drivers/dri/i965/brw_device_info.c b/src/intel/common/brw_device_info.c index fb224fae234..fb224fae234 100644 --- a/src/mesa/drivers/dri/i965/brw_device_info.c +++ b/src/intel/common/brw_device_info.c diff --git a/src/mesa/drivers/dri/i965/brw_device_info.h b/src/intel/common/brw_device_info.h index 0869063df32..0869063df32 100644 --- a/src/mesa/drivers/dri/i965/brw_device_info.h +++ b/src/intel/common/brw_device_info.h diff --git a/src/intel/isl/isl_format.c b/src/intel/isl/isl_format.c index 8507cc58f9a..c41a0bfcced 100644 --- a/src/intel/isl/isl_format.c +++ b/src/intel/isl/isl_format.c @@ -24,7 +24,7 @@ #include <assert.h> #include "isl.h" -#include "brw_device_info.h" +#include "common/brw_device_info.h" struct surface_format_info { bool exists; diff --git a/src/intel/isl/isl_priv.h b/src/intel/isl/isl_priv.h index 9867e22a8ee..0c2ac2553fb 100644 --- a/src/intel/isl/isl_priv.h +++ b/src/intel/isl/isl_priv.h @@ -26,7 +26,7 @@ #include <assert.h> #include <strings.h> -#include "brw_device_info.h" +#include "common/brw_device_info.h" #include "util/macros.h" #include "isl.h" diff --git a/src/intel/isl/tests/isl_surf_get_image_offset_test.c b/src/intel/isl/tests/isl_surf_get_image_offset_test.c index 9015f0e0ee4..0c9173deab4 100644 --- a/src/intel/isl/tests/isl_surf_get_image_offset_test.c +++ b/src/intel/isl/tests/isl_surf_get_image_offset_test.c @@ -26,7 +26,7 @@ #include <stdio.h> #include <stdlib.h> -#include "brw_device_info.h" +#include "common/brw_device_info.h" #include "isl/isl.h" #include "isl/isl_priv.h" diff --git a/src/intel/tools/Makefile.am b/src/intel/tools/Makefile.am index 9f9bb869297..5f4d78d6fdc 100644 --- a/src/intel/tools/Makefile.am +++ b/src/intel/tools/Makefile.am @@ -37,6 +37,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src/intel aubinator_DEPS = \ + $(top_builddir)/src/intel/common/libintel_common.la \ $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \ $(top_builddir)/src/util/libmesautil.la \ $(PER_GEN_LIBS) \ diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am index 5491a1686e6..2d20de944d4 100644 --- a/src/intel/vulkan/Makefile.am +++ b/src/intel/vulkan/Makefile.am @@ -117,6 +117,7 @@ VULKAN_LIB_DEPS += \ $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \ $(top_builddir)/src/compiler/nir/libnir.la \ $(top_builddir)/src/util/libmesautil.la \ + $(top_builddir)/src/intel/common/libintel_common.la \ $(top_builddir)/src/intel/isl/libisl.la \ $(PER_GEN_LIBS) \ $(PTHREAD_LIBS) \ diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index f24020cb810..74c1e5ba65f 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -40,7 +40,7 @@ #define VG(x) #endif -#include "brw_device_info.h" +#include "common/brw_device_info.h" #include "brw_compiler.h" #include "util/macros.h" #include "util/list.h" diff --git a/src/mesa/drivers/dri/i965/Android.mk b/src/mesa/drivers/dri/i965/Android.mk index 335850a8d88..b4f1adf6ca8 100644 --- a/src/mesa/drivers/dri/i965/Android.mk +++ b/src/mesa/drivers/dri/i965/Android.mk @@ -183,6 +183,7 @@ LOCAL_SRC_FILES := \ LOCAL_WHOLE_STATIC_LIBRARIES := \ $(MESA_DRI_WHOLE_STATIC_LIBRARIES) \ $(I965_PERGEN_LIBS) \ + libmesa_intel_common \ libmesa_blorp \ libmesa_isl diff --git a/src/mesa/drivers/dri/i965/Makefile.am b/src/mesa/drivers/dri/i965/Makefile.am index 91559c5b1fb..a192fc0265e 100644 --- a/src/mesa/drivers/dri/i965/Makefile.am +++ b/src/mesa/drivers/dri/i965/Makefile.am @@ -78,6 +78,7 @@ noinst_LTLIBRARIES = \ libi965_dri_la_SOURCES = $(i965_FILES) libi965_dri_la_LIBADD = \ + $(top_builddir)/src/intel/common/libintel_common.la \ $(top_builddir)/src/intel/isl/libisl.la \ libi965_compiler.la \ $(top_builddir)/src/intel/blorp/libblorp.la \ diff --git a/src/mesa/drivers/dri/i965/Makefile.sources b/src/mesa/drivers/dri/i965/Makefile.sources index 9ff5cebeab2..df90cb49c4d 100644 --- a/src/mesa/drivers/dri/i965/Makefile.sources +++ b/src/mesa/drivers/dri/i965/Makefile.sources @@ -6,8 +6,6 @@ i965_compiler_FILES = \ brw_dead_control_flow.cpp \ brw_dead_control_flow.h \ brw_defines.h \ - brw_device_info.c \ - brw_device_info.h \ brw_disasm.c \ brw_eu.c \ brw_eu_compact.c \ diff --git a/src/mesa/drivers/dri/i965/brw_compiler.h b/src/mesa/drivers/dri/i965/brw_compiler.h index 933ab118e6e..b45fba13043 100644 --- a/src/mesa/drivers/dri/i965/brw_compiler.h +++ b/src/mesa/drivers/dri/i965/brw_compiler.h @@ -24,7 +24,7 @@ #pragma once #include <stdio.h> -#include "brw_device_info.h" +#include "common/brw_device_info.h" #include "main/mtypes.h" #include "main/macros.h" diff --git a/src/mesa/drivers/dri/i965/intel_screen.h b/src/mesa/drivers/dri/i965/intel_screen.h index f62b39f7440..ab1cc28b965 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.h +++ b/src/mesa/drivers/dri/i965/intel_screen.h @@ -33,7 +33,7 @@ #include "dri_util.h" #include "intel_bufmgr.h" -#include "brw_device_info.h" +#include "common/brw_device_info.h" #include "i915_drm.h" #include "xmlconfig.h" |