i965/icl: Build and use gen11 functions for genxml state-upload and blorp
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 20 Jul 2017 23:00:36 +0000 (16:00 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 16 Feb 2018 00:14:56 +0000 (16:14 -0800)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/mesa/drivers/dri/i965/Android.mk
src/mesa/drivers/dri/i965/Makefile.am
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/meson.build

index 39aa33fa9f6ec8029cde563ef1ffb27c5a8063dc..83959cbf6cd2bf6f4963a4f39bb98acc7d47576b 100644 (file)
@@ -48,7 +48,8 @@ I965_PERGEN_LIBS := \
        libmesa_i965_gen75 \
        libmesa_i965_gen8 \
        libmesa_i965_gen9 \
-       libmesa_i965_gen10
+       libmesa_i965_gen10 \
+       libmesa_i965_gen11
 
 # ---------------------------------------
 # Build libmesa_i965_gen4
@@ -239,6 +240,27 @@ LOCAL_CFLAGS := -DGEN_VERSIONx10=100
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
 
+# ---------------------------------------
+# Build libmesa_i965_gen11
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_i965_gen11
+
+LOCAL_C_INCLUDES := $(I965_PERGEN_COMMON_INCLUDES)
+
+LOCAL_SRC_FILES := $(i965_gen11_FILES)
+
+LOCAL_SHARED_LIBRARIES := $(I965_PERGEN_SHARED_LIBRARIES)
+
+LOCAL_STATIC_LIBRARIES := $(I965_PERGEN_STATIC_LIBRARIES)
+
+LOCAL_CFLAGS := -DGEN_VERSIONx10=110
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
 # ---------------------------------------
 # Build i965_dri
 # ---------------------------------------
index 79be769c9b5ec19bff61202a9d6aabedc5709c87..da56f67fa5f56feef86cbf7acddbbd211a149c82 100644 (file)
@@ -57,7 +57,8 @@ I965_PERGEN_LIBS = \
        libi965_gen75.la \
        libi965_gen8.la \
        libi965_gen9.la \
-       libi965_gen10.la
+       libi965_gen10.la \
+       libi965_gen11.la
 
 libi965_gen4_la_SOURCES = $(i965_gen4_FILES)
 libi965_gen4_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=40
@@ -86,6 +87,9 @@ libi965_gen9_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=90
 libi965_gen10_la_SOURCES = $(i965_gen10_FILES)
 libi965_gen10_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=100
 
+libi965_gen11_la_SOURCES = $(i965_gen11_FILES)
+libi965_gen11_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=110
+
 noinst_LTLIBRARIES = \
        libi965_dri.la \
        $(I965_PERGEN_LIBS)
index d928f71b4317e7c1aa561925548d91a485c6991c..def5ce701ed268fd1ef502010b6e14343c63390a 100644 (file)
@@ -150,6 +150,10 @@ i965_gen10_FILES = \
        genX_blorp_exec.c \
        genX_state_upload.c
 
+i965_gen11_FILES = \
+       genX_blorp_exec.c \
+       genX_state_upload.c
+
 i965_oa_GENERATED_FILES = \
        brw_oa_hsw.h \
        brw_oa_hsw.c \
index aa62abde9c41365ffb776ff8ada0360ad68f246e..1d586e5ef38d0e05fe9b40584dbfa4e7cfa8d36c 100644 (file)
@@ -106,6 +106,10 @@ brw_blorp_init(struct brw_context *brw)
    case 10:
       brw->blorp.exec = gen10_blorp_exec;
       break;
+   case 11:
+      brw->blorp.exec = gen11_blorp_exec;
+      break;
+
    default:
       unreachable("Invalid gen");
    }
index a2eeb3994addfc937d03d53023f8e510126608ac..551e1fcdcbae684c6999e99f2d225b3ca55484b0 100644 (file)
@@ -129,6 +129,8 @@ void gen9_blorp_exec(struct blorp_batch *batch,
                      const struct blorp_params *params);
 void gen10_blorp_exec(struct blorp_batch *batch,
                       const struct blorp_params *params);
+void gen11_blorp_exec(struct blorp_batch *batch,
+                      const struct blorp_params *params);
 
 #ifdef __cplusplus
 } /* extern "C" */
index d29ae6b972f2caf16d0d2789b2b3ca5a583d89d0..dd3c3c36d2b475bd6355283abb9b7b72682ce8b0 100644 (file)
@@ -334,6 +334,7 @@ void gen75_init_atoms(struct brw_context *brw);
 void gen8_init_atoms(struct brw_context *brw);
 void gen9_init_atoms(struct brw_context *brw);
 void gen10_init_atoms(struct brw_context *brw);
+void gen11_init_atoms(struct brw_context *brw);
 
 /* Memory Object Control State:
  * Specifying zero for L3 means "uncached in L3", at least on Haswell
index 20c59c6e9dc4c592e2dae73dcdc03fead795ec18..2c8c0f4b278fa2f8083c436d9ee3fc1a2fc89a69 100644 (file)
@@ -164,7 +164,9 @@ void brw_init_state( struct brw_context *brw )
 
    brw_init_caches(brw);
 
-   if (devinfo->gen >= 10)
+   if (devinfo->gen >= 11)
+      gen11_init_atoms(brw);
+   else if (devinfo->gen >= 10)
       gen10_init_atoms(brw);
    else if (devinfo->gen >= 9)
       gen9_init_atoms(brw);
index 8ce54449002b9eb1684198652876d98feedf8934..24a69132114e1b70745a5dcf8f26d2ff6b183eae 100644 (file)
@@ -135,7 +135,7 @@ files_i965 = files(
 )
 
 i965_gen_libs = []
-foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '100']
+foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '100', '110']
   i965_gen_libs += static_library(
     'libi965_gen@0@'.format(v),
     ['genX_blorp_exec.c', 'genX_state_upload.c', gen_xml_pack],