panfrost: Stub out panfrost_render_condition
authorIcecream95 <ixn@keemail.me>
Sat, 5 Sep 2020 11:19:56 +0000 (23:19 +1200)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 1 Jan 2021 05:08:41 +0000 (00:08 -0500)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8292>

src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h

index 9be5950..7dd324f 100644 (file)
@@ -1320,6 +1320,19 @@ panfrost_set_active_query_state(struct pipe_context *pipe,
 }
 
 static void
+panfrost_render_condition(struct pipe_context *pipe,
+                          struct pipe_query *query,
+                          bool condition,
+                          enum pipe_render_cond_flag mode)
+{
+        struct panfrost_context *ctx = pan_context(pipe);
+
+        ctx->cond_query = (struct panfrost_query *)query;
+        ctx->cond_cond = condition;
+        ctx->cond_mode = mode;
+}
+
+static void
 panfrost_destroy(struct pipe_context *pipe)
 {
         struct panfrost_context *panfrost = pan_context(pipe);
@@ -1601,6 +1614,7 @@ panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags)
         gallium->set_scissor_states = panfrost_set_scissor_states;
         gallium->set_polygon_stipple = panfrost_set_polygon_stipple;
         gallium->set_active_query_state = panfrost_set_active_query_state;
+        gallium->render_condition = panfrost_render_condition;
 
         gallium->create_query = panfrost_create_query;
         gallium->destroy_query = panfrost_destroy_query;
index 2a4bfd9..8ce673c 100644 (file)
@@ -177,6 +177,10 @@ struct panfrost_context {
 
         struct panfrost_blend_state *blit_blend;
         struct hash_table *blend_shaders;
+
+        struct panfrost_query *cond_query;
+        bool cond_cond;
+        enum pipe_render_cond_flag cond_mode;
 };
 
 /* Corresponds to the CSO */