panfrost: Gate overdraw_alpha on Bifrost+
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 1 Aug 2023 14:43:59 +0000 (10:43 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Aug 2023 23:18:29 +0000 (23:18 +0000)
Not used on Midgard, deals with a -Wunused-function warning.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Italo Nicola <italonicola@collabora.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24428>

src/gallium/drivers/panfrost/pan_cmdstream.c

index dc4c861..97c2fbd 100644 (file)
@@ -361,6 +361,7 @@ pack_blend_constant(enum pipe_format format, float cons)
  * overdraw alpha=0 should be set when alpha=0 implies no overdraw,
  * equivalently, all enabled render targets have alpha_zero_nop set.
  */
+#if PAN_ARCH >= 6
 static bool
 panfrost_overdraw_alpha(const struct panfrost_context *ctx, bool zero)
 {
@@ -378,6 +379,7 @@ panfrost_overdraw_alpha(const struct panfrost_context *ctx, bool zero)
 
    return true;
 }
+#endif
 
 static void
 panfrost_emit_blend(struct panfrost_batch *batch, void *rts,