Mesa (master): panfrost: Stub out panfrost_render_condition
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jan 1 05:26:34 UTC 2021
Module: Mesa
Branch: master
Commit: 7ba4c5450c3c11f5491d2d36c54fe284cad30dd5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ba4c5450c3c11f5491d2d36c54fe284cad30dd5
Author: Icecream95 <ixn at keemail.me>
Date: Sat Sep 5 23:19:56 2020 +1200
panfrost: Stub out panfrost_render_condition
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8292>
---
src/gallium/drivers/panfrost/pan_context.c | 14 ++++++++++++++
src/gallium/drivers/panfrost/pan_context.h | 4 ++++
2 files changed, 18 insertions(+)
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 9be59505cf1..7dd324f634f 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -1319,6 +1319,19 @@ panfrost_set_active_query_state(struct pipe_context *pipe,
ctx->active_queries = enable;
}
+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)
{
@@ -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;
diff --git a/src/gallium/drivers/panfrost/pan_context.h b/src/gallium/drivers/panfrost/pan_context.h
index 2a4bfd9176c..8ce673c9030 100644
--- a/src/gallium/drivers/panfrost/pan_context.h
+++ b/src/gallium/drivers/panfrost/pan_context.h
@@ -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 */
More information about the mesa-commit
mailing list