aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2020-03-06 11:43:38 +0100
committerBoris Brezillon <[email protected]>2020-03-10 12:47:34 +0100
commit093da77ce68dd7c57e330f817f51ffa63e99783d (patch)
treeea500c089051a800a74a78e364d6256fb8dcb0df /src/gallium/drivers/panfrost
parentd66ef690d127a37e6832c1d0e9fee0f48e2c6232 (diff)
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 <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r--src/gallium/drivers/panfrost/pan_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 999823263f9..3683a907563 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