};
static struct pipe_query *i915_create_query(struct pipe_context *ctx,
- unsigned query_type)
+ unsigned query_type,
+ unsigned index)
{
struct i915_query *query = CALLOC_STRUCT( i915_query );
FREE(query);
}
-static void i915_begin_query(struct pipe_context *ctx,
+static bool i915_begin_query(struct pipe_context *ctx,
struct pipe_query *query)
{
+ return true;
}
-static void i915_end_query(struct pipe_context *ctx, struct pipe_query *query)
+static bool i915_end_query(struct pipe_context *ctx, struct pipe_query *query)
{
+ return true;
}
-static boolean i915_get_query_result(struct pipe_context *ctx,
- struct pipe_query *query,
- boolean wait,
- void *vresult)
+static bool i915_get_query_result(struct pipe_context *ctx,
+ struct pipe_query *query,
+ bool wait,
+ union pipe_query_result *vresult)
{
uint64_t *result = (uint64_t*)vresult;
/* 2* viewport Max */
*result = 512*1024*1024;
- return TRUE;
+ return true;
+}
+
+static void
+i915_set_active_query_state(struct pipe_context *pipe, bool enable)
+{
}
void
i915->base.begin_query = i915_begin_query;
i915->base.end_query = i915_end_query;
i915->base.get_query_result = i915_get_query_result;
+ i915->base.set_active_query_state = i915_set_active_query_state;
}