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,
],
)
* 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 {
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);
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,