panfrost: Inline the last MALI_POSITIVE use
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 28 Dec 2022 21:14:49 +0000 (16:14 -0500)
committerMarge Bot <emma+marge@anholt.net>
Sat, 11 Mar 2023 06:30:02 +0000 (06:30 +0000)
Big shrug on this one.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20445>

src/gallium/drivers/panfrost/pan_cmdstream.c

index 2d72f8d..d02e37d 100644 (file)
@@ -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;