panfrost: Remove PAN_REQ_MSAA
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 29 Jan 2021 19:41:55 +0000 (14:41 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 12 Feb 2021 21:44:29 +0000 (16:44 -0500)
Neglible win for draw time overhead.

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

src/gallium/drivers/panfrost/pan_job.c
src/gallium/drivers/panfrost/pan_job.h

index a8bd6cb..db1a867 100644 (file)
@@ -1216,9 +1216,6 @@ panfrost_batch_set_requirements(struct panfrost_batch *batch)
 {
         struct panfrost_context *ctx = batch->ctx;
 
-        if (ctx->rasterizer->base.multisample)
-                batch->requirements |= PAN_REQ_MSAA;
-
         if (ctx->depth_stencil && ctx->depth_stencil->base.depth_writemask) {
                 batch->requirements |= PAN_REQ_DEPTH_WRITE;
                 batch->draws |= PIPE_CLEAR_DEPTH;
index bdd9d12..1b292c7 100644 (file)
@@ -48,8 +48,7 @@ struct panfrost_batch_fence {
         struct panfrost_batch *batch;
 };
 
-#define PAN_REQ_MSAA            (1 << 0)
-#define PAN_REQ_DEPTH_WRITE     (1 << 1)
+#define PAN_REQ_DEPTH_WRITE     (1 << 0)
 
 /* A panfrost_batch corresponds to a bound FBO we're rendering to,
  * collecting over multiple draws. */