From 093da77ce68dd7c57e330f817f51ffa63e99783d Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Fri, 6 Mar 2020 11:43:38 +0100 Subject: [PATCH] panfrost: Use ctx->active_prim in panfrost_writes_point_size() Check ctx->active_prim instead of prefix.draw_mode so we can eventually get rid of ctx->payloads. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 9998232..3683a90 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -158,7 +158,7 @@ panfrost_writes_point_size(struct panfrost_context *ctx) assert(ctx->shader[PIPE_SHADER_VERTEX]); struct panfrost_shader_state *vs = panfrost_get_shader_state(ctx, PIPE_SHADER_VERTEX); - return vs->writes_point_size && ctx->payloads[PIPE_SHADER_FRAGMENT].prefix.draw_mode == MALI_POINTS; + return vs->writes_point_size && ctx->active_prim == PIPE_PRIM_POINTS; } void -- 2.7.4