From 131845eb84c1285c531677e37b12e62605f0e67c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 28 Dec 2022 16:14:49 -0500 Subject: [PATCH] panfrost: Inline the last MALI_POSITIVE use Big shrug on this one. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 2d72f8d..d02e37d 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -3584,7 +3584,7 @@ panfrost_direct_draw(struct panfrost_batch *batch, false); } else { pan_pack(&invocation, INVOCATION, cfg) { - cfg.invocations = MALI_POSITIVE(vertex_count); + cfg.invocations = vertex_count - 1; cfg.size_y_shift = 0; cfg.size_z_shift = 0; cfg.workgroups_x_shift = 0; -- 2.7.4