radeonsi: just include si_pipe.h in r600_query.c
authorMarek Olšák <marek.olsak@amd.com>
Sat, 25 Nov 2017 20:36:36 +0000 (21:36 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 29 Nov 2017 17:21:30 +0000 (18:21 +0100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/Makefile.am
src/gallium/drivers/radeon/meson.build
src/gallium/drivers/radeon/r600_query.c

index 7f64b7615fea8a594776950030973a359fde7607..d5570926885b2004a015b41d9ec569e21abfc102 100644 (file)
@@ -5,6 +5,7 @@ include $(top_srcdir)/src/gallium/Automake.inc
 AM_CFLAGS = \
        $(GALLIUM_DRIVER_CFLAGS) \
        $(RADEON_CFLAGS) \
+       -I$(top_srcdir)/src/amd/common \
        -Wstrict-overflow=0
 # ^^ disable warnings about overflows (os_time_timeout)
 
index 8563060480b7dff0f36745f072e574466b26e3e9..6857df3cd30094aae3c5a7512411aeb4ff9b7c1f 100644 (file)
@@ -51,6 +51,6 @@ libradeon = static_library(
   c_args : ['-Wstrict-overflow=0', c_vis_args],
   dependencies : [dep_llvm, dep_clock],
   include_directories : [
-    inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_gallium_drivers,
+    inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_gallium_drivers, inc_amd_common,
   ],
 )
index 0a03061ab9199c0c92a9321337be69907365005c..324bc91592e17af6262e1781f968d879333143a0 100644 (file)
@@ -22,6 +22,7 @@
  * USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
+#include "radeonsi/si_pipe.h"
 #include "r600_query.h"
 #include "r600_cs.h"
 #include "util/u_memory.h"
 #include "tgsi/tgsi_text.h"
 #include "amd/common/sid.h"
 
-/* TODO: remove this: */
-void si_update_prims_generated_query_state(struct r600_common_context *rctx,
-                                          unsigned type, int diff);
-
 #define R600_MAX_STREAMS 4
 
 struct r600_hw_query_params {
@@ -808,7 +805,7 @@ static void r600_query_hw_emit_start(struct r600_common_context *ctx,
                return; // previous buffer allocation failure
 
        r600_update_occlusion_query_state(ctx, query->b.type, 1);
-       si_update_prims_generated_query_state(ctx, query->b.type, 1);
+       si_update_prims_generated_query_state((void*)ctx, query->b.type, 1);
 
        ctx->need_gfx_cs_space(&ctx->b, query->num_cs_dw_begin + query->num_cs_dw_end,
                               true);
@@ -922,7 +919,7 @@ static void r600_query_hw_emit_stop(struct r600_common_context *ctx,
                ctx->num_cs_dw_queries_suspend -= query->num_cs_dw_end;
 
        r600_update_occlusion_query_state(ctx, query->b.type, -1);
-       si_update_prims_generated_query_state(ctx, query->b.type, -1);
+       si_update_prims_generated_query_state((void*)ctx, query->b.type, -1);
 }
 
 static void emit_set_predicate(struct r600_common_context *ctx,