mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
panfrost: Decontextualize rasterizer
Tightens the scope. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6327>
This commit is contained in:
parent
d26f62c667
commit
e46d4fe8bc
1 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue