intel/isl/icl: Build and use gen11 surface state emit functions
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 20 Jul 2017 22:59:49 +0000 (15:59 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 16 Feb 2018 00:14:55 +0000 (16:14 -0800)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/intel/Android.isl.mk
src/intel/Makefile.isl.am
src/intel/Makefile.sources
src/intel/isl/isl.c
src/intel/isl/isl_priv.h
src/intel/isl/meson.build

index 516ac3a21020e39a2033867d9a0962e7ae64162a..23cff55d2515d4431bf3afbaf358a93f09397190 100644 (file)
@@ -179,6 +179,25 @@ LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
 
+# ---------------------------------------
+# Build libmesa_isl_gen11
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_isl_gen11
+
+LOCAL_SRC_FILES := $(ISL_GEN11_FILES)
+
+LOCAL_CFLAGS := -DGEN_VERSIONx10=110
+
+LOCAL_C_INCLUDES := $(LIBISL_GENX_COMMON_INCLUDES)
+
+LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
 # ---------------------------------------
 # Build libmesa_isl
 # ---------------------------------------
@@ -207,6 +226,7 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
        libmesa_isl_gen8 \
        libmesa_isl_gen9 \
        libmesa_isl_gen10 \
+       libmesa_isl_gen11 \
        libmesa_genxml
 
 # Autogenerated sources
index 31273af36c00cf2cf8b6157e5587f7d101113f5d..9525f9e99053e072c0744e806833f0726066d934 100644 (file)
@@ -28,6 +28,7 @@ ISL_GEN_LIBS =                                           \
        isl/libisl-gen8.la                               \
        isl/libisl-gen9.la                               \
        isl/libisl-gen10.la                              \
+       isl/libisl-gen11.la                              \
        $(NULL)
 
 noinst_LTLIBRARIES += $(ISL_GEN_LIBS) isl/libisl.la
@@ -59,6 +60,9 @@ isl_libisl_gen9_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=90
 isl_libisl_gen10_la_SOURCES = $(ISL_GEN10_FILES)
 isl_libisl_gen10_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=100
 
+isl_libisl_gen11_la_SOURCES = $(ISL_GEN11_FILES)
+isl_libisl_gen11_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=110
+
 BUILT_SOURCES += $(ISL_GENERATED_FILES)
 
 isl/isl_format_layout.c: isl/gen_format_layout.py \
index 4c0240bdf174a909767ab60b7071c29aa170d775..22563cac6ac5e99dbe128b1bb6ee6507509daeaf 100644 (file)
@@ -203,6 +203,10 @@ ISL_GEN10_FILES = \
        isl/isl_emit_depth_stencil.c \
        isl/isl_surface_state.c
 
+ISL_GEN11_FILES = \
+       isl/isl_emit_depth_stencil.c \
+       isl/isl_surface_state.c
+
 ISL_GENERATED_FILES = \
        isl/isl_format_layout.c
 
index f70ac22aac584378c5162b2299121b937c82ef23..4dce0596d23cbd28bc3d300ccf9df2e49fbcd2cd 100644 (file)
@@ -1778,6 +1778,9 @@ isl_surf_get_ccs_surf(const struct isl_device *dev,
    case 10:                                        \
       isl_gen10_##func(__VA_ARGS__);               \
       break;                                       \
+   case 11:                                        \
+      isl_gen11_##func(__VA_ARGS__);               \
+      break;                                       \
    default:                                        \
       assert(!"Unknown hardware generation");      \
    }
index 2122e7cb75fbbc98588a4b6c7ae39eb52cfd0e4c..b86167bb3af4f229ff71acbecdcc8dc5291a4e32 100644 (file)
@@ -190,6 +190,9 @@ isl_extent3d_el_to_sa(enum isl_format fmt, struct isl_extent3d extent_el)
 #  define genX(x) gen10_##x
 #  include "isl_genX_priv.h"
 #  undef genX
+#  define genX(x) gen11_##x
+#  include "isl_genX_priv.h"
+#  undef genX
 #endif
 
 #endif /* ISL_PRIV_H */
index 0838c32af3254cb4c04453bfa4df8be722669303..36b8b8ffa200ba7dfdc5ce5ae865c2d579bd7f90 100644 (file)
@@ -51,7 +51,7 @@ isl_gen9_files = files(
 isl_gen_libs = []
 foreach g : [['40', isl_gen4_files], ['50', []], ['60', isl_gen6_files],
              ['70', isl_gen7_files], ['75', []], ['80', isl_gen8_files],
-             ['90', isl_gen9_files], ['100', []]]
+             ['90', isl_gen9_files], ['100', []], ['110', []]]
   _gen = g[0]
   isl_gen_libs += static_library(
     'libisl_gen@0@'.format(_gen),