iris: Build for gen12
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 11 Feb 2019 04:14:07 +0000 (20:14 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 28 Aug 2019 20:38:33 +0000 (13:38 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_context.c
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/meson.build

index 02b74d396193eb62af7d5b14ab225766d55c242c..11762cbebd2e4a42cf7822e2534056eaca6694ae 100644 (file)
@@ -214,6 +214,9 @@ iris_destroy_context(struct pipe_context *ctx)
 
 #define genX_call(devinfo, func, ...)             \
    switch (devinfo->gen) {                        \
+   case 12:                                       \
+      gen12_##func(__VA_ARGS__);                  \
+      break;                                      \
    case 11:                                       \
       gen11_##func(__VA_ARGS__);                  \
       break;                                      \
index f65cfd1ca35ffe78ec1041ecc0fc5af154005753..1fd6eb57cfec475a9bddf19d8cc315b33a13a50c 100644 (file)
@@ -938,6 +938,9 @@ void gen9_toggle_preemption(struct iris_context *ice,
 #  define genX(x) gen11_##x
 #  include "iris_genx_protos.h"
 #  undef genX
+#  define genX(x) gen12_##x
+#  include "iris_genx_protos.h"
+#  undef genX
 #endif
 
 #endif
index 3f611c2b5698be71ba08833f162fba42d51e2985..fde21c94e0233d986ec53f9d23d04e39efc5e46d 100644 (file)
@@ -62,7 +62,7 @@ iris_driinfo_h = custom_target(
 )
 
 iris_gen_libs = []
-foreach v : ['80', '90', '100', '110']
+foreach v : ['80', '90', '100', '110', '120']
   iris_gen_libs += static_library(
     'libiris_gen@0@'.format(v),
     ['iris_blorp.c', 'iris_query.c', 'iris_state.c', gen_xml_pack],