crocus/gen8: hookup gen8 state generators
authorDave Airlie <airlied@redhat.com>
Mon, 21 Jun 2021 19:40:49 +0000 (05:40 +1000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Jun 2021 18:56:21 +0000 (18:56 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11507>

src/gallium/drivers/crocus/crocus_context.c
src/gallium/drivers/crocus/crocus_context.h
src/gallium/drivers/crocus/crocus_screen.c
src/gallium/drivers/crocus/meson.build

index 7d3d007..c417c2f 100644 (file)
@@ -210,6 +210,9 @@ crocus_destroy_context(struct pipe_context *ctx)
 
 #define genX_call(devinfo, func, ...)                   \
    switch ((devinfo)->verx10) {                         \
+   case 80:                                             \
+      gfx8_##func(__VA_ARGS__);                         \
+      break;                                            \
    case 75:                                             \
       gfx75_##func(__VA_ARGS__);                        \
       break;                                            \
index 458c05f..0e4fc2e 100644 (file)
@@ -954,6 +954,9 @@ static inline bool crocus_check_conditional_render(struct crocus_context *ice)
 #  define genX(x) gfx75_##x
 #  include "crocus_genx_protos.h"
 #  undef genX
+#  define genX(x) gfx8_##x
+#  include "crocus_genx_protos.h"
+#  undef genX
 #endif
 
 #endif
index 4eacec3..5d7d0ec 100644 (file)
@@ -59,6 +59,9 @@
 
 #define genX_call(devinfo, func, ...)                   \
    switch ((devinfo)->verx10) {                         \
+   case 80:                                             \
+      gfx8_##func(__VA_ARGS__);                         \
+      break;                                            \
    case 75:                                             \
       gfx75_##func(__VA_ARGS__);                        \
       break;                                            \
index 2bdb1f2..a6bc583 100644 (file)
@@ -51,7 +51,7 @@ files_libcrocus = files(
 )
 
 crocus_per_hw_ver_libs = []
-foreach v : ['40', '45', '50', '60', '70', '75']
+foreach v : ['40', '45', '50', '60', '70', '75', '80']
   crocus_per_hw_ver_libs += static_library(
     'crocus_per_hw_ver@0@'.format(v),
     ['crocus_blorp.c', 'crocus_query.c', 'crocus_state.c', 'crocus_blt.c', gen_xml_pack],