Mesa (master): panfrost: Decontextualize rasterizer
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 19 08:55:51 UTC 2020
Module: Mesa
Branch: master
Commit: e46d4fe8bc4c977d81a55672f5e1138a4ccd6112
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e46d4fe8bc4c977d81a55672f5e1138a4ccd6112
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Fri Aug 14 17:38:36 2020 -0400
panfrost: Decontextualize rasterizer
Tightens the scope.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6327>
---
src/gallium/drivers/panfrost/pan_cmdstream.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c
index d820f4c9451..fee07253e79 100644
--- a/src/gallium/drivers/panfrost/pan_cmdstream.c
+++ b/src/gallium/drivers/panfrost/pan_cmdstream.c
@@ -76,12 +76,10 @@ panfrost_vt_attach_framebuffer(struct panfrost_context *ctx,
}
static void
-panfrost_vt_update_rasterizer(struct panfrost_context *ctx,
+panfrost_vt_update_rasterizer(struct panfrost_rasterizer *rasterizer,
struct mali_vertex_tiler_prefix *prefix,
struct mali_vertex_tiler_postfix *postfix)
{
- struct panfrost_rasterizer *rasterizer = ctx->rasterizer;
-
postfix->gl_enables |= 0x7;
SET_BIT(postfix->gl_enables, MALI_FRONT_CCW_TOP,
rasterizer && rasterizer->base.front_ccw);
@@ -153,7 +151,7 @@ panfrost_vt_init(struct panfrost_context *ctx,
if (stage == PIPE_SHADER_FRAGMENT) {
panfrost_vt_update_occlusion_query(ctx, postfix);
- panfrost_vt_update_rasterizer(ctx, prefix, postfix);
+ panfrost_vt_update_rasterizer(ctx->rasterizer, prefix, postfix);
}
}
More information about the mesa-commit
mailing list