From 555c17e2c659f69ac2cc48ec9c4901cc33d1fede Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 29 Jan 2021 14:43:42 -0500 Subject: [PATCH] panfrost: Remove batch_is_scanout Unused since last commit. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_job.c | 18 ------------------ src/gallium/drivers/panfrost/pan_job.h | 3 --- 2 files changed, 21 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index e152aeb..a4dde09 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -1401,24 +1401,6 @@ panfrost_batch_intersection_scissor(struct panfrost_batch *batch, batch->maxy = MIN2(batch->maxy, maxy); } -/* Are we currently rendering to the dev (rather than an FBO)? */ - -bool -panfrost_batch_is_scanout(struct panfrost_batch *batch) -{ - /* If there is no color buffer, it's an FBO */ - if (batch->key.nr_cbufs != 1) - return false; - - /* If we're too early that no framebuffer was sent, it's scanout */ - if (!batch->key.cbufs[0]) - return true; - - return batch->key.cbufs[0]->texture->bind & PIPE_BIND_DISPLAY_TARGET || - batch->key.cbufs[0]->texture->bind & PIPE_BIND_SCANOUT || - batch->key.cbufs[0]->texture->bind & PIPE_BIND_SHARED; -} - void panfrost_batch_init(struct panfrost_context *ctx) { diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h index fa7861e..0b316d9 100644 --- a/src/gallium/drivers/panfrost/pan_job.h +++ b/src/gallium/drivers/panfrost/pan_job.h @@ -197,9 +197,6 @@ panfrost_batch_intersection_scissor(struct panfrost_batch *batch, unsigned minx, unsigned miny, unsigned maxx, unsigned maxy); -bool -panfrost_batch_is_scanout(struct panfrost_batch *batch); - mali_ptr panfrost_batch_get_bifrost_tiler(struct panfrost_batch *batch, unsigned vertex_count); -- 2.7.4