gallium: add PIPE_SHADER_CAP_SUPPORTED_IRS
[mesa.git] / src / gallium / drivers / freedreno / freedreno_query.c
index db2683c9b6fd99f8336cd0cecf1a81aad2b9d0d7..b87e825071941df80dd7e981f7bb85c2bb0a961f 100644 (file)
@@ -81,6 +81,16 @@ fd_get_query_result(struct pipe_context *pctx, struct pipe_query *pq,
        return q->funcs->get_query_result(fd_context(pctx), q, wait, result);
 }
 
+static void
+fd_render_condition(struct pipe_context *pctx, struct pipe_query *pq,
+                                       boolean condition, uint mode)
+{
+       struct fd_context *ctx = fd_context(pctx);
+       ctx->cond_query = pq;
+       ctx->cond_cond = condition;
+       ctx->cond_mode = mode;
+}
+
 static int
 fd_get_driver_query_info(struct pipe_screen *pscreen,
                unsigned index, struct pipe_driver_query_info *info)
@@ -118,4 +128,5 @@ fd_query_context_init(struct pipe_context *pctx)
        pctx->begin_query = fd_begin_query;
        pctx->end_query = fd_end_query;
        pctx->get_query_result = fd_get_query_result;
+       pctx->render_condition = fd_render_condition;
 }